I added to file jboss-web.xml the following: <class-loading java2ClassLoadingCompliance="false"> <loader-repository> dot.com:loader=xwiki.war <loader-repository-config>java2ParentDelegation=false</loader-repository-config> </loader-repository> </class-loading> as was described on http://www.jboss.org/wiki/Wiki.jsp?page=ClassLoadingConfiguration
but it doesn't work... When I try to receive access to net.sf.hibernate.connection.ConnectionProviderFactory class then I receive class from server//lib/hibernate2.jar not from my WEB-INF/lib/hibernate2.jar