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.
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.