Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
351 views
in Technique[技术] by (71.8m points)

web services - Error deploying JAXWS webservice on Websphere server

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

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??

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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

Reference links:

http://www-01.ibm.com/support/knowledgecenter/SSAW57_8.0.0/com.ibm.websphere.nd.doc/info/ae/ae/xrun_jvm.html?cp=SSAW57_8.0.0%2F1-16-5-474&lang=en

http://www-01.ibm.com/support/docview.wss?uid=swg1PK96989


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...