I'm using Hibernate 3.5.0, JBoss AS 6 and Liquibase 1.9.5.
I wanted to activate EhCache Hibernate second-level caching as follows:
The first thing I do, is adding a new dependency to the pom.xml:
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-ehcache</artifactId>
<version>3.5.0-Final</version>
</dependency>
Now, when I redeploy my app, following Exception is thrown:
Caused by: java.lang.VerifyError: (class: liquibase/database/HibernateDatabase, method: <init> signature: (Ljava/lang/String;)V) Bad type in putfield/putstatic
at java.lang.Class.getDeclaredMethods0(Native Method) [:1.6.0_18]
at java.lang.Class.privateGetDeclaredMethods(Class.java:2427) [:1.6.0_18]
at java.lang.Class.getDeclaredMethods(Class.java:1791) [:1.6.0_18]
at org.jboss.deployment.AnnotatedClassFilter.hasAnnotations(AnnotatedClassFilter.java:186) [:6.0.0.20100429-M3]
at org.jboss.deployment.AnnotatedClassFilter.accepts(AnnotatedClassFilter.java:114) [:6.0.0.20100429-M3]
at org.jboss.deployment.AnnotatedClassFilter.visit(AnnotatedClassFilter.java:99) [:6.0.0.20100429-M3]
at org.jboss.vfs.VirtualFile.visit(VirtualFile.java:407) [jboss-vfs.jar:3.0.0.CR5]
at org.jboss.vfs.VirtualFile.visit(VirtualFile.java:409) [jboss-vfs.jar:3.0.0.CR5]
...
Note that I didn't activate the caching in persistence.xml yet (!)
Does this ring a bell to somebody? Any clues are more than welcome.
Thank you!