-
Bug
-
Resolution: Done
-
Major
-
JBossAS-4.0.3 SP1
-
None
-
Low
-
Workaround Exists
-
I deploy the same jar file (kevin.jar) in a war and its containing ear. In the war, I have a test JSP that loads a class from kevin.jar and displays its class loader.
The class is loaded using the war class loader. So, I added the following to jboss-web.xml under the war's WEB-INF
<class-loading java2ClassLoadingCompliance='true'>
Didn't work. So I added this:
<class-loading java2ClassLoadingCompliance='true'>
<loader-repository>
dot.com:loader=unique-archive-name
<loader-repository-config>
java2ParentDelegaton=true
</loader-repository-config>
</loader-repository>
</class-loading>
Didn't work either. Class continues to be loaded from war's class loader.
Deleted JAR from WEB-INF/lib and class is now loaded from ear.