dev@jax-ws.java.net

Re: JAX-WS web service error using IBM-websphere app server

From: Dmitry Katsubo <dma_k_at_mail.ru>
Date: Thu, 12 Apr 2012 09:42:32 +0200

Hi,

It looks like you miss org.apache.axis2:axis2-saaj in your classpath.
Check here:

http://stackoverflow.com/a/9996193/267197

On 28.02.2012 17:55, pvvvv wrote:
>
> Hi All,
>
> I am building a web service that needs to call another web service for
> getting data and then returns it to the client making the original call
> (simple & straight forward). Till now i have just coded for one of the
> operations(methods for other operations are still blank and i have not coded
> to them yet, so do not know if other operations might work). I am getting
> the following exception when ever i submit a request to one of the
> operations that i coded to. I am following a top -down approach and
> generated the SOAP IMPL class from the wsdl using the RAD client generation
> wizard. It says my SOAP IMPL class cannot be loaded due to an error. There
> are no compile time errors, but not sure what is causing it to fail at run
> time in loading the class. The SOAP IMPL class depends on the other jars
> (which are used for caching and some common services).
>
> Do you think any of this code might cause it to fail from loading? I HAVE
> ALSO ATTACHED THE JAVA FILE THAT GIVES YOU AN IDEA HOW THE CODE LOOKS LIKE
>
> In the request i append the HTTP HEADERS that i am extracting in the code.
>
> @javax.annotation.Resource private WebServiceContext wsc;
> HttpServletRequest httpReq = (HttpServletRequest)
> wsc.getMessageContext().get(MessageContext.SERVLET_REQUEST);
> String dnName= httpReq.getHeader("ClientName");
>
> Stack Dump = org.apache.axis2.AxisFault: The **.**SOAPImpl provider
> implementation class cannot be loaded due to an error. Processing cannot
> continue.; nested exception is:
> javax.xml.ws.WebServiceException: The **.**SOAPImpl provider implementation
> class cannot be loaded due to an error. Processing cannot continue.
> at org.apache.axis2.AxisFault.makeFault(AxisFault.java:385)
> at
> org.apache.axis2.jaxws.server.JAXWSMessageReceiver.receive(JAXWSMessageReceiver.java:199)
> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:321)
> at
> org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:271)
> at
> com.ibm.ws.websvcs.transport.http.WASAxis2Servlet.doPost(WASAxis2Servlet.java:907)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
> at
> com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1103)
> at
> com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:570)
> at
> com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:486)
> at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3440)
> at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:267)
> at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:815)
> at
> com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1461)
> at
> com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:118)
> at
> com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:458)
> at
> com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:387)
> at
> com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:267)
> at
> com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214)
> at
> com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)
> at
> com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
> at
> com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
> at
> com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
> at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
> at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:195)
> at
> com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:743)
> at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:873)
> at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1473)
> Caused by: javax.xml.ws.WebServiceException: The **.**SOAPImpl provider
> implementation class cannot be loaded due to an error. Processing cannot
> continue.
> at
> org.apache.axis2.jaxws.ExceptionFactory.createWebServiceException(ExceptionFactory.java:178)
> at
> org.apache.axis2.jaxws.ExceptionFactory.makeWebServiceException(ExceptionFactory.java:79)
> at
> org.apache.axis2.jaxws.ExceptionFactory.makeWebServiceException(ExceptionFactory.java:125)
> at
> org.apache.axis2.jaxws.server.EndpointController.loadServiceImplClass(EndpointController.java:345)
> at
> org.apache.axis2.jaxws.server.EndpointController.getServiceImplementation(EndpointController.java:297)
> at
> org.apache.axis2.jaxws.server.EndpointController.handleRequest(EndpointController.java:181)
> at
> org.apache.axis2.jaxws.server.EndpointController.invoke(EndpointController.java:88)
> at
> org.apache.axis2.jaxws.server.JAXWSMessageReceiver.receive(JAXWSMessageReceiver.java:140)
> ... 26 more


-- 
With best regards,
Dmitry