How can I override JBoss's universal classloader, and use my own jars from my
war's WEB-INF/lib, instead of ones in server/xxx/lib?
I have hibernate jars inside my war. I know one option is to remove them from war, but
assume for now that I need to be able to select hibernate version freely and include it in
the war. I tried to change the classloading to use the files from war based on
http://wiki.jboss.org/wiki/Wiki.jsp?page=ClassLoadingConfiguration
so, I added this jboss-web.xml in WAR's WEB-INF:
<jboss-web>
<class-loading java2ClassLoadingCompliance="false">
<loader-repository>
com.example.loaderrepository:loader=somename-webapp.war
<loader-repository-config>java2ParentDelegation=false</loader-repository-config>
</loader-repository>
</class-loading>
</jboss-web>
but I did not notice any effect - JBoss still seems to load the hibernate jars that are
bundled in the server installation.
I do not know if the wiki page is relevant for 4.2.1GA, since it starts with prior to
version 3.2... There is some mention of 4.0 using Servlet classloader (instead of
universal classloader?), but I remember reading somewhere that this was once again changed
in 4.1? Confusing. What should I do with 4.2.1GA?
Simply, what do I need to configure so that I can use my own libraries from the war file
in 4.2.1GA?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4091640#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...