File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JBoss/WildFly and the fly likes jboss deployment problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "jboss deployment problem" Watch "jboss deployment problem" New topic
Author

jboss deployment problem

kumaran subramanian
Greenhorn

Joined: Feb 07, 2006
Posts: 2
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


kums
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

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.


[My Blog]
All roads lead to JavaRanch
kumaran subramanian
Greenhorn

Joined: Feb 07, 2006
Posts: 2
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: jboss deployment problem