This content has been marked as final.
Show 3 replies
-
1. Re: java.lang.LinkageError: loader constraints violated when
master_yoda Sep 12, 2006 11:14 AM (in response to master_yoda)"master_yoda" wrote:
We have 2 wars A and B. Both contain same commmon.jar in thier lib dir.
When we run the application separately it works fine. But first invoking the first app, and then invoking the second app give us the following error.
java.lang.LinkageError: loader constraints violated when linking
We don't want to put common.jar in shared library.
Someone says me that in weblogic it works fine.How can we do the same thing in JBoss also.
It's dealying our release, early help would apprecited.
bounce -
2. Re: java.lang.LinkageError: loader constraints violated when
master_yoda Sep 12, 2006 1:29 PM (in response to master_yoda)bounce
-
3. Re: java.lang.LinkageError: loader constraints violated when
master_yoda Sep 15, 2006 1:49 PM (in response to master_yoda)Atlast I am able to resolve the issue. And on weblogic the behaviour is same don't be confused.
The cause of error I found is that:
I have one class in shared lib(i.e. <JBOSS_HOME>/server/default/lib)
which is trying to use a class from the deployed war file.An I have two war file deployed which contan the same classes.
So if you are putting part of your application in the shared library then please make sure that it should not *import* any of the classes which are there in two war files.
Classes in your war can import the classes in the shared lib.