In my WAR application I would like to use a different version of Hibernate (hibernate-core 3.6.8-Final and other compatible Hibernate packages) than the one provided by my server: JBoss SOA 5.0.2, which ships with Hibernate Core 3.3.2. I have followed the advice/instructions in every web page I could find. Here are all my current configurations:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE jboss-web PUBLIC "-//JBoss//DTD Web Application 5.0//EN"
Added entry in server/default/deployers/metadata-deployer-jboss-beans.xml:
Tried many different configurations of entry in server/default/deployers/jbossweb.deployer/META-INF/war-deployers-jboss-beans.xml:
<bean name="WarClassLoaderDeployer" class="org.jboss.web.tomcat.service.deployers.WarClassLoaderDeployer">
Tried adding packages, child packages, commenting out the whole thing, etc.
Yet still from all I can tell it seems that JBoss is using the version of Hibernate in common/lib rather than what I have packaged with my WAR. Any final advice? And no...the organization is not willing to upgrade to a newer JBoss version at this time nor consider an app server that doesn't have these classloader issues.