• 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
  • Paul Clapham
  • Tim Cooke
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Frank Carver
  • Henry Wong
  • Ron McLeod
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Himai Minh

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.
 
Get me the mayor's office! I need to tell her about this tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic