-
1. Re: Envers + JBoss 4.2.3.GA
adamw Dec 16, 2010 5:12 AM (in response to vargar2)1 of 1 people found this helpfulDid you try bundling the Hibernate and Envers jars with your application, plus adding classloader isolation?
Adam
-
2. Re: Envers + JBoss 4.2.3.GA
vargar2 Dec 16, 2010 5:42 AM (in response to adamw)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 Dec 16, 2010 1:42 PM (in response to 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 Dec 17, 2010 1:51 AM (in response to vargar2)Leave the jboss distribution intact and put hibernate together with dependencies inside your ear/war.
Adam