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?
Have you found a solution for your problem at the end? I have a quite similar problem: LinkageError javax.transaction.xa.XAResource on JBoss with Hibernate, Spring and JBPM and Bitronix Transaction Manager