zl程序教程

您现在的位置是:首页 >  前端

当前栏目

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

XML 报错 quot when method bind weblogic javax
2023-09-11 14:18:15 时间

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-INF\lib目录或者Maven中,删除 jaxrpc.jar 文件。

 

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

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

©Copyright 蕃薯耀 2018年5月17日

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