Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jboss deployment problem

 
kumaran subramanian
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When trying to deploy my ejb jar jboss 4.0.3 is giving the following errors
pls tell me what might be wrong.

Bean : AcType
Method : public String ejbCreate(String, String) throws CreateException, RemoteException
Section: 12.2.3
Warning: The return type must be the entity bean's primary key type.

11:59:34,321 WARN [verifier] EJB spec violation:
Bean : AcType
Method : public String ejbFindByPrimaryKey(String) throws FinderException, RemoteException
Section: 12.2.5
Warning: The result type for the ejbFindByPrimaryKey method must be the primary key type.

11:59:34,321 WARN [verifier] EJB spec violation:
Bean : AcType
Method : public String ejbFindByPrimaryKey(String) throws FinderException, RemoteException
Section: 12.2.5
Warning: The ejbFindByPrimaryKey method must be a single-object finder.

11:59:34,321 WARN [verifier] EJB spec violation:
Bean : AcType
Method : public String ejbFindByPrimaryKey(String) throws FinderException, RemoteException
Section: 12.2.5
Warning: The return type of a finder method must be the entity bean's primary key type, or a collection of primary keys (see Specification Section 12.1.7)


Thanks in Advance.

regards,
kums
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What did you set <prim-key-class> to in your deployment descriptor ?
The return value of ejbCreate and ejbFindByPrimaryKey must match the type set in the DD.
 
kumaran subramanian
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have given the remote interface type.
Now i tried with the type returned by ejbCreate it is working
Thanks for your fast reply

regards,
kums
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic