4 Replies Latest reply on Dec 17, 2010 1:51 AM by adamw

    Envers + JBoss 4.2.3.GA

    vargar2

      Hi!

       

      I would like to ask, if anyone could explain to me, how to get envers running with this JBoss AS. I tried upgrading hibernate from 3.2.4.sp1 with both hibernate 3.3.x and 3.5.5 but none worked - some additional dependencies needed etc. So I would need a guide which jar files should I change specifically.

       

      Thank you very much, R.Varga

        • 1. Re: Envers + JBoss 4.2.3.GA
          adamw

          Did you try bundling the Hibernate and Envers jars with your application, plus adding classloader isolation?

           

          Adam

          1 of 1 people found this helpful
          • 2. Re: Envers + JBoss 4.2.3.GA
            vargar2

            I did not yet try that - so when I do Ill get back to you:)

            Thanks

            • 3. Re: Envers + JBoss 4.2.3.GA
              vargar2

              So I tried what you suggested.

              Classloader isolation (jboss-app.xml) :

              <jboss-app>
                 <loader-repository>
                    seam.jboss.org:loader=BohemiaHotels
                 </loader-repository>
              </jboss-app>

              <jboss-app>

                 <loader-repository>

                    seam.jboss.org:loader=BohemiaHotels

                 </loader-repository>

              </jboss-app>

               

              I am packaging hibernate3.jar (version 3.6 Final with my application) and when deploying I get the exception below. I also added all the libs that were in hibernate-distribution-3.6.0.Final.zip to <jboss>/server/default/lib.

               

              Reason: java.lang.RuntimeException: java.lang.NoSuchMethodError: javax.persistence.spi.PersistenceUnitInfo.getValidationMode()Ljavax/persistence/ValidationMode;

              • 4. Re: Envers + JBoss 4.2.3.GA
                adamw

                Leave the jboss distribution intact and put hibernate together with dependencies inside your ear/war.

                 

                Adam