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, tools, and much more.