LinkageError: loader constraint violation: loader (instance of org/jboss/modules/ModuleClassLoader) previously initiated loading for a different type with name "org/slf4j/Logger" in JBoss EAP 7
Issue
- Our application is packaging its own slfj4 and is failing to deploy with this classloading LinkageError:
Caused by: java.lang.LinkageError: loader constraint violation: loader (instance of org/jboss/modules/ModuleClassLoader) previously initiated loading for a different type with name "org/slf4j/Logger"
at net.sf.ehcache.config.ConfigurationFactory.parseConfiguration(ConfigurationFactory.java:11)
...
Environment
Red Hat JBoss Enterprise Application Platform (EAP) 7
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.