Details
-
Bug
-
Resolution: Done
-
Minor
-
JBossAS-4.0.3 Final
-
None
Description
The option Java2ClassLoadingCompliance in tomcat jboss-services.xml no longer functioning, jboss-4.0.1 do not have this problem.
Upon setting the option to ttrue, ClassCastException still exists, while using PortableRemoteObject.narrow(),
when 2 copies of the same classes are used,
one in xxx.ear!yyy.jar and the otther in xxx.ear!zzz.war/WEB-INF/lib/yyy.jar.
I have verified the source code and find that the option Java2ClassLoadingCompliance settings cannot
populate to the delegate attribute of the web classloader.
I have fixed this bug and post it in diff -u format. Besides fixing this bug, there are 2 workarounds for this issue:
1. Remove jars with duplicated classes in WEB-INF/lib.
2. Use the FilteredPackages option to filter duplicated classes.