我新手,我新建个项目,然后在里面新建个ejb模块,其他的什么都没有做,编译就错了,错误提示 "EJBModule2.jar": [J2EE:160119]Appc is unable to process the file 'D:\untitled1\EJBModule2.jar.jar'. The following error occurred:
...全文
1615打赏收藏
ejb初级问题,编译错误,只有一个ejb模块
我新手,我新建个项目,然后在里面新建个ejb模块,其他的什么都没有做,编译就错了,错误提示 "EJBModule2.jar": [J2EE:160119]Appc is unable to process the file 'D:\untitled1\EJBModule2.jar.jar'. The following error occurred:
我建了两个实体bean,结果错误变成72个了
"EJBModule3.jar": [J2EE:160119]Appc is unable to process the file 'D:\untitled1\EJBModule3.jar.jar'. The following error occurred:
"EJBModule3.jar": In EJB Azhch, an 'Unknown Primary Key Class' ( <prim-key-class> == java.lang.Object ) MUST be specified at deployment time (as something other than java.lang.Object).
"EJBModule3.jar": There should be atleast one non-static non-final field defined in the java.lang.Object class of EJB Azhch.
"EJBModule3.jar": at weblogic.ejb20.compliance.EJBComplianceChecker.check(EJBComplianceChecker.java:268)
"EJBModule3.jar": at weblogic.ejb20.compliance.EJBComplianceChecker.checkDeploymentInfo(EJBComplianceChecker.java:232)
"EJBModule3.jar": at weblogic.ejb20.ejbc.EJBCompiler.complianceCheckJar(EJBCompiler.java:810)
"EJBModule3.jar": at weblogic.ejb20.ejbc.EJBCompiler.checkCompliance(EJBCompiler.java:766)
"EJBModule3.jar": at weblogic.ejb20.ejbc.EJBCompiler.doCompile(EJBCompiler.java:200)
"EJBModule3.jar": at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:476)
"EJBModule3.jar": at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:387)
Error parsing file 'META-INF/ejb-jar.xml' at line: 5 column: 23. The content of element type "enterprise-beans" is incomplete, it must match "(session|entity|message-driven)+".
只是新建了个ejb模块,连实体bean都没有创建,就出现57个错误,5555555,郁闷
"EJBModule3.jar": [J2EE:160119]Appc is unable to process the file 'D:\untitled1\EJBModule3.jar.jar'. The following error occurred:
"EJBModule3.jar": Error parsing file 'META-INF/ejb-jar.xml' at line: 5 column: 23. The content of element type "enterprise-beans" is incomplete, it must match "(session|entity|message-driven)+".
"EJBModule3.jar": at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:380)
"EJBModule3.jar": at weblogic.appc.compileEJB(appc.java:802)
"EJBModule3.jar": at weblogic.appc.compileEJB(appc.java:776)
"EJBModule3.jar": at weblogic.appc.compileInput(appc.java:463)
"EJBModule3.jar": at weblogic.appc.runBody(appc.java:184)
"EJBModule3.jar": at weblogic.utils.compiler.Tool.run(Tool.java:146)
"EJBModule3.jar": at weblogic.utils.compiler.Tool.run(Tool.java:103)
"EJBModule3.jar": at weblogic.appc.main(appc.java:1030)
"EJBModule3.jar": org.xml.sax.SAXParseException: The content of element type "enterprise-beans" is incomplete, it must match "(session|entity|message-driven)+".
"EJBModule3.jar": at weblogic.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1189)
"EJBModule3.jar": at weblogic.xml.jaxp.WebLogicParser.parse(WebLogicParser.java:67)
"EJBModule3.jar": at weblogic.xml.process.ProcessorDriver.process(ProcessorDriver.java:166)
"EJBModule3.jar": at weblogic.ejb20.dd.xml.EjbJarLoader_EJB20.process(EjbJarLoader_EJB20.java:988)
"EJBModule3.jar": at weblogic.ejb20.dd.xml.DDUtils.processXML(DDUtils.java:334)
"EJBModule3.jar": at weblogic.ejb20.dd.xml.DDUtils.processXML(DDUtils.java:295)
"EJBModule3.jar": at weblogic.ejb20.dd.xml.DDUtils.processEjbJarXML(DDUtils.java:265)