11 Replies Latest reply on Oct 14, 2013 9:27 AM by Scott Marlow

    Hibernate issue upgrading from JBoss 4.2.2 to JBoss 7.2

    mikevan Newbie

      I'm upgrading an application from JBoss 4.2.2 (using Hibernate 3.2.6) to JBoss 7.2 (using the same version of Hibernate). 


      In my WEB-INF/lib directory, I have included the older Hibernate libraries, and have included a jboss-deployment-structure.xml document containing the following:

      <?xml version="1.0" encoding="UTF-8" ?>




                    <module name="org.hibernate"/>





      My application is deployed as an .ear file and I've placed the jboss-deployment-structure.xml file in the META-INF directory of the ear. The ear contains a single war. What appears to be happening is that there are still two versions of hibernate on the classpath used by the .war file. Any idea how i can fix this?