• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

jboss deployment problem

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic