ClassCastException:org.apache.axis2.saaj.SOAPMessageImpl

时间:2010-10-18 15:05:14

标签: tomcat

我在tomcat 6上发布了一个JAX-WS样式的webservice。这个webservice本身使用了一个JAX-RPC样式的webservice。一旦我包含对RPC Web服务的调用,我就会收到以下错误。当我不调用RPC样式的Web服务时,该错误不存在。

java.lang.ClassCastException: org.apache.axis2.saaj.SOAPMessageImpl cannot be cast to com.sun.xml.messaging.saaj.soap.MessageImpl
at com.sun.xml.rpc.client.StubBase._postSendingHook(StubBase.java:231)
at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:324)
at DVSEWSPackage.DejonghewsRPC_Stub.DVSE_Webservice(DejonghewsRPC_Stub.java:459)
at DVSEWSPackage.DVSEWSClass.GetArticleInformation(DVSEWSClass.java:73)
at erpservice.webapp.dvse.ErpMessageReceiverInOut.invokeBusinessLogic(ErpMessageReceiverInOut.java:48)
at org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.invokeBusinessLogic(AbstractInOutSyncMessageReceiver.java:42)
at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:114)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:173)
at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:167)
at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:142)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
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.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:127)
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:298)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Unknown Source)

1 个答案:

答案 0 :(得分:2)

axis2 saaj实现与saaj-ri实现发生冲突。你应该清理unappropiate JAR的类路径,查找像saaj-ri -.... jar和axis2 .... jar

http://www.lady4j.com

产生的积分