WebLogic下运行错误java.lang.LinkageError: loader constraint violation in interface itable initialization

环境:Linux+WebLogic10.3.0.0
在项目的WEB-INF目录下,有如下weblogic.xml文件

  
  
     
        true
    
  

WebLogic下代码发版成功后,运行某个功能,出现以下错误:
<2016-3-10 上午11时49分51秒 CST>    <[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.(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错误的方法.




你可能感兴趣的:(Java与WebLogic)