• 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

Error from ejbc on ejbCreate and ejbPostCreate

 
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,
This is the error I am getting when I try to build my application in weblogic 8.1. I am sure I have both ejbCreate and ejbPostCreate properly defined, but still no clue what is going wrong. Any one have any idea?
All files compiled. Running ejbc...
ERROR: ERROR: Error from ejbc: In EJB CompanyLocalBean, the create method create(java.lang.String,java.lang.String,java.lang.String) did not have a corresponding ejbPostCreate method in the bean class.
ERROR: ERROR: Error from ejbc: In EJB CompanyLocalBean, the local home create method ejbCreate(java.lang.String,java.lang.String,java.lang.String) did not have a corresponding ejbCreate method in the bean class, or the ejbCreate method in the bean class was not public.
ERROR: ERROR: ejbc couldn't invoke compiler
BUILD FAILED
ERROR: ERROR: Error from ejbc: In EJB CompanyLocalBean, the create method create(java.lang.String,java.lang.String,java.lang.String) did not have a corresponding ejbPostCreate method in the bean class.
ERROR: ERROR: Error from ejbc: In EJB CompanyLocalBean, the local home create method ejbCreate(java.lang.String,java.lang.String,java.lang.String) did not have a corresponding ejbCreate method in the bean class, or the ejbCreate method in the bean class was not public.
ERROR: ERROR: ejbc couldn't invoke compiler
My ejbCreate and ejbPostCreate methods...
public String ejbCreate(String companyId, String name, String address) {
setCompanyId(companyId);
setName(name);
setAddress(address);
return null;
}
public void ejbPostCreate(String companyId, String name, String address) {
}
thanks,
Srinivas.
 
New rule: no elephants at the chess tournament. Tiny ads are still okay.
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic