Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-2347

Tomcat integration Java2ClassLoadingCompliance no longer working

    XMLWordPrintable

Details

    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.

      Attachments

        Activity

          People

            starksm64 Scott Stark (Inactive)
            richard.li_jira Richard C. L. Li (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: