| Author |
Error from ejbc on ejbPostCreate
|
han jing
Greenhorn
Joined: Nov 29, 2004
Posts: 1
|
|
Hi All, This is the first time I come here.This is the error I am getting when I try to build my application in weblogic 8.1. I consider that I have both ejbCreate and ejbPostCreate properly defined, but still no clue what is going wrong. Any one have any idea? ERROR: ERROR: Error from ejbc: In EJB MenuBean, the create method create(java.lang.Integer,java.lang.String,java.lang.String,java.lang.Integer) did not have a corresponding ejbPostCreate method in the bean class. ERROR: ERROR: ejbc couldn't invoke compiler public my.pkg.MenuBeanPK ejbCreate(Integer BrandCode,String BrandName,String Classification,Integer UnitPrice) throws CreateException { setBrandcode(BrandCode); setBrandname(BrandName); setClassification(Classification); setUnitprice(UnitPrice); return null; } public void ejbPostCreate(Integer BrandCode,String BrandName,String Classification,int unitprice) throws CreateException {}
|
 |
Lin Feng
Ranch Hand
Joined: Dec 11, 2002
Posts: 142
|
|
public void ejbPostCreate(Integer BrandCode,String BrandName,String Classification,int unitprice) The last parameter should be Integer other than int
|
 |
 |
|
|
subject: Error from ejbc on ejbPostCreate
|
|
|