This content has been marked as final.
Show 2 replies
-
1. Re: nested exception is java.lang.LinkageError
andrewhole Jun 1, 2010 9:35 AM (in response to andrewhole)I activated the logging for classloader and I'm getting just the following output:
[52126,UnifiedLoaderRepository3,main] UnifiedLoaderRepository removed(false) null
Why?
I tried to solve the problem using the following aproach:
<jboss-web>
<class-loading java2ClassLoadingCompliance="false">
<loader-repository>
com.example:archive=unique-archive-name
<loader-repository-config>java2ParentDelegation=false</loader-repository-config>
</loader-repository>
</class-loading>
but the problem still ocurring.
Any idea?
thanks a lot -
2. Re: nested exception is java.lang.LinkageError
peterj Jun 1, 2010 2:59 PM (in response to andrewhole)>>How can I know which are the jars in conflict?
Most likely you are including a JAR in your app that has the duplicate class (though there are lots of other possibilities). The best way to find the JARs that loaded javax/transaction/xa/XAResource is to add the -verbose:class option to JAVA_OPTS in the run script. That option causes the JVM to report the JAR file for every class loaded.