Glassfish IllegalArgumentException:无效的ejb jar:它包含零ejb
我有一个使用EJB开发的.ear应用程序,可以在Glassfish 2中正常工作,但是当我在Glassfish 3中运行它时,会发生以下错误:
[#|2018-01-18T12:11:02.639+0100|WARNING|glassfish3.0.1|javax.enterprise.system.tools.deployment.org.glassfish.deployment.common|_ThreadID=54;_ThreadName=Thread-1;|Error in annotation processing: java.lang.NoClassDefFoundError: Lorg/jboss/seam/log/Log;|#]
[#| 2018-01-18T12:11:03.586 + 0100 | SEVERE | glassfish3.0.1 | global | _ThreadID = 54; _ThreadName = Thread-1; | Class [Lorg / jboss / seam / log / Log; ] 未找到。 加载时出错[class com.xxxxx.plv.core.services.ProductOrderItemManager] |#]
[#| 2018-01-18T12:11:03.586 + 0100 |警告| glassfish3.0.1 | javax.enterprise.system.tools.deployment.org.glassfish.deployment.common | _ThreadID = 54; _ThreadName =线程1; |注释处理错误:java.lang.NoClassDefFoundError:Lorg / jboss / seam / log / Log; |#]
[#| 2018-01-18T12:11:06.442 + 0100 |严重| glassfish3.0.1 | javax.enterprise.system.core.com.sun.enterprise.v3.server | _ThreadID = 54; _ThreadName =线程1; |部署应用程序时出现异常java.lang.IllegalArgumentException:无效的ejb jar [plv-core-1.4-SNAPSHOT.jar]:它包含零ejb。 注意:1.有效的ejb jar需要至少一个会话,实体(1.x / 2.x样式)或消息驱动bean。 2. EJB3 +实体bean(@Entity)是POJO,请将它们打包为库jar。 3.如果jar文件包含用EJB组件级别注释(@Stateless,@Stateful,@MessageDriven,@Singleton)注解的有效EJB,请检查server.log以查看注释是否已正确处理。 在com.sun.enterprise.deployment.util.EjbBundleValidator.accept(EjbBundleValidator.java:72)在com.sun.enterprise.deployment.util.ApplicationValidator.accept(ApplicationValidator.java:124)在com.sun.enterprise.deployment .EjbBundleDescriptor.visit(EjbBundleDescriptor.java:722)在com.sun.enterprise.deployment.Application.visit(Application.java:1744)在com.sun.enterprise.deployment.archivist.ApplicationArchivist.validate(ApplicationArchivist.java:774 )在com.sun.enterprise.deployment.archivist.ApplicationArchivist.openWith(ApplicationArchivist.java:253)在com.sun.enterprise.deployment.archivist.ApplicationFactory.openWith(ApplicationFactory.java:222)在org.glassfish.javaee。 core.deployment.DolProvider.load(DolProvider.java:152)在org.glassfish.javaee.core.deployment.DolProvider.load(DolProvider.java:79)在com.sun.enterprise.v3.server.ApplicationLifecycle.loadDeployer( ApplicationLifecycle.java:612)at com.sun.enterprise.v3.server.ApplicationLifecycle.setupContainerInfos(ApplicationLi fecycle.java:554)在com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:262)在com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:183)在组织.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:272)at com.sun.enterprise.v3.admin.CommandRunnerImpl $ 1.execute(CommandRunnerImpl.java:305)at com.sun.enterprise.v3.admin。 CommandRunnerImpl.doCommand(CommandRunnerImpl.java:320)在com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1176)在com.sun.enterprise.v3.admin.CommandRunnerImpl.access $ 900(CommandRunnerImpl.java :83)在com.sun.enterprise.v3.admin.CommandRunnerImpl $ ExecutionContext.execute(CommandRunnerImpl.java:1235)在com.sun.enterprise.v3.admin.CommandRunnerImpl $ ExecutionContext.execute(CommandRunnerImpl.java:1224)在org.glassfish.admingui.common.util.LocalDeploymentFacility $ LocalDFCommandRunner.run(LocalDeploymentFacility.java:138)at org.glassfish.deployment.client.AbstractD eploymentFacility.deploy(AbstractDeploymentFacility.java:350)在org.glassfish.admingui.common.util.DeployUtil.invokeDeploymentFacility(DeployUtil.java:89)在org.glassfish.admingui.common.util.DeployUtil.deploy(DeployUtil.java: 66)在org.glassfish.admingui.common.handlers.DeploymentHandler.deploy(DeploymentHandler.java:186)在sun.reflect.NativeMethodAccessorImpl.invoke0(本机方法)在sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)在sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)在java.lang.reflect.Method.invoke(Method.java:606)在com.sun.jsftemplating.layout.descriptors.handler.Handler.invoke(处理程序的.java:442)留在在COM com.sun.jsftemplating.layout.descriptors.LayoutElementBase.dispatchHandlers(LayoutElementBase.java:394)com.sun.jsftemplating.layout.descriptors.LayoutElementBase.dispatchHandlers(LayoutElementBase.java:420)。 sun.jsftemplating.layout.event.CommandActionListener.invokeCommandHandlers(命令 ActionListener.java:150)at javax.faces.component javax.faces.event.ActionEvent.processListener(ActionEvent.java:88)上的com.sun.jsftemplating.layout.event.CommandActionListener.processAction(CommandActionListener.java:98) .UIComponentBase.broadcast(UIComponentBase.java:772)在javax.faces.component.UICommand.broadcast(UICommand.java:300)在com.sun.webui.jsf.component.WebuiCommand.broadcast(WebuiCommand.java:166)在javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:775)在javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1267)在com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java: 82)at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)at javax.faces.webapp.FacesServlet.service (FacesServlet.java:312),位于org.apache.catalina.core.ApplicationFilterChain.internalDoFilte R(ApplicationFilterChain.java:343)留在组织在com.sun.webui.jsf.util.UploadFilter.doFilter(UploadFilter.java:223)org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:215) .apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:215)at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve的.java:277)在org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:188)在org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:641)在com.sun.enterprise。 web.WebPipeline.invoke(WebPipeline.java:97)在com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:85)在org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:185)在org.apache.cata的org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:325) lina.connector.CoyoteAdapter.service(CoyoteAdapter.java:226)at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:239)at com.sun.grizzly.http.ProcessorTask.invokeAdapter( ProcessorTask.java:791)at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:693)at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:954)at com.sun.grizzly .http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:170)在com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:135)在com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102)在融为一体。 sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88)在com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)在com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53)在com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57)at com.sun.grizzly.ContextTask.run(ContextTask.java:6 9)at com.sun.grizzly.util.AbstractThreadPool $ Worker.doWork(AbstractThreadPool.java:330)at com.sun.grizzly.util.AbstractThreadPool $ Worker.run(AbstractThreadPool.java:309)at java.lang.Thread .run(Thread.java:745)|#]
任何解决方案
链接地址: http://www.djcxy.com/p/68253.html上一篇: Glassfish IllegalArgumentException: Invalid ejb jar: it contains zero ejb