java.lang.LinkageError: loader constraint violation in interface itable initialization

birt集成服务发布到weblogic下发生jar包冲突

日志:

) for interface org/w3c/dom/Document have different Class objects for the type m/DOMConfiguration; used in the signature.
java.lang.LinkageError: loader constraint violation in interface itable initialization: when resolving method "org.apache.xerces.dom.CoreDocumentImpl.getDomConfig()Lorg/w3c/dom/DOMConfiguration;" the class loader (instance of weblogic/utils/classloaders/ChangeAwareClassLoader) of the current class, org/apache/xerces/dom/CoreDocumentImpl, and the class loader (instance of ) for interface org/w3c/dom/Document have different Class objects for the type m/DOMConfiguration; used in the signature
        at org.apache.xerces.parsers.AbstractDOMParser.startDocument(Unknown Source)
        at org.apache.xerces.impl.dtd.XMLDTDValidator.startDocument(Unknown Source)
        at org.apache.xerces.impl.XMLDocumentScannerImpl.startEntity(Unknown Source)
        at org.apache.xerces.impl.XMLVersionDetector.startDocumentParsing(Unknown Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        Truncated. see log file for complete stacktrace


原因分析:

birt服务中依赖org.apache.xerces_2.9.0.v201101211617.jar会产生jar包冲突

解决方法:

项目中的这个jar包删除,并将这个jar包放在服务器中jdk的扩展类加载路径,eg:   ../jdk1.7.0_45/jre/lib/ext



你可能感兴趣的:(java.lang.LinkageError: loader constraint violation in interface itable initialization)