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>
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.