Hi All,
I am using Hibernate code 3.2.5GA and Annotations 3.3 with Jboss 4.0.3, which comes pre-packaged with Hibernate 3.1 jar.
I am facing classloading problem, as it takes 3.1 jar rather than 3.3 which is bundled in my .war file.
what i want that my application should use 3.3 jar packaged in my war file rather than from 3.1 jar after reading these article...
http://wiki.jboss.org/wiki/Wiki.jsp?page=ClassLoadingConfiguration http://java2.5341.com/msg/68204.html I did following changes,
jboss-web.xml
--------------
<jboss-web>
<context-root>ABC</context-root>
<class-loading java2ClassLoadingCompliance="false">
<loader-repository>
aaaa.com:loader=ABC.war
<loader-repository-config>java2ParentDelegation=false</loader-repository-config>
</loader-repository>
</class-loading>
</jboss-web>
jboss-app.xml
--------------
<jboss-app>
<class-loading>
<loader-repository>aaaa.com:loader=ABC.ear</loader-repository>
</class-loading>
</jboss-app>
I am using following structure of my ear file
/
ABC.war
META-INF/
application.xml
jboss-app.xml
Also I don't have access to jboss-service.xml, as it is not for a particluar jboss instance but for firm wide usage, so i cannot change anything in this file. Can anybody tell me what is wrong in it or any other way to work
Prashant
[ January 30, 2008: Message edited by: Prashant Vasudeo ]
[ January 30, 2008: Message edited by: Prashant Vasudeo ]