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.