The moose likes Web Services and the fly likes Error from ejbc on ejbPostCreate Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Web Services
Reply Bookmark "Error from ejbc on ejbPostCreate " Watch "Error from ejbc on ejbPostCreate " New topic
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
 
Threads others viewed
CMP bean problem with auto generated primary key
Error from ejbc on ejbCreate and ejbPostCreate
ERROR: Error from ejbc
ejbc error
ejbPostCreate() for session/message beans
IntelliJ Java IDE