0 Replies Latest reply on Mar 15, 2002 3:37 AM by keru

    Deploy StatelessBean as Webservice using Apache SOAP

    keru Newbie

      I'm using Jboss2.44 + Tomcat 4 +Apache SOAP to deploy a webservice. I have put the bean's jar file in both deploy and lib/ext directory and restart jboss. I got the following error when runing a test client.

      Anybody can help?

      =====================================================
      Fault Code = SOAP-ENV:Server
      Fault String = Unable to initialize context
      [Attributes={}] [faultCode=SOAP-ENV:Server] [faultString=Unable to initialize context] [faultActorURI=/soap/servlet/rpcrouter] [DetailEntries=

      [(0)=[SOAPException: faultCode=SOAP-ENV:Server; msg=Unable to initialize context]
      at org.apache.soap.providers.StatelessEJBProvider.initialize(StatelessEJBProvider.java:130)
      at org.apache.soap.providers.StatelessEJBProvider.locate(StatelessEJBProvider.java:248)
      at org.apache.soap.server.http.RPCRouterServlet.doPost(RPCRouterServlet.java:285)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
      at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)
      at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
      at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
      at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
      at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
      at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
      at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
      at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
      at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)
      at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
      at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1011)
      at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106)
      at java.lang.Thread.run(Unknown Source)
      ]
      ] [FaultEntries=]
      ======================================================

      I'm using this DeploymentDescriptor.XML
      ======================================================
      <?xml version="1.0"?>
      <isd:service xmlns:isd="http://xml.apache.org/xml-soap/deployment"
      id="urn:ssb.RuleGeneratorEJB">
      <isd:provider type="org.apache.soap.providers.StatelessEJBProvider"
      scope="Application"
      methods="generate">
      <isd:java class="ssb.RuleGeneratorEJB"/>
      <isd:option key="FullHomeInterfaceName" value="ssb.RuleGeneratorEJBHome" />
      <isd:option key="ContextProviderURL" value="localhost:1099" />
      <isd:option key="FullContextFactoryName" value="org.jnp.interfaces.NamingContextFactory" />
      </isd:provider>
      <isd:faultListener>org.apache.soap.server.DOMFaultListener</isd:faultListener>
      </isd:service>
      ======================================================