WebLogic Start error java.lang.LinkageError:loader constraint violation in interface itable

Source: Internet
Author: User
Tags log4j
caused by:java.lang.LinkageError:loader constraint violation in interface itable Initialization:when Resolving Method "Org.apache.xerces.impl.xs.opti.DefaultElement.getSchemaTypeInfo () lorg/w3c/ Dom/typeinfo "The class loader (instance of Weblogic/utils/classloaders/changeawareclassloader) of the current class, or G/apache/xerces/impl/xs/opti/defaultelement, and the class loader (instance of <bootloader>) for interface org/w3c /dom/element have different Class objects for the ' type Org/w3c/dom/typeinfo used in the ' signature at org.apache.xerces.im Pl.xs.opti.SchemaDOM.reset (Unknown source) at Org.apache.xerces.impl.xs.opti.schemadom.<init> (Unknown source ) at Org.apache.xerces.impl.xs.opti.SchemaDOMParser.startDocument (Unknown Source) at Org.apache.xerces.impl.XMLDocumentScannerImpl.startEntity (Unknown Source) at Org.apache.xerces.impl.XMLVersionDetector.startDocumentParsing (Unknown Source) 

Cause: Jar pack Conflict, my program relies on xercesimpl-2.9.1.jar,weblogic also have the corresponding package, remove my own bag on the line.

In Weblogic.xml, the configuration prefer-web-inf-classes is true, which means that the jar package in the program is loaded preferentially. WebLogic will also load its own, so the conflict, the value to False, also line, do not remove the program in the Jar,weblogic can also get up, but log4j is also used WebLogic, the configuration of their own log4j configuration file is not used.

<container-descriptor>
<prefer-web-inf-classes>true</prefer-web-inf-classes>
</container-descriptor>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.