6 Replies Latest reply on Aug 18, 2008 11:26 PM by zhengxi qu

    the order of loading class (urgency! urgency! urgency! )

    zhengxi qu Newbie

      I have two ears and two wars. i want to deploy then into one server and share the jars amongst the ears and wars.
      so i and this part to the jboss-app.xml and jboss-web.xml.
      <loader-repository>
      test.classloader:loader=test1.ear
      <loader-repository-config>java2ParentDelegation=false</loader-repository-config>
      </loader-repository>

      now i can share the jars amongst the ears and wars.
      my question is about the jar overwriting.
      if there are A.jar(includes a.class) in all war's WEB-INF/lib, and a.class in different A.jar are different version.
      when I call a.class in jsp file, which one will be used?

      who can tell me its rule?

      thank you very much.