-
1. LinkageError (Migrating to 6.0.0 Final)
wdfink Apr 30, 2011 5:19 AM (in response to thescientist)If you look to the first message the problem is that the classes are loaded by two different class loaders.
This might happen if a class reference is given across different archives which are loaded by different class loaders.
In your case I suppose that the EAR contain one and the JAR is located in the server/.../lib folder.
In this case the lib/jar is loaded by the global classloader and the ear in a separate one to isolate the application.
-
2. LinkageError (Migrating to 6.0.0 Final)
thescientist Apr 30, 2011 6:59 AM (in response to wdfink)So what's the smartest way to solve the problem.
Like i said it's a big project developed over more than ten years.
Is it possible to force the use of a class loader, or find the "bad" references? -
3. LinkageError (Migrating to 6.0.0 Final)
wdfink Apr 30, 2011 8:06 AM (in response to thescientist)1 of 1 people found this helpfulI suppose that you have communication between different application EAR/WAR's in the same JBoss.
One solution might that you use 'call by value' instead of 'call by reference' (which is also the JEE standard).
But this will be slower because of serialisation ...
Other solution is to load all classes in the same classloader scope.
See wiki to have a clear picture of this
http://community.jboss.org/wiki/JBossClassLoadingUseCases
I know this is not an easy issue but it is indispensable to have knowlegde about the behaviour.
-
4. LinkageError (Migrating to 6.0.0 Final)
thescientist May 4, 2011 1:21 PM (in response to wdfink)thank you for the help,
i finally found the error in the our own old cache manager implementation, which just needed to be removed.