1 Reply Latest reply on Mar 18, 2005 2:41 PM by bmelloni

    class loading problems

    balteo

      Hello,
      I am trying for my web app to look for classe first in its classes directory instead of looking in the lib directory. Note that I am trying to do this through the jboss-web.xml so that it is enabled per application.

      I have this in my jboss-web.xml:

      <jboss-web>
       <class-loading java2ClassLoadingCompliance="false">
       <loader-repository>
       dot.com:loader=webTwo.war
       <loader-repository-config>java2ParentDelegation=false</loader-repository-config>
       </loader-repository>
       </class-loading>
      </jboss-web>
      


      It still looks into the lib directory first and gets the classes from there. Can anyone tell me how to enable the wanted behavior on a per app basis?

      Thanks in advance,

      Julien Martin.

        • 1. Re: class loading problems
          bmelloni

          Good luck... I've been looking for a similar answer... read from WEB-INF/lib before reading from jboss' lib directories. Even had the jBoss CTO in one of the forums... no luck. Selecting "where to load from first" might be an intrinsic problem with jBoss.