Cxf weblogic 报错: when resolving method "javax.xml.bind.JAXBElement

Cxf weblogic 报错: when resolving method "javax.xml.bind.JAXBElement

================================

©Copyright 蕃薯耀 2018年5月17日

https://www.cnblogs.com/fanshuyao/

一、问题描述:

weblogic 部署Cxf 启动时报错,如下:

loader constraint violation: when resolving method "javax.xml.bind.JAXBElement.
<init>(Ljavax/xml/namespace/QName;Ljava/lang/Class;
Ljava/lang/Class;Ljava/lang/Object;)V" the class loader (instance of org/jboss/classloader/spi/base/BaseClassLoader) of the current class, oma/xml/rest/callnotification/_1/ObjectFactory, and the class loader (instance of <bootloader>) for resolved class, javax/xml/bind/JAXBElement, have different Class objects for the type javax/xml/namespace/QName used in the signature。

  

二、解决方案

报错原因是Jar 包冲突 。

在WEB-INFlib目录或者Maven中,删除 jaxrpc.jar 文件。

(如果你觉得文章对你有帮助,欢迎捐赠,^_^,谢谢!) 

================================

©Copyright 蕃薯耀 2018年5月17日

https://www.cnblogs.com/fanshuyao/

原文地址:https://www.cnblogs.com/fanshuyao/p/9049387.html