為什麼有ejbCreate()方法錯誤!!請高手指點

honglong發表於2004-05-14
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

相關文章