Hello there,
I am trying to get my app running on JBOSS 5.0.1_GA. My app internally uses Hibernate 3.5.6 suite. And I know JBoss 5.0 uses somewhat older version. As a result I get NoClassDefinitionFound Errors during JBOSS Boot time.
Is there a way I can tell JBOSS to use my Version of Hibernate inside my app? In otherwords is it possible to override the version of Hibernate used by JBOSS 5 somehow?
I tried tweeking both the Web Container and EAR container level classloaders to use the JAR's that are packaged with WAR or EAR but to no avail.
Here is some snippets from both Jboss-web.xml and Jboss-app.xml respectively for JBOSS 5:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE jboss-web PUBLIC "-//JBoss//DTD Web Application 5.0//EN"
"
http://www.jboss.org/j2ee/dtd/jboss-web_5_0.dtd">
<jboss-web>
<context-root>/</context-root>
<class-loading>
<loader-repository>
com.nickjr.boost:archive=warname.war
<loader-repository-config>java2ParentDelegation=false</loader-repository-config>
</loader-repository>
</class-loading>
</jboss-web>
<?xml version="1.0"?>
<!DOCTYPE jboss-app PUBLIC "-//JBoss//DTD J2EE Application 1.4//EN"
"
http://www.jboss.org/j2ee/dtd/jboss-app_5_0.dtd">
<jboss-app>
<!--<loader-repository-config>-->
<!--java2ParentDelegation=false-->
<!--</loader-repository-config>-->
<loader-repository>
com.nickjr.boost:loader=somename.ear
<loader-repository-config>
java2ParentDelegation=false
</loader-repository-config>
</loader-repository>
</jboss-app>