gpt4 book ai didi

tomcat - ClassCastException : org. apache.axis2.saaj.SOAPMessageImpl

转载 作者:行者123 更新时间:2023-11-28 22:45:57 25 4
gpt4 key购买 nike

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

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)

最佳答案

axis2 saaj 实现与 saaj-ri 实现冲突。您应该清理不合适的 JAR 的类路径,查找类似 saaj-ri-....jar 和 axis2....jar 的东西

关于tomcat - ClassCastException : org. apache.axis2.saaj.SOAPMessageImpl,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3960483/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com