4 Replies Latest reply on Nov 12, 2004 11:19 AM by Scott Stark

    Classloading behavior change in current Branch_4_0

    Jason Greene Master

      I currently have a custom JAAS module inside a sar that is within an ear file. I noticed a problem with this setup in 4.0.0, when attempting to use the same security module for web authentication in an external war. If I for example, go to the jmx-console and invoke isValid() on the JassSecurityManager, a classloading exception occurs complaining about not being able to find the login module class that is in the nested sar.

      However, in the current Branch_4_0, the classloader successfully finds and loads the class in the sar that is nested in an ear file.

      What should the correct behavior be? Should the JaasSecurityManager called from an external war be able to find classes in a sar that is nested within an ear?