1 Reply Latest reply on Sep 19, 2013 10:41 AM by mikemike

    need help to solve LinkageError during load of:javax.transaction.xa.XAResource

    Momena Ahmed Newbie

      I am using JBoss 6.1.0.Final. During deployment of my war file, I get the following error:

      11:13:46,224 WARN  [ClassLoaderManager] Unexpected error during load of:javax.transaction.xa.XAResource: java.lang.LinkageError: loader constraint violation: loader (instance of <bootloader>) previously initiated loading for a different type with name "javax/transaction/xa/XAResource"


      My war file has activemq-all-5.2.0 jar file packaged with it. This jar has javax.transaction.xa.XAResource class and 2 other classes from javax.transaction.xa package. JBoss also has these classes in jboss-transaction-api_11_spec.jar file in client and common/lib directory. I think the error I am getting is due to the duplication of these classes. How do I solve this problem?