-
1. Re: Error during Class Loading in jboss 4.2.1
wdfink Jun 18, 2011 4:32 AM (in response to ckanani)As I do not know the details of your deployment (e.g. class loader isolation and where the classes packed)
I'll give you a few information in general.
By default JBoss will load all jar/ear files in lib or deploy with one classloader except WAR files, this is a bit different.
If you look into your error message you find that the classes are loaded from WebAppClassLoader and UnifiedClassLoader3.
If you have packed the same class file into a WebApp and a EJBApp it will be loaded by a different ClassLoader.
If you using it and have calls between the different Apps containing such classes the JVM is not able to handle it.
See
http://community.jboss.org/wiki/JBossClassLoadingUseCases
http://community.jboss.org/wiki/ClassLoadingOverview
http://community.jboss.org/wiki/ClassLoadingConfiguration
The solution can be
- use call-by-value (performance drawback)
- move such classes as library into the servers lib folder and remove from EAR
-
2. Re: Error during Class Loading in jboss 4.2.1
wdfink Jun 18, 2011 4:36 AM (in response to ckanani)Call-by-value vs. call-by-reference is discussed here => http://community.jboss.org/thread/147418