0 Replies Latest reply on Nov 15, 2007 9:44 AM by Adrian Brock

    ClassLoader test - Unshared

    Adrian Brock Master

      I don't understand this test.

      The bean is called Unshared in classloader-unshared.jar
      but it isn't deployed in an isolated classloader so it is shared? :-)

      Also its testing for log4j 1.1.3 classes but these aren't in the deployment either?

      If you look at the plain classloader.jar, this is structured correctly to pass this test
      (and in fact includes the test).

      classloader.jar has scoped classloading (in jboss.xml) and includes log4j-1.1.3.jar

       <jar jarfile="${build.lib}/classloader.jar">
       <fileset dir="${build.classes}">
       <include name="org/jboss/ejb3/test/classloader/Session30*.class"/>
       <fileset dir="${resources}/test/classloader">
       <include name="META-INF/jboss.xml"/>
       <include name="*.jar"/>
       <include name="*.properties"/>

      classloader-unshared.jar has neither.
       <jar jarfile="${build.lib}/classloader-unshared.jar">
       <fileset dir="${build.classes}">
       <include name="org/jboss/ejb3/test/classloader/Unshared*.class"/>
       <include name="org/jboss/ejb3/test/classloader/Session30.class"/>

      but still expects the same test to pass? :-)