在weblogic上部署遇到的问题总结

最近在weblogic上发布自己的项目,但是当调用程序服务时却报错了。于是查看了错误日志。

错误日志如下:

Root cause of ServletException. java.lang.LinkageError: loader constraint violation: when resolving interface method "javax.xml.bind.Unmarshaller.unmarshal(Ljavax/xml/stream/XMLStreamReader;Ljava/lang/Class;)Ljavax/xml/bind/JAXBElementhe class loader (instance of weblogic/utils/classloaders/ChangeAwareClassLoader) of the current class, org/apache/cxf/jaxb/JAXBEncoderDecoder, and the class loader (instance of <bootloader>) for the method's defining class, javax/xml/bind/Unmarshaller, have different Class objects for the type javax/xml/stream/XMLStreamReader used in the signature at  ...(balaba一堆)

主要是标黄那段冲突了,注意“have different class objects for the type”这句话, 基本上就是jar冲突了,而且添加标签也不管用。

我在项目中搜索到相关的jar后 删除后就好了。有遇到相同问题的小码农快来试试吧~



  

猜你喜欢

转载自www.cnblogs.com/BetterX/p/9085322.html