Posted this on stackoverflow but not much activity, re-posting here for help:
We have an application that is developed in Hibernate 3.6 and we need to deploy it onto a JBoss 4.0.5 app server for our client.
Due to the JBoss classloading flow, the hibernate library on our application is not loaded, instead the hibernate that is shipped together with JBoss is used, which causes a whole lot of issue.
A check on the tomcat
jboss-service.xml reveal that the setting was modified:
<attribute name="Java2ClassLoadingCompliance">true</attribute> <!--modified--> <attribute name="UseJBossWebLoader">false</attribute> <!--remained the same-->
Java2ClassLoadingCompliance set to true, is it possible for us to specify the classloading isolation in our application? We set the following settings in a
jboss-web.xml in our application's
WEB-INF directory referring to here (the application is deployed as a exploded-war):
<jboss-web> <class-loading java2ClassLoadingCompliance="false"> <loader-repository> org.hibernate:archive=OurApplication.war <loader-repository-config>java2ParentDelegation=false</loader-repository-config> </loader-repository> </class-loading> </jboss-web>
However the configuration have no effects. A check on the jmxconsole reveal that the setting is being read, however the class loading is still not loaded as per configured.
Any input is greatly appreciated.