Calling JBoss 5 EJB's from JBoss EAP 7 results in a LinkageError.

Solution Verified - Updated -

Issue

  • A module using JBoss EAP 5 jars is installed in JBoss EAP 7 in a similar way it was done to implement a login module. The objective is to use classes of the module from within an app (webapp) deployed in JBoss EAP 7 to call EJB's deployed in JBoss EAP 5 server which fails with the beloe exception :
java.lang.LinkageError: loader constraint violation in interface itable initialization: when resolving method "com.sun.proxy.$Proxy20.remove(Ljavax/ejb/Handle;)V" the class loader (instance of org/jboss/modules/ModuleClassLoader) of the current class, com/sun/proxy/$Proxy20, and the class loader (instance of org/jboss/modules/ModuleClassLoader) for interface javax/ejb/EJBHome have different Class objects for the type javax/ejb/Handle used in the signature

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 7.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.