本文主要是介绍Linux+WebLogic11g:java.lang.LinkageError: loader constraint violation in interface itable initializa,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
在项目的WEB-INF目录下,有如下weblogic.xml文件
- <?xml version="1.0" encoding="UTF-8"?>
- <weblogic-web-app
- xmlns="http://www.bea.com/ns/weblogic/weblogic-web-app"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
- http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd">
- <container-descriptor>
- <prefer-web-inf-classes>true</prefer-web-inf-classes>
- </container-descriptor>
- </weblogic-web-app>
WebLogic下代码发版成功后,运行某个功能,出现以下错误:
- <2016-3-10 上午11时49分51秒 CST> <Error> <HTTP> <BEA-101017> <[ServletContext@16524584[app:CEACCSVR module:CEACCSVR path:/CEACCSVR spec-version:null]] Root cause of ServletException.
- java.lang.LinkageError: loader constraint violation in interface itable initialization: when resolving method "org.apache.axis.MessageContext.getMessage()Ljavax/xml/soap/SOAPMessage;" the class loader (instance of weblogic/utils/classloaders/ChangeAwareClassLoader) of the current class, org/apache/axis/MessageContext,and the class loader (instance of sun/misc/Launcher$AppClassLoader) for interface javax/xml/rpc/handler/soap/SOAPMessageContext have different Class objects for the type javax/xml/soap/SOAPMessage used in the signature
- at org.apache.axis.AxisFault.setFaultCodeAsString(AxisFault.java:422)
- at org.apache.axis.AxisFault.<init>(AxisFault.java:228)
- at com.eastrobot.wsserver.service.impl.AirportsMsgServiceSoapBindingStub.createCall(AirportsMsgServiceSoapBindingStub.java:138)
- at com.eastrobot.wsserver.service.impl.AirportsMsgServiceSoapBindingStub.search(AirportsMsgServiceSoapBindingStub.java:146)
- at com.cea.callcenter.action.baseinfo.SearchAirportsMsgI.execute(SearchAirportsMsgI.java:23)
- Truncated. see log file for complete stacktrace
包冲突,删除以下几个包,就可以了。
saaj-api-1.3.jar 使用axis所需的jar
saaj-impl-1.3.2.jar 使用axis所需的jar
saaj.jar 创建到端点的点到点连接的方法、创建并处理SOAP消息和附件的方法,以及接收和处理SOAP错误的方法.
这篇关于Linux+WebLogic11g:java.lang.LinkageError: loader constraint violation in interface itable initializa的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!