请教一个BMP实体Bean的问题

04-04-30 flag
我在调试一个关于BMP实体Bean的程序时,在用Make指令编译时,出现了如下错误提示(见后),请教各位大侠,这是什么原因,怎么解决?非常感谢!

"Student.jar": <2004-4-30 下午16时36分58秒 CST> <Warning> <EJB> <BEA-010054> <EJB Deployment: Student has a class student.StudentBean that is in the classpath. This class should only be located in the ejb-jar file.>

"Student.jar": <2004-4-30 下午16时36分58秒 CST> <Warning> <EJB> <BEA-010054> <EJB Deployment: Student has a class student.StudentRemoteHome that is in the classpath. This class should only be located in the ejb-jar file.>

"Student.jar": <2004-4-30 下午16时36分58秒 CST> <Warning> <EJB> <BEA-010054> <EJB Deployment: Student has a class student.StudentRemote that is in the classpath. This class should only be located in the ejb-jar file.>

"Student.jar": [J2EE:160119]Appc is unable to process the file 'D:\jbproject\student\Student.jar.jar'. The following error occurred:

"Student.jar": In EJB Student, the find method findByPrimaryKey(java.lang.String) did not have a corresponding ejbFind method in the bean class.

"Student.jar": In EJB Student, the create method create(java.lang.String) did not have a corresponding ejbPostCreate method in the bean class.

"Student.jar": In EJB Student, the home create method ejbCreate(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.

"Student.jar": at weblogic.ejb20.compliance.EJBComplianceChecker.check(EJBComplianceChecker.java:268)

"Student.jar": at weblogic.ejb20.compliance.EJBComplianceChecker.checkDeploymentInfo(EJBComplianceChecker.java:232)

"Student.jar": at weblogic.ejb20.ejbc.EJBCompiler.complianceCheckJar(EJBCompiler.java:810)

"Student.jar": at weblogic.ejb20.ejbc.EJBCompiler.checkCompliance(EJBCompiler.java:766)

"Student.jar": at weblogic.ejb20.ejbc.EJBCompiler.doCompile(EJBCompiler.java:200)

"Student.jar": at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:476)

"Student.jar": at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:387)

"Student.jar": at weblogic.appc.compileEJB(appc.java:802)

"Student.jar": at weblogic.appc.compileEJB(appc.java:776)

"Student.jar": at weblogic.appc.compileInput(appc.java:463)

"Student.jar": at weblogic.appc.runBody(appc.java:184)

"Student.jar": at weblogic.utils.compiler.Tool.run(Tool.java:146)

"Student.jar": at weblogic.utils.compiler.Tool.run(Tool.java:103)

"Student.jar": at weblogic.appc.main(appc.java:1028)

"Student.jar": weblogic.ejb20.compliance.ComplianceException: In EJB Student, the find method findByPrimaryKey(java.lang.String) did not have a corresponding ejbFind method in the bean class.

"Student.jar": at weblogic.ejb20.compliance.EntityHomeInterfaceChecker.checkFindMethodsMatchBeanMethods(EntityHomeInterfaceChecker.java:320)

"Student.jar": at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

"Student.jar": at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

"Student.jar": at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

"Student.jar": at java.lang.reflect.Method.invoke(Method.java:324)

"Student.jar": at weblogic.ejb20.compliance.EJBComplianceChecker.check(EJBComplianceChecker.java:278)

"Student.jar": at weblogic.ejb20.compliance.EJBComplianceChecker.checkDeploymentInfo(EJBComplianceChecker.java:232)

"Student.jar": at weblogic.ejb20.ejbc.EJBCompiler.complianceCheckJar(EJBCompiler.java:810)

"Student.jar": at weblogic.ejb20.ejbc.EJBCompiler.checkCompliance(EJBCompiler.java:766)

"Student.jar": at weblogic.ejb20.ejbc.EJBCompiler.doCompile(EJBCompiler.java:200)

"Student.jar": at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:476)

"Student.jar": at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:387)

"Student.jar": at weblogic.appc.compileEJB(appc.java:802)

"Student.jar": at weblogic.appc.compileEJB(appc.java:776)

"Student.jar": at weblogic.appc.compileInput(appc.java:463)

"Student.jar": at weblogic.appc.runBody(appc.java:184)

"Student.jar": at weblogic.utils.compiler.Tool.run(Tool.java:146)

"Student.jar": at weblogic.utils.compiler.Tool.run(Tool.java:103)

"Student.jar": at weblogic.appc.main(appc.java:1028)

"Student.jar": weblogic.ejb20.compliance.ComplianceException: In EJB Student, the create method create(java.lang.String) did not have a corresponding ejbPostCreate method in the bean class.

"Student.jar": at weblogic.ejb20.compliance.EntityHomeInterfaceChecker.checkCreateMethodsMatchBeanPostCreateMethods(EntityHomeInterfaceChecker.java:366)

"Student.jar": at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

"Student.jar": at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

"Student.jar": at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

"Student.jar": at java.lang.reflect.Method.invoke(Method.java:324)

"Student.jar": at weblogic.ejb20.compliance.EJBComplianceChecker.check(EJBComplianceChecker.java:278)

"Student.jar": at weblogic.ejb20.compliance.EJBComplianceChecker.checkDeploymentInfo(EJBComplianceChecker.java:232)

"Student.jar": at weblogic.ejb20.ejbc.EJBCompiler.complianceCheckJar(EJBCompiler.java:810)

"Student.jar": at weblogic.ejb20.ejbc.EJBCompiler.checkCompliance(EJBCompiler.java:766)

"Student.jar": at weblogic.ejb20.ejbc.EJBCompiler.doCompile(EJBCompiler.java:200)

"Student.jar": at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:476)

"Student.jar": at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:387)

"Student.jar": at weblogic.appc.compileEJB(appc.java:802)

"Student.jar": at weblogic.appc.compileEJB(appc.java:776)

"Student.jar": at weblogic.appc.compileInput(appc.java:463)

"Student.jar": at weblogic.appc.runBody(appc.java:184)

"Student.jar": at weblogic.utils.compiler.Tool.run(Tool.java:146)

"Student.jar": at weblogic.utils.compiler.Tool.run(Tool.java:103)

"Student.jar": at weblogic.appc.main(appc.java:1028)

"Student.jar": weblogic.ejb20.compliance.ComplianceException: In EJB Student, the home create method ejbCreate(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.

"Student.jar": at weblogic.ejb20.compliance.HomeInterfaceChecker.checkCreateMethodsMatchBeanCreates(HomeInterfaceChecker.java:309)

"Student.jar": at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

"Student.jar": at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

"Student.jar": at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

"Student.jar": at java.lang.reflect.Method.invoke(Method.java:324)

"Student.jar": at weblogic.ejb20.compliance.EJBComplianceChecker.check(EJBComplianceChecker.java:278)

"Student.jar": at weblogic.ejb20.compliance.EJBComplianceChecker.checkDeploymentInfo(EJBComplianceChecker.java:232)

"Student.jar": at weblogic.ejb20.ejbc.EJBCompiler.complianceCheckJar(EJBCompiler.java:810)

"Student.jar": at weblogic.ejb20.ejbc.EJBCompiler.checkCompliance(EJBCompiler.java:766)

"Student.jar": at weblogic.ejb20.ejbc.EJBCompiler.doCompile(EJBCompiler.java:200)

"Student.jar": at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:476)

"Student.jar": at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:387)

"Student.jar": at weblogic.appc.compileEJB(appc.java:802)

"Student.jar": at weblogic.appc.compileEJB(appc.java:776)

"Student.jar": at weblogic.appc.compileInput(appc.java:463)

"Student.jar": at weblogic.appc.runBody(appc.java:184)

"Student.jar": at weblogic.utils.compiler.Tool.run(Tool.java:146)

"Student.jar": at weblogic.utils.compiler.Tool.run(Tool.java:103)

"Student.jar": at weblogic.appc.main(appc.java:1028)

"Student.jar": --------------- nested within: ------------------

"Student.jar": weblogic.utils.compiler.ToolFailureException: [J2EE:160121]Errors encountered while compiling module 'D:\jbproject\student\Student.jar.jar':

"Student.jar": In EJB Student, the find method findByPrimaryKey(java.lang.String) did not have a corresponding ejbFind method in the bean class.

"Student.jar": In EJB Student, the create method create(java.lang.String) did not have a corresponding ejbPostCreate method in the bean class.

"Student.jar": In EJB Student, the home create method ejbCreate(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.

"Student.jar": - with nested exception:

"Student.jar": [

"Student.jar": In EJB Student, the find method findByPrimaryKey(java.lang.String) did not have a corresponding ejbFind method in the bean class.

"Student.jar": In EJB Student, the create method create(java.lang.String) did not have a corresponding ejbPostCreate method in the bean class.

"Student.jar": In EJB Student, the home create method ejbCreate(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.

"Student.jar": ]

"Student.jar": at weblogic.appc.compileEJB(appc.java:781)

"Student.jar": at weblogic.appc.compileInput(appc.java:463)

"Student.jar": at weblogic.appc.runBody(appc.java:184)

"Student.jar": at weblogic.utils.compiler.Tool.run(Tool.java:146)

"Student.jar": at weblogic.utils.compiler.Tool.run(Tool.java:103)

"Student.jar": at weblogic.appc.main(appc.java:1028)

猜你喜欢