为什么有ejbCreate()方法错误!!请高手指点

04-05-14 honglong
public void ejbCreate(String _custName) throws CreateException {

custName = _custName;

}

编译报错:

"bookstorecart.ejbgrpx": D:\JBuilder9\jdk1.4\bin\javaw -classpath "D:\bea\weblogic700\server\lib\weblogic.jar;D:\JBuilder9\lib\jdsremote.jar;" weblogic.ejbc -keepgenerated -compiler D:/bea/jdk131_02/bin/javac D:/bea/user_projects/BookStore/src/bookstoreejb/bookstorecart.jar.jar D:/bea/user_projects/BookStore/src/bookstoreejb/bookstorecart.jar

"bookstorecart.ejbgrpx": ERROR: Error from ejbc:

"bookstorecart.ejbgrpx": In EJB mycart, the home create method ejbCreate() did not have a corresponding ejbCreate method in the bean class, or the ejbCreate method in the bean class was not public.

"bookstorecart.ejbgrpx": ERROR: ejbc found errors

我用的是jb9+weblogic7

happlyin
2004-05-14 13:36
在bean类中加入ejbCreate()方法,

因为home接口和bean类中的创建方法必须保持对应。

猜你喜欢