users@glassfish.java.net

Re: V3+ejb+Metro java.lang.NoSuchFieldError: modulesRegistry

From: <glassfish_at_javadesktop.org>
Date: Thu, 25 Sep 2008 21:10:37 PDT

Tested this further with examples from metro and the HelloEJB31 example and it should be repeatable. Get a slightly different error but shows a collision between metro and ejb modules

Tested on glassfish-snapshot-v3-prelude-09_22_2008

Scenario I
1) used a clean install of glassfish-snapshot-v3-prelude-09_22_2008.
2) Added the ejb module javax.ejb API v.3.1
3) built and deployed HelloEJB31 (http://blogs.sun.com/MaheshKannan/entry/ejb_3_1_in_glassfish) to gfv3
4) Tested the servlet jsp page successfully

Scenario II
1) wiped the gfv3 and used a clean install of glassfish-snapshot-v3-prelude-09_22_2008.
2) Added the metro module 1.4-3556
3) built metro-1_3_1's example fromwsdl and deployed successfully to gfv3
4) ran the webservice client from the fromswdl project successfully connecting to the metro jaxws-fromwsdl ws.

Scenario III
cont. with the current gfv3+metro-1_3_1
1) disabled jaxws-fromwsdl
2) Added the ejb module javax.ejb API v.3.1 so now running gfv3+ejb+Metro
3) Put the webservice code from fromwsdl into a copy of the HelloEJB31 project called HelloEJB31WithWS (See attached project)
4) Attempted to deploy the HelloEJB31WithWS war into the running gfv3+ejb+Metro
5) Got exceptions related to the Stateless annotation. See error log snippet below.

I'd appreciate anyone's attempt at trying the attached test project. The dependencies are on C:\glassfishv3-prelude\glassfish\modules jars but does not include any jars in the WEB-INF\lib folder. Then do a clean and build. The war is in dist.

There seems to be an annotation collision. Is there a way to test this more thoroughly?
----------
[#|2008-09-25T21:49:15.378-0400|INFO|GlassFish10.0|null|_ThreadID=25;_ThreadName=Thread-4;|>>Started EJB Container Service....: server|#]

[#|2008-09-25T21:49:15.378-0400|INFO|GlassFish10.0|null|_ThreadID=25;_ThreadName=Thread-4;|>>EjbContianerUtil: com.sun.ejb.containers.EjbContainerUtilImpl_at_2e2acb47|#]

[#|2008-09-25T21:49:15.534-0400|SEVERE|GlassFish10.0|global|_ThreadID=25;_ThreadName=Thread-4;|Exception in processing @Stateless|#]

[#|2008-09-25T21:49:15.534-0400|FINE|GlassFish10.0|javax.enterprise.system.util|_ThreadID=25;_ThreadName=Thread-4;ClassName=null;MethodName=null;|No local string for enterprise.deployment.archivist.annotationprocessingfailed|#]

[#|2008-09-25T21:49:15.534-0400|SEVERE|GlassFish10.0|javax.enterprise.system.tools.deployment|_ThreadID=25;_ThreadName=Thread-4;|Annotations processing failed for file:/C:/glassfishv3-prelude/glassfish/domains/domain1/applications/HelloEJB31WithWS/|#]

[#|2008-09-25T21:49:15.597-0400|SEVERE|GlassFish10.0|global|_ThreadID=25;_ThreadName=Thread-4;|Exception in processing @Stateless|#]

[#|2008-09-25T21:49:15.597-0400|FINE|GlassFish10.0|javax.enterprise.system.util|_ThreadID=25;_ThreadName=Thread-4;ClassName=null;MethodName=null;|No local string for enterprise.deployment.archivist.annotationprocessingfailed|#]

[#|2008-09-25T21:49:15.597-0400|SEVERE|GlassFish10.0|javax.enterprise.system.tools.deployment|_ThreadID=25;_ThreadName=Thread-4;|Annotations processing failed for file:/C:/glassfishv3-prelude/glassfish/domains/domain1/applications/HelloEJB31WithWS/|#]

[#|2008-09-25T21:49:15.597-0400|WARNING|GlassFish10.0|javax.enterprise.system.tools.deployment|_ThreadID=25;_ThreadName=Thread-4;com.sun.v3.demo.HelloServlet/helloRef;com.sun.v3.demo.HelloEJB;HelloEJB;Local Business;[];|"DPL8017: Ejb-ref type mismatch for ejb reference com.sun.v3.demo.HelloServlet/helloRef. Reference declares type com.sun.v3.demo.HelloEJB but target ejb HelloEJB has Local Business interface of type []."|#]

[#|2008-09-25T21:49:15.597-0400|SEVERE|GlassFish10.0|javax.enterprise.system.core|_ThreadID=25;_ThreadName=Thread-4;|Exception while invoking class org.glassfish.webservices.WebServicesDeployer prepare method
java.lang.RuntimeException
        at org.glassfish.webservices.WebServicesDeployer.prepare(WebServicesDeployer.java:131)
        at com.sun.enterprise.v3.server.ApplicationLifecycle.prepare(ApplicationLifecycle.java:469)
        at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:199)
        at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:301)
        at com.sun.enterprise.v3.admin.CommandRunner$2.execute(CommandRunner.java:296)
        at com.sun.enterprise.v3.admin.CommandRunner.doCommand(CommandRunner.java:311)
        at com.sun.enterprise.v3.admin.CommandRunner.doCommand(CommandRunner.java:119)
        at com.sun.enterprise.v3.admin.CommandRunner.doCommand(CommandRunner.java:99)
        at org.glassfish.admingui.common.util.LocalDeploymentFacility$LocalDFCommandRunner.run(LocalDeploymentFacility.java:140)
        at org.glassfish.deployment.client.AbstractDeploymentFacility.deploy(AbstractDeploymentFacility.java:230)
        at org.glassfish.admingui.common.util.DeployUtil.invokeDeploymentFacility(DeployUtil.java:118)
        at org.glassfish.admingui.common.util.DeployUtil.deploy(DeployUtil.java:95)
        at org.glassfish.admingui.handlers.DeploymentHandler.deploy(DeploymentHandler.java:149)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at com.sun.jsftemplating.layout.descriptors.handler.Handler.invoke(Handler.java:422)
        at com.sun.jsftemplating.layout.descriptors.LayoutElementBase.dispatchHandlers(LayoutElementBase.java:420)
        at com.sun.jsftemplating.layout.descriptors.LayoutElementBase.dispatchHandlers(LayoutElementBase.java:394)
        at com.sun.jsftemplating.layout.event.CommandActionListener.invokeCommandHandlers(CommandActionListener.java:132)
        at com.sun.jsftemplating.layout.event.CommandActionListener.processAction(CommandActionListener.java:80)
        at javax.faces.event.ActionEvent.processListener(ActionEvent.java:88)
        at javax.faces.component.UIComponentBase.broadcast(UIComponentBase.java:771)
        at javax.faces.component.UICommand.broadcast(UICommand.java:372)
        at com.sun.webui.jsf.component.WebuiCommand.broadcast(WebuiCommand.java:160)
        at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:475)
        at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:756)
        at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:82)
        at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
        at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
        at com.sun.faces.extensions.avatar.lifecycle.PartialTraversalLifecycle.execute(PartialTraversalLifecycle.java:80)
        at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
        at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:431)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:337)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:218)
        at com.sun.webui.jsf.util.UploadFilter.doFilter(UploadFilter.java:370)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:250)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:218)
        at org.apache.catalina.core.StandardWrapperValve.preInvoke(StandardWrapperValve.java:460)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:139)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:186)
        at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719)
        at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657)
        at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:96)
        at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:187)
        at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719)
        at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:651)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1030)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:142)
        at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719)
        at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:651)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1030)
        at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:307)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:226)
        at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:180)
        at com.sun.grizzly.http.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:610)
        at com.sun.grizzly.http.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:547)
        at com.sun.grizzly.http.DefaultProcessorTask.process(DefaultProcessorTask.java:783)
        at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:152)
        at com.sun.enterprise.v3.services.impl.GlassfishProtocolChain.executeProtocolFilter(GlassfishProtocolChain.java:71)
        at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:103)
        at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:89)
        at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
        at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:67)
        at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:56)
        at com.sun.grizzly.util.WorkerThreadImpl.processTask(WorkerThreadImpl.java:325)
        at com.sun.grizzly.util.WorkerThreadImpl.run(WorkerThreadImpl.java:184)
Caused by: java.lang.NullPointerException
        at org.glassfish.webservices.WebServicesDeployer.prepare(WebServicesDeployer.java:121)
        ... 70 more
|#]

[#|2008-09-25T21:49:15.628-0400|SEVERE|GlassFish10.0|javax.enterprise.system.core|_ThreadID=25;_ThreadName=Thread-4;|Exception while deploying the app
java.lang.RuntimeException
        at org.glassfish.webservices.WebServicesDeployer.prepare(WebServicesDeployer.java:131)
        at com.sun.enterprise.v3.server.ApplicationLifecycle.prepare(ApplicationLifecycle.java:469)
        at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:199)
        at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:301)
        at com.sun.enterprise.v3.admin.CommandRunner$2.execute(CommandRunner.java:296)
        at com.sun.enterprise.v3.admin.CommandRunner.doCommand(CommandRunner.java:311)
        at com.sun.enterprise.v3.admin.CommandRunner.doCommand(CommandRunner.java:119)
        at com.sun.enterprise.v3.admin.CommandRunner.doCommand(CommandRunner.java:99)
        at org.glassfish.admingui.common.util.LocalDeploymentFacility$LocalDFCommandRunner.run(LocalDeploymentFacility.java:140)
        at org.glassfish.deployment.client.AbstractDeploymentFacility.deploy(AbstractDeploymentFacility.java:230)
        at org.glassfish.admingui.common.util.DeployUtil.invokeDeploymentFacility(DeployUtil.java:118)
        at org.glassfish.admingui.common.util.DeployUtil.deploy(DeployUtil.java:95)
        at org.glassfish.admingui.handlers.DeploymentHandler.deploy(DeploymentHandler.java:149)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at com.sun.jsftemplating.layout.descriptors.handler.Handler.invoke(Handler.java:422)
        at com.sun.jsftemplating.layout.descriptors.LayoutElementBase.dispatchHandlers(LayoutElementBase.java:420)
        at com.sun.jsftemplating.layout.descriptors.LayoutElementBase.dispatchHandlers(LayoutElementBase.java:394)
        at com.sun.jsftemplating.layout.event.CommandActionListener.invokeCommandHandlers(CommandActionListener.java:132)
        at com.sun.jsftemplating.layout.event.CommandActionListener.processAction(CommandActionListener.java:80)
        at javax.faces.event.ActionEvent.processListener(ActionEvent.java:88)
        at javax.faces.component.UIComponentBase.broadcast(UIComponentBase.java:771)
        at javax.faces.component.UICommand.broadcast(UICommand.java:372)
        at com.sun.webui.jsf.component.WebuiCommand.broadcast(WebuiCommand.java:160)
        at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:475)
        at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:756)
        at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:82)
        at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
        at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
        at com.sun.faces.extensions.avatar.lifecycle.PartialTraversalLifecycle.execute(PartialTraversalLifecycle.java:80)
        at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
        at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:431)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:337)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:218)
        at com.sun.webui.jsf.util.UploadFilter.doFilter(UploadFilter.java:370)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:250)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:218)
        at org.apache.catalina.core.StandardWrapperValve.preInvoke(StandardWrapperValve.java:460)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:139)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:186)
        at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719)
        at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657)
        at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:96)
        at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:187)
        at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719)
        at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:651)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1030)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:142)
        at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719)
        at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:651)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1030)
        at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:307)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:226)
        at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:180)
        at com.sun.grizzly.http.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:610)
        at com.sun.grizzly.http.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:547)
        at com.sun.grizzly.http.DefaultProcessorTask.process(DefaultProcessorTask.java:783)
        at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:152)
        at com.sun.enterprise.v3.services.impl.GlassfishProtocolChain.executeProtocolFilter(GlassfishProtocolChain.java:71)
        at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:103)
        at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:89)
        at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
        at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:67)
        at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:56)
        at com.sun.grizzly.util.WorkerThreadImpl.processTask(WorkerThreadImpl.java:325)
        at com.sun.grizzly.util.WorkerThreadImpl.run(WorkerThreadImpl.java:184)
Caused by: java.lang.NullPointerException
        at org.glassfish.webservices.WebServicesDeployer.prepare(WebServicesDeployer.java:121)
        ... 70 more
[Message sent by forum member 'rimartin7' (rimartin7)]

http://forums.java.net/jive/thread.jspa?messageID=301741