1 2 Previous Next 18 Replies Latest reply on Dec 17, 2009 7:00 AM by jaikiran pai

    Cannot inject field annotated with @EJB annotation

    Sebastian Bayerlein Newbie

      Hello,

      I am calling an webservice, which runs on a jboss 5.1.0 from a webapplication on a tomcat.
      When calling the webservice, ich get the following error in tomcat logfile, in JBoss I got no error.

      error tomcat-log:

      SEVERE: Cannot inject field annotated with @EJB annotation: com.test.MessageService com.test.frontend.FrontendService.messageService
      javax.xml.ws.soap.SOAPFaultException: Cannot inject field annotated with @EJB annotation: com.test.MessageService com.test.frontend.FrontendService.messageService
          at com.sun.xml.ws.fault.SOAP11Fault.getProtocolException(SOAP11Fault.java:189)
          at com.sun.xml.ws.fault.SOAPFaultBuilder.createException(SOAPFaultBuilder.java:122)
          at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:119)
          at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:89)
          at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:118)
          at $Proxy30.getMessageList(Unknown Source)
          at com.test.wsclient.FrontendServiceClient.getTestList(FrontendServiceClient.java:72)
         

         
      The FrontendService class on JBoss is the following:
      @Stateless
      @WebService(name = "FrontendServicePort", serviceName = "FrontendService", portName = "FrontendServicePort"
        , targetNamespace = "http://www.test.com/ws"
          , wsdlLocation = "WEB-INF/wsdl/FrontendService.wsdl"
            )
      @HandlerChain(file = "../handler/WebServiceHandlers.xml")
      public class FrontendService
      {
        @EJB
        MessageService messageService;
        ...

       
       
      The MessageService class on JBoss is the following:
      @Stateless
      @TransactionAttribute(TransactionAttributeType.REQUIRED)
      @Interceptors(
      { ServiceLoggerContextInterceptor.class, TimingInterceptor.class, LoggingInterceptor.class })
      public class MessageServiceImpl implements MessageService
      {
        private static final Logger                    logger = Logger.getLogger(MessageServiceImpl.class);

        @EJB
        private MessageRepository                      messageRepository;
        ...

       
      Has somebody an idea, what could be the reason for this exception?

      Best regards
      sebbay
        • 1. Re: Cannot inject field annotated with @EJB annotation
          jaikiran pai Master

          sebbay wrote:

           

          Hello,

           

          Was that your entire post content? Or is it some issue with the new forum software?

          • 2. Re: Cannot inject field annotated with @EJB annotation
            Sebastian Bayerlein Newbie
            Hi, now the content is available, I was replacing some content.
            • 3. Re: Cannot inject field annotated with @EJB annotation
              jaikiran pai Master

              And by the way, the righ place to ask this is the EJB3 user forum http://community.jboss.org/community/ejb3 and not the dev forum I'll move it there for you.

              • 5. Re: Cannot inject field annotated with @EJB annotation
                jaikiran pai Master
                SEVERE:
                Cannot inject field annotated with @EJB annotation:
                com.test.MessageService com.test.frontend.FrontendService.messageService
                javax.xml.ws.soap.SOAPFaultException:
                Cannot inject field annotated with @EJB annotation:
                com.test.MessageService com.test.frontend.FrontendService.messageService

                 

                 

                Is that the complete exception stacktrace? Or is there anything more that you see? That doesn't point out the root cause.

                • 6. Re: Cannot inject field annotated with @EJB annotation
                  Sebastian Bayerlein Newbie

                  Here is the complete Stack:


                  SEVERE: Cannot inject field annotated with @EJB annotation: com.test.MessageService com.test.frontend.FrontendService.messageService
                  javax.xml.ws.soap.SOAPFaultException: Cannot inject field annotated with @EJB annotation: com.test.MessageService com.test.frontend.FrontendService.messageService
                      at com.sun.xml.ws.fault.SOAP11Fault.getProtocolException(SOAP11Fault.java:189)
                      at com.sun.xml.ws.fault.SOAPFaultBuilder.createException(SOAPFaultBuilder.java:122)
                      at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:119)
                      at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:89)
                      at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:118)
                      at $Proxy30.getMessageList(Unknown Source)
                      at com.test.wsclient.FrontendServiceClient.getMessageList(FrontendServiceClient.java:72)
                      at com.test.ServiceProvider.listMessagesService(ServiceProvider.java:245)
                      at com.test.MessageAction.listMessages(MessageAction.java:57)
                      at com.test.ucs.inbox.InboxAction.listMessages(InboxAction.java:73)
                      at sun.reflect.GeneratedMethodAccessor85.invoke(Unknown Source)
                      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                      at java.lang.reflect.Method.invoke(Method.java:597)
                      at com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:440)
                      at com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:279)
                      at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:242)
                      at com.test.layer.ui.web.LogActionInterceptor.intercept(LogActionInterceptor.java:39)
                      at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
                      at com.test.layer.ui.web.InvalidParameterCatchInterceptor.intercept(InvalidParameterCatchInterceptor.java:29)
                      at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
                      at com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:163)
                      at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)
                      at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
                      at com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:249)
                      at org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:68)
                      at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)
                      at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
                      at com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:122)
                      at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
                      at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:195)
                      at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)
                      at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
                      at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:195)
                      at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)
                      at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
                      at com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:148)
                      at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
                      at org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:93)
                      at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
                      at org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:235)
                      at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
                      at com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:89)
                      at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
                      at com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:128)
                      at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
                      at org.apache.struts2.interceptor.ProfilingActivationInterceptor.intercept(ProfilingActivationInterceptor.java:104)
                      at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
                      at org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:267)
                      at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
                      at com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:126)
                      at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
                      at com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:138)
                      at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)
                      at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
                      at com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:148)
                      at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
                      at org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)
                      at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
                      at com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:128)
                      at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
                      at com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:176)
                      at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
                      at com.test.SessionFacadeInterceptor.intercept(SessionFacadeInterceptor.java:57)
                      at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
                      at org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:52)
                      at com.opensymphony.xwork2.ActionChainResult.execute(ActionChainResult.java:222)
                      at com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:361)
                      at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:265)
                      at com.test.layer.ui.web.LogActionInterceptor.intercept(LogActionInterceptor.java:39)
                      at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
                      at com.test.layer.ui.web.InvalidParameterCatchInterceptor.intercept(InvalidParameterCatchInterceptor.java:29)
                      at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
                      at com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:163)
                      at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)
                      at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
                      at com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:249)
                      at org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:68)
                      at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)
                      at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
                      at com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:122)
                      at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
                      at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:195)
                      at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)
                      at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
                      at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:195)
                      at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)
                      at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
                      at com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:148)
                      at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
                      at org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:93)
                      at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
                      at org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:235)
                      at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
                      at com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:89)
                      at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
                      at com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:128)
                      at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
                      at org.apache.struts2.interceptor.ProfilingActivationInterceptor.intercept(ProfilingActivationInterceptor.java:104)
                      at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
                      at org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:267)
                      at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
                      at com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:126)
                      at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
                      at com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:138)
                      at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)
                      at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
                      at com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:148)
                      at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
                      at org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)
                      at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
                      at com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:128)
                      at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
                      at com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:176)
                      at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
                      at com.test.SessionFacadeInterceptor.intercept(SessionFacadeInterceptor.java:57)
                      at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:236)
                      at org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:52)
                      at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:468)
                      at org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:395)
                      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                      at com.test.RequestParamFilter.doFilter(RequestParamFilter.java:113)
                      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
                      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
                      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
                      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
                      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
                      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
                      at org.apache.coyote.http11.Http11NioProcessor.process(Http11NioProcessor.java:880)
                      at org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:719)
                      at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:2081)
                      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
                      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
                      at java.lang.Thread.run(Thread.java:619)

                  • 7. Re: Cannot inject field annotated with @EJB annotation
                    Sebastian Bayerlein Newbie
                    One hint: The FrontendService is deployed as a servlet in a WAR file, the EJB is included in an other JAR file, but in the same EAR. Do I need to specify something in my web.xml?
                    • 8. Re: Cannot inject field annotated with @EJB annotation
                      jaikiran pai Master

                      Looking at the stacktrace it appears that some code is eating up the root cause of the exception. I can't really say what might be wrong, but let's try one step at a time. First,

                      @Stateless
                      @WebService(name = "FrontendServicePort", serviceName = "FrontendService", portName = "FrontendServicePort"
                        , targetNamespace = "http://www.test.com/ws"
                          , wsdlLocation = "WEB-INF/wsdl/FrontendService.wsdl"
                            )
                      @HandlerChain(file = "../handler/WebServiceHandlers.xml")
                      public class FrontendService
                      

                       

                      The FrontendService is marked as a @Stateless but it neither implements any interface(s) nor marks any @Remote or @Local. And how are you looking you the FrontendService? Is it looked up through JNDI?

                      • 9. Re: Cannot inject field annotated with @EJB annotation
                        Sebastian Bayerlein Newbie
                        Hi,

                        The webservice is called like this:

                           final WebServiceClient webServiceClientAnnotation = FrontendService.class.getAnnotation(WebServiceClient.class);
                            final FrontendService lookup = new FrontendService(new URL(serviceUrl), new QName(webServiceClientAnnotation.targetNamespace(), webServiceClientAnnotation.name()));
                            service = lookup.getFrontendServicePort();
                           
                            ...

                            final GetMessageListOutput output = service.getMessageList(arg0);

                           
                        I changed the webservice implementation as followed:

                        @Stateless
                        @WebContext(contextRoot="/test/ws", urlPattern="/FrontendService")
                        @WebService(name = "FrontendServicePort", serviceName = "FrontendService", portName = "FrontendServicePort"
                          , targetNamespace = "http://www.elaxy.com/ebox/ws"
                            , wsdlLocation = "WEB-INF/wsdl/FrontendService.wsdl"
                              )
                        @HandlerChain(file = "../handler/WebServiceHandlers.xml")
                        public class FrontendService implements FrontendServiceInterface
                        {
                            ...


                        But I still get the same error.

                        • 10. Re: Cannot inject field annotated with @EJB annotation
                          jaikiran pai Master

                          So this turns out to be a webservice usage. I remember injection of @EJB was implemented in JBoss WS project just a few months back. I'll move this thread to the WS user forum where you might get more help.

                          • 11. Re: Cannot inject field annotated with @EJB annotation
                            jaikiran pai Master

                            jaikiran wrote:

                             

                            I'll move this thread to the WS user forum where you might get more help.

                             

                            Turns out, i can't do that (even with admin rights in this forum). So please open a new thread here http://community.jboss.org/en/jbosswebservices?view=discussions.

                            • 13. Re: Cannot inject field annotated with @EJB annotation
                              Sebastian Bayerlein Newbie
                              Yes, the MessageService EJB is stored in a file named test.jar and FrontendService is stored in a file named test-ws.war.
                              • 14. Re: Cannot inject field annotated with @EJB annotation
                                Sebastian Bayerlein Newbie

                                On the JBoss I now get the following exception:

                                09-12-16 12:41:44.287 | --9723657fca434d5f93d3b1edcb7d7b35 | ERROR | InjectionException               | Resource 'test/MessageServiceImpl/remote-com.test.MessageService' not found
                                javax.naming.NameNotFoundException: MessageServiceImpl not bound
                                    at org.jnp.server.NamingServer.getBinding(NamingServer.java:771)
                                    at org.jnp.server.NamingServer.getBinding(NamingServer.java:779)
                                    at org.jnp.server.NamingServer.getObject(NamingServer.java:785)
                                    at org.jnp.server.NamingServer.lookup(NamingServer.java:396)
                                    at org.jnp.server.NamingServer.lookup(NamingServer.java:399)
                                    at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:726)
                                    at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:686)
                                    at javax.naming.InitialContext.lookup(InitialContext.java:392)
                                    at org.jboss.wsf.common.injection.InjectionHelper.lookup(InjectionHelper.java:427)
                                    at org.jboss.wsf.common.injection.InjectionHelper.inject(InjectionHelper.java:410)
                                    at org.jboss.wsf.common.injection.InjectionHelper.injectEJBAnnotatedAccessibleObjects(InjectionHelper.java:360)
                                    at org.jboss.wsf.common.injection.InjectionHelper.injectResources(InjectionHelper.java:111)
                                    at org.jboss.wsf.container.jboss50.invocation.InvocationHandlerJSE.getTargetBean(InvocationHandlerJSE.java:85)
                                    at org.jboss.wsf.container.jboss50.invocation.InvocationHandlerJSE.invoke(InvocationHandlerJSE.java:97)
                                    at org.jboss.ws.core.server.ServiceEndpointInvoker.invoke(ServiceEndpointInvoker.java:222)
                                    at org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest(RequestHandlerImpl.java:474)
                                    at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:295)
                                    at org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl.java:205)
                                    at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:131)
                                    at org.jboss.wsf.common.servlet.AbstractEndpointServlet.service(AbstractEndpointServlet.java:85)
                                    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
                                    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
                                    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                                    at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
                                    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                                    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                                    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
                                    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
                                    at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
                                    at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
                                    at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
                                    at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
                                    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
                                    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
                                    at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
                                    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
                                    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
                                    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
                                    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
                                    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
                                    at java.lang.Thread.run(Thread.java:619)
                                09-12-16 12:41:44.313 | --9723657fca434d5f93d3b1edcb7d7b35 | ERROR | InjectionException               | Cannot inject field annotated with @EJB annotation: com.test.MessageService com.test.frontend.FrontendService.messageService
                                org.jboss.wsf.common.injection.InjectionException: Resource 'test/MessageServiceImpl/remote-com.test.MessageService' not found
                                    at org.jboss.wsf.common.injection.InjectionException.rethrow(InjectionException.java:106)
                                    at org.jboss.wsf.common.injection.InjectionHelper.lookup(InjectionHelper.java:432)
                                    at org.jboss.wsf.common.injection.InjectionHelper.inject(InjectionHelper.java:410)
                                    at org.jboss.wsf.common.injection.InjectionHelper.injectEJBAnnotatedAccessibleObjects(InjectionHelper.java:360)
                                    at org.jboss.wsf.common.injection.InjectionHelper.injectResources(InjectionHelper.java:111)
                                    at org.jboss.wsf.container.jboss50.invocation.InvocationHandlerJSE.getTargetBean(InvocationHandlerJSE.java:85)
                                    at org.jboss.wsf.container.jboss50.invocation.InvocationHandlerJSE.invoke(InvocationHandlerJSE.java:97)
                                    at org.jboss.ws.core.server.ServiceEndpointInvoker.invoke(ServiceEndpointInvoker.java:222)
                                    at org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest(RequestHandlerImpl.java:474)
                                    at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:295)
                                    at org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl.java:205)
                                    at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:131)
                                    at org.jboss.wsf.common.servlet.AbstractEndpointServlet.service(AbstractEndpointServlet.java:85)
                                    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
                                    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
                                    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                                    at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
                                    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                                    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                                    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
                                    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
                                    at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
                                    at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
                                    at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
                                    at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
                                    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
                                    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
                                    at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
                                    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
                                    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
                                    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
                                    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
                                    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
                                    at java.lang.Thread.run(Thread.java:619)
                                Caused by: javax.naming.NameNotFoundException: MessageServiceImpl not bound
                                    at org.jnp.server.NamingServer.getBinding(NamingServer.java:771)
                                    at org.jnp.server.NamingServer.getBinding(NamingServer.java:779)
                                    at org.jnp.server.NamingServer.getObject(NamingServer.java:785)
                                    at org.jnp.server.NamingServer.lookup(NamingServer.java:396)
                                    at org.jnp.server.NamingServer.lookup(NamingServer.java:399)
                                    at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:726)
                                    at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:686)
                                    at javax.naming.InitialContext.lookup(InitialContext.java:392)
                                    at org.jboss.wsf.common.injection.InjectionHelper.lookup(InjectionHelper.java:427)
                                    ... 32 more
                                09-12-16 12:41:44.320 | --9723657fca434d5f93d3b1edcb7d7b35 | ERROR | SOAPFaultHelperJAXWS             | SOAP request exception
                                org.jboss.wsf.common.injection.InjectionException: Cannot inject field annotated with @EJB annotation: com.test.MessageService com.test.frontend.FrontendService.messageService
                                    at org.jboss.wsf.common.injection.InjectionException.rethrow(InjectionException.java:106)
                                    at org.jboss.wsf.common.injection.InjectionHelper.injectEJBAnnotatedAccessibleObjects(InjectionHelper.java:365)
                                    at org.jboss.wsf.common.injection.InjectionHelper.injectResources(InjectionHelper.java:111)
                                    at org.jboss.wsf.container.jboss50.invocation.InvocationHandlerJSE.getTargetBean(InvocationHandlerJSE.java:85)
                                    at org.jboss.wsf.container.jboss50.invocation.InvocationHandlerJSE.invoke(InvocationHandlerJSE.java:97)
                                    at org.jboss.ws.core.server.ServiceEndpointInvoker.invoke(ServiceEndpointInvoker.java:222)
                                    at org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest(RequestHandlerImpl.java:474)
                                    at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:295)
                                    at org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl.java:205)
                                    at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:131)
                                    at org.jboss.wsf.common.servlet.AbstractEndpointServlet.service(AbstractEndpointServlet.java:85)
                                    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
                                    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
                                    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                                    at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
                                    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                                    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                                    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
                                    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
                                    at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
                                    at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
                                    at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
                                    at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
                                    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
                                    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
                                    at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
                                    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
                                    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
                                    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
                                    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
                                    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
                                    at java.lang.Thread.run(Thread.java:619)
                                Caused by: org.jboss.wsf.common.injection.InjectionException: Resource 'test/MessageServiceImpl/remote-com.test.MessageService' not found
                                    at org.jboss.wsf.common.injection.InjectionException.rethrow(InjectionException.java:106)
                                    at org.jboss.wsf.common.injection.InjectionHelper.lookup(InjectionHelper.java:432)
                                    at org.jboss.wsf.common.injection.InjectionHelper.inject(InjectionHelper.java:410)
                                    at org.jboss.wsf.common.injection.InjectionHelper.injectEJBAnnotatedAccessibleObjects(InjectionHelper.java:360)
                                    ... 30 more
                                Caused by: javax.naming.NameNotFoundException: MessageServiceImpl not bound
                                    at org.jnp.server.NamingServer.getBinding(NamingServer.java:771)
                                    at org.jnp.server.NamingServer.getBinding(NamingServer.java:779)
                                    at org.jnp.server.NamingServer.getObject(NamingServer.java:785)
                                    at org.jnp.server.NamingServer.lookup(NamingServer.java:396)
                                    at org.jnp.server.NamingServer.lookup(NamingServer.java:399)
                                    at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:726)
                                    at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:686)
                                    at javax.naming.InitialContext.lookup(InitialContext.java:392)
                                    at org.jboss.wsf.common.injection.InjectionHelper.lookup(InjectionHelper.java:427)
                                    ... 32 more

                                1 2 Previous Next