• 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
  • Liutauras Vilda
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Carey Brown
  • Stephan van Hulst
  • Tim Holloway
  • Peter Rooke
  • Himai Minh
Bartenders:
  • Piet Souris
  • Mikalai Zaikin

Customer Bean, Head First EJB

 
Ranch Hand
Posts: 279
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am trying to deploy the Cusotmer Bean on JBoss. This is my code


But when I run the server it gives me a message.


15:13:26,187 WARN [verifier] EJB spec violation:
Bean : CustomerBeanCMP
Method : public String ejbCreate(String, String, String, String) throws CreateException
Section: 10.6.4
Warning: The return type of an ejbCreate(...) method must be the entity bean's primary key type.


Please tell me how to correct this error. I have written the bean as per the book.
 
Ranch Hand
Posts: 250
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,
What is the <prim-key-class> in the DD. Please post your home interface and ejb-jar.xml.

Make sure that in ejb-jar.xml you have
<prim-key class>java.lang.String</prim-key-class> and the return type is correct in the home interface create method.

Hope it helps.
 
reply
    Bookmark Topic Watch Topic
  • New Topic