LinkageError - the class loader of the current class and its superclass loader have different Class objects used in the signature in JBoss EAP
Issue
- Getting LinageError in application:
Caused by: java.lang.LinkageError: loader constraint violation: when resolving overridden method "org.codehaus.jettison.AbstractXMLInputFactory.createXMLStreamReader(Ljavax/xml/transform/Source;)Ljavax/xml/stream/XMLStreamReader;" the class loader (instance of org/jboss/classloader/spi/base/BaseClassLoader) of the current class, org/codehaus/jettison/AbstractXMLInputFactory, and its superclass loader (instance of <bootloader>), have different Class objects for the type javax/xml/transform/Source used in the signature
Environment
- JBoss Enterprise Application Platform (EAP)
- 5.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
