Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
3.0, 3.1
-
None
Description
Add the following to HelloPojoService.java in the ejb-examples.war to reproduce the error:
@EJB
AnnotatedEJBLocal annotatedEjb;
Here is the log:
2008-12-03 14:19:00,968 - INFO - Created Ejb(deployment-id=HelloEjbService, ejb-name=HelloEjbService, container=My Stateless Container)
2008-12-03 14:19:00,968 - INFO - Created Ejb(deployment-id=AnnotatedEJB, ejb-name=AnnotatedEJB, container=My Stateless Container)
2008-12-03 14:19:00,968 - INFO - Created Ejb(deployment-id=SecureEJB, ejb-name=SecureEJB, container=My Stateless Container)
2008-12-03 14:19:00,968 - INFO - Deployed Application(path=C:\research\openejb\ws\apache-tomcat-6.0.18\webapps\ejb-examples)
2008-12-03 14:19:01,437 - INFO - Webservice(wsdl=http://localhost:8080/HelloEjbService, qname=
HelloEjbService) --> Ejb(id=HelloEjbService)
2008-12-03 14:19:01,578 - ERROR - Error deploying CXF webservice for servlet
HelloPojoService
javax.xml.ws.WebServiceException: Service resource injection failed
at org.apache.openejb.server.cxf.pojo.PojoEndpoint.<init>(PojoEndpoint.java:61)
at org.apache.openejb.server.cxf.pojo.PojoWsContainer.createEndpoint(PojoWsContainer.java:38)
at org.apache.openejb.server.cxf.pojo.PojoWsContainer.createEndpoint(PojoWsContainer.java:26)
at org.apache.openejb.server.cxf.CxfWsContainer.start(CxfWsContainer.java:63)
at org.apache.openejb.server.cxf.pojo.PojoWsContainer.start(PojoWsContainer.java:43)
at org.apache.openejb.server.cxf.CxfService.createPojoWsContainer(CxfService.java:69)
at org.apache.openejb.server.webservices.WsService.afterApplicationCreated(WsService.java:301)
at org.apache.openejb.tomcat.catalina.TomcatWebAppBuilder.afterStart(TomcatWebAppBuilder.java:295)
at org.apache.openejb.tomcat.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:60)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4337)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:627)
at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:553)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:516)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
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 org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: java.lang.NullPointerException
at org.apache.openejb.InjectionProcessor.fillInjectionProperties(InjectionProcessor.java:158)
at org.apache.openejb.InjectionProcessor.construct(InjectionProcessor.java:90)
at org.apache.openejb.InjectionProcessor.createInstance(InjectionProcessor.java:72)
at org.apache.openejb.server.cxf.pojo.PojoEndpoint.<init>(PojoEndpoint.java:57)
... 32 more2008-12-03 14:19:01,718 - INFO - Configuring enterprise application:
C:\research\openejb\ws\apache-tomcat-6.0.18\webapps\openejb
2008-12-03 14:19:01,718 - INFO - Enterprise application "C:\research\openejb\ws\apache-tomcat-6.0.18\webapps\openejb" loaded.
2008-12-03 14:19:01,718 - INFO - Assembling app: C:\research\openejb\ws\apache-tomcat-6.0.18\webapps\openejb
2008-12-03 14:19:01,734 - INFO - Deployed Application(path=C:\research\openejb\ws\apache-tomcat-6.0.18\webapps\openejb)
2008-12-03 14:19:01,828 - INFO - Configuring enterprise application: C:\research\openejb\ws\apache-tomcat-6.0.18\webapps\docs