问题描述
我正在Websphere上部署JAX-WS Web服务,并且当我通过soapUI测试该服务时,它抛出以下错误.请告知可能是什么问题:
I am deploying JAX-WS webservice on websphere and when I am testing the same through soapUI, it is throwing below error. Please advice what can be the issue:
ClassCastException: com.ibm.xml.xlxp2.jaxb.JAXBContextImpl incompatible with com.sun.xml.bind.api.JAXBRIContext
注意:我已经将Websphere中的classloader设置从父级更改为父级更改.
Note: I have chanaged the classloader setting in websphere from parent first to parent last as well.
以下是我的战争档案中的罐子.
following are the jars in my war file.
jaxb-api-2.2.6.jar
jaxb-impl-2.2.5.jar
jaxb-xjc-2.1.9.jar
jaxws-api-2.1.jar
jaxws-maven-plugin-1.11.jar
jaxws-rt-2.1.5.jar
jaxws-tools-2.1.5.jar
请告知可能是什么问题?这是一个普遍的问题吗?
Please advice what can be the issue? is it a common problem??
推荐答案
IBM WebSphere推出了自己的JAX-WS实现.如果您打算使用第三方JAX-WS提供程序,请尝试通过在清单文件中添加属性DisableIBMJAXWSEngine:true或通过添加以下JVM属性来禁用默认的提供程序:
IBM WebSphere comes out with its own JAX-WS implementation. If you intend to use third-party JAX-WS provider, try to disable the default one, either by adding property DisableIBMJAXWSEngine: true into Manifest file, or by adding the following JVM property:
com.ibm.websphere.webservices.DisableIBMJAXWSEngine=true
参考链接:
http://www-01.ibm.com/support/docview.wss?uid = swg1PK96989
这篇关于在Websphere服务器上部署JAXWS Web服务时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!