0 Replies Latest reply on Dec 10, 2009 3:40 PM by philip andrew

    Web service SOAP, Attempted to invoke a Seam component outside an initialized application

    philip andrew Newbie

      Hi,


      I am trying to convert my web service to a SEAM component. My web service works fine if I do not use @Name(... - as soon as I add @Name(... I get the following error messages.


      The URL to my web service as given by http://localhost:8080/jbossws/services is http://localhost:8080/CSI-ear-CSI-ejb/AuthenticatorWebService


      I don't see how SEAM is supposed to work, because my application is located at http://localhost:8080/CSI/ , since the above URL to the web service does not go through my application URL, how can SEAM filter intercept?


      Please help, really stuck.


      Philip


      @Name("AuthenticatorWebService")
      @Stateless
      @WebService(name = "AuthenticatorWebService", serviceName = "AuthenticatorWebService")
      public class AuthenticatorWebService implements AuthenticatorServiceRemote
      {
         @WebMethod
         public boolean login(String username, String password)
         {
             System.out.println("LOGIN CALLED ######################");
             return true;
         }
      }
      



      19:42:27,731 ERROR [HandlerChainExecutor] Exception during handler processing
      java.lang.IllegalStateException: Attempted to invoke a Seam component outside an
       initialized application
              at org.jboss.seam.contexts.Lifecycle.getApplication(Lifecycle.java:36)
              at org.jboss.seam.contexts.ServletLifecycle.beginRequest(ServletLifecycl
      e.java:52)
              at org.jboss.seam.webservice.SOAPRequestHandler.handleInbound(SOAPReques
      tHandler.java:71)
              at org.jboss.seam.webservice.SOAPRequestHandler.handleMessage(SOAPReques
      tHandler.java:56)
              at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(Ha
      ndlerChainExecutor.java:305)
              at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(Ha
      ndlerChainExecutor.java:142)
              at org.jboss.ws.core.jaxws.handler.HandlerDelegateJAXWS.callRequestHandl
      erChain(HandlerDelegateJAXWS.java:97)
              at org.jboss.ws.core.server.ServiceEndpointInvoker.callRequestHandlerCha
      in(ServiceEndpointInvoker.java:125)
              at org.jboss.ws.core.server.ServiceEndpointInvoker.invoke(ServiceEndpoin
      tInvoker.java:201)
              at org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest(RequestHan
      dlerImpl.java:474)
              at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHand
      lerImpl.java:295)
              at org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl
      .java:205)
              at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(Request
      HandlerImpl.java:131)
              at org.jboss.wsf.common.servlet.AbstractEndpointServlet.service(Abstract
      EndpointServlet.java:85)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
      icationFilterChain.java:290)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
      ilterChain.java:206)
              at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFi
      lter.java:96)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
      icationFilterChain.java:235)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
      ilterChain.java:206)
              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
      alve.java:235)
              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
      alve.java:191)
              at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(Securit
      yAssociationValve.java:190)
              at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValv
      e.java:92)
              at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.proce
      ss(SecurityContextEstablishmentValve.java:126)
              at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invok
      e(SecurityContextEstablishmentValve.java:70)
              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
      ava:127)
              at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
      ava:102)
              at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedC
      onnectionValve.java:158)
              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
      ve.java:109)
              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
      a:330)
              at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcesso
      r.java:905)
              at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.pr
      ocess(Http11AprProtocol.java:592)
              at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:20
      36)
              at java.lang.Thread.run(Thread.java:619)
      19:42:27,848 ERROR [SOAPFaultHelperJAXWS] SOAP request exception
      java.lang.IllegalStateException: Attempted to invoke a Seam component outside an
       initialized application
              at org.jboss.seam.contexts.Lifecycle.getApplication(Lifecycle.java:36)
              at org.jboss.seam.contexts.ServletLifecycle.beginRequest(ServletLifecycl
      e.java:52)
              at org.jboss.seam.webservice.SOAPRequestHandler.handleInbound(SOAPReques
      tHandler.java:71)
              at org.jboss.seam.webservice.SOAPRequestHandler.handleMessage(SOAPReques
      tHandler.java:56)
              at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(Ha
      ndlerChainExecutor.java:305)
              at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(Ha
      ndlerChainExecutor.java:142)
              at org.jboss.ws.core.jaxws.handler.HandlerDelegateJAXWS.callRequestHandl
      erChain(HandlerDelegateJAXWS.java:97)
              at org.jboss.ws.core.server.ServiceEndpointInvoker.callRequestHandlerCha
      in(ServiceEndpointInvoker.java:125)
              at org.jboss.ws.core.server.ServiceEndpointInvoker.invoke(ServiceEndpoin
      tInvoker.java:201)
              at org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest(RequestHan
      dlerImpl.java:474)
              at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHand
      lerImpl.java:295)
              at org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl
      .java:205)
              at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(Request
      HandlerImpl.java:131)
              at org.jboss.wsf.common.servlet.AbstractEndpointServlet.service(Abstract
      EndpointServlet.java:85)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
      icationFilterChain.java:290)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
      ilterChain.java:206)
              at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFi
      lter.java:96)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
      icationFilterChain.java:235)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
      ilterChain.java:206)
              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
      alve.java:235)
              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
      alve.java:191)
              at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(Securit
      yAssociationValve.java:190)
              at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValv
      e.java:92)
              at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.proce
      ss(SecurityContextEstablishmentValve.java:126)
              at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invok
      e(SecurityContextEstablishmentValve.java:70)
              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
      ava:127)
              at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
      ava:102)
              at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedC
      onnectionValve.java:158)
              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
      ve.java:109)
              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
      a:330)
              at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcesso
      r.java:905)
              at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.pr
      ocess(Http11AprProtocol.java:592)
              at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:20
      36)
              at java.lang.Thread.run(Thread.java:619)