java.lang.LinkageError: loader constraint violation: loader (instance of org/jboss/path/to/<JBOSS>ClassLoader) previously initiated loading for a different type with name "com/example/MyClass"

Solution Unverified - Updated -

Issue

  • When we attempt to make a remote call from one JBoss node to another JBoss node we get the following classloader error:
ERROR (full details in attached file):
2016-03-23 13:44:42,448 - ERROR (WorkManager(2)-40) - loader constraint violation: loader (instance of org/jboss/remoting/loading/RemotingClassLoader) previously initiated loading for a different type with name
 "com/example/MyClass"
java.lang.LinkageError: loader constraint violation: loader (instance of org/jboss/remoting/loading/RemotingClassLoader) previously initiated loading for a different type with name "com/example/MyClass"

Environment

  • Red Hat JBoss Enterprise Application Platform

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content