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.
(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 ) for resolved class, javax/xml/bind/JAXBElement, have different Class objects for the type javax/xml/namespace/QName used in the signature。

  

二、解决方案

报错原因是Jar 包冲突 。

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

 

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

©Copyright 蕃薯耀 2018年5月17日

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

你可能感兴趣的:(Cxf weblogic 报错: when resolving method "javax.xml.bind.JAXBElement)