大佬教程收集整理的这篇文章主要介绍了春季-无法将weblogic.webservice.core.soap.MessageFactoryImpl强制转换为javax.xml.soap.MessageFactory ,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
当我在weblogic中部署Web服务客户端应用程序时,遇到以下错误. [此应用程序一直在运行,tomcat中没有任何问题.]
这是ws-config.xml中的bean定义
(bean id="saajSoapmessageFactory" class="org.springframework.ws@L_801_3@ap.saaj.saajSoapmessageFactory")
检查您的weblogic启动日志,您将看到一些参数设置,例如
javax.xml.rpc.serviceFactory = weblogic.webservice.core.rpc.serviceFactoryImpl
javax.xml@L_801_3@ap.messageFactory = weblogic.webservice.core@L_801_3@ap.messageFactoryImpl
您可以尝试2个选项(我不知道哪个可行,请尝试一下)
一种)
在您的客户中,将自己设置为Spring等效项
System.setProperty("javax.xml@L_801_3@ap.messageFactory","org.springframework.ws@L_801_3@ap.saaj.saajSoapmessageFactory");
System.setProperty( "javax.xml.rpc.serviceFactory","** Spring version **");
B)在startWeblogic.cmd中将所需版本作为-D参数传递
-Djavax.xml@L_801_3@ap.messageFactory = org.springframework.ws@L_801_3@ap.saaj.saajSoapmessageFactory
以上是大佬教程为你收集整理的春季-无法将weblogic.webservice.core.soap.MessageFactoryImpl强制转换为javax.xml.soap.MessageFactory 全部内容,希望文章能够帮你解决春季-无法将weblogic.webservice.core.soap.MessageFactoryImpl强制转换为javax.xml.soap.MessageFactory 所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。