JAXWS Failed to marshal LegacyException
---------------------------------------
Key: AXIS2-2296
URL: https://issues.apache.org/jira/browse/AXIS2-2296
Project: Axis 2.0 (Axis2)
Issue Type: Bug
Components: jaxws
Reporter: Nikhil Thaker
The problem is related to use of WSGen where all jaxws arteffects are stored
underneath the /jaxws folder.
JAXWS fails to marshal the fault bean when it is stored in the .jaxws folder.
Here's stack trace for the error. I will
be providing the fix for this issue.
ExceptionFact 1 org.apache.axis2.jaxws.ExceptionFactory
createWebServiceException Create Exception:
javax.xml.ws.WebServiceException:
java.lang.ClassNotFoundException:
jaxws.exceptions.wsfvt.server.OperationExceptionBean
at
org.apache.axis2.jaxws.ExceptionFactory.createWebServiceException(ExceptionFactory.java:179)
at
org.apache.axis2.jaxws.ExceptionFactory.makeWebServiceException(ExceptionFactory.java:79)
at
org.apache.axis2.jaxws.ExceptionFactory.makeWebServiceException(ExceptionFactory.java:133)
at
org.apache.axis2.jaxws.marshaller.impl.alt.MethodMarshallerUtils.forName(MethodMarshallerUtils.java:866)
at
org.apache.axis2.jaxws.marshaller.impl.alt.MethodMarshallerUtils.loadClass(MethodMarshallerUtils.java:837)
at
org.apache.axis2.jaxws.marshaller.impl.alt.LegacyExceptionUtil.createFaultBean(LegacyExceptionUtil.java:121)
at
org.apache.axis2.jaxws.marshaller.impl.alt.MethodMarshallerUtils.marshalFaultResponse(MethodMarshallerUtils.java:544
)
at
org.apache.axis2.jaxws.marshaller.impl.alt.DocLitWrappedMethodMarshaller.marshalFaultResponse(DocLitWrappedMethodMar
shaller.java:478)
at
org.apache.axis2.jaxws.server.dispatcher.JavaBeanDispatcher.invoke(JavaBeanDispatcher.java:112)
at
org.apache.axis2.jaxws.server.EndpointController.invoke(EndpointController.java:146)
at
org.apache.axis2.jaxws.server.JAXWSMessageReceiver.receive(JAXWSMessageReceiver.java:106)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:186)
at
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:281)
at
com.ibm.ws.websvcs.transport.http.WASAxis2Servlet.doPost(WASAxis2Servlet.java:868)
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:995)
at
com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:501)
at
com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:464)
at
com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:90)
at
com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:744)
at
com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1433)
at
com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:111)
at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:454)
at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:383)
at
com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:102)
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:1469)
Caused by: java.lang.ClassNotFoundException:
jaxws.exceptions.wsfvt.server.OperationExceptionBean
at java.lang.Class.forNameImpl(Native Method)
at java.lang.Class.forName(Class.java:160)
at
org.apache.axis2.jaxws.marshaller.impl.alt.MethodMarshallerUtils$1.run(MethodMarshallerUtils.java:856)
at
org.apache.axis2.java.security.AccessController.doPrivileged(AccessController.java:130)
at
org.apache.axis2.jaxws.marshaller.impl.alt.MethodMarshallerUtils.forName(MethodMarshallerUtils.java:850)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]