在Websphere服务器上部署JAXWS Web服务时出错

编程入门 行业动态 更新时间:2024-10-28 09:13:15
本文介绍了在Websphere服务器上部署JAXWS Web服务时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我正在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

参考链接:

www-01.ibm/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 = zh_CN

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

更多推荐

在Websphere服务器上部署JAXWS Web服务时出错

本文发布于:2023-08-01 10:23:05,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1267560.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:器上   Websphere   Web   JAXWS

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!