I am using Liquibase to generate a changelog based upon modifications to the Hibernate mapping files.
<diffDatabaseToChangeLog
driver=“${database.driver}”
url=“${database}”
referenceUrl=“hibernate:hibernate.cfg.xml”
username=“${sql.user}”
password=“${sql.pass}”
referenceUsername=“${sql.user}”
referencePassword=“${sql.pass}”
outputFile=“build\db-changelog.xml”
classpathref=“liquibase-classpath”>
but I get the following error:
java.lang.IncompatibleClassChangeError: Implementing class
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
at org.apache.tools.ant.AntClassLoader.defineClassFromData(AntClassLoader.java:1124)
at org.apache.tools.ant.AntClassLoader.getClassFromStream(AntClassLoader.java:1295)
at org.apache.tools.ant.AntClassLoader.findClassInComponents(AntClassLoader.java:1351)
at org.apache.tools.ant.AntClassLoader.findClass(AntClassLoader.java:1311)
at org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader.java:1064)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at liquibase.ext.hibernate.database.HibernateDatabase.createConfiguration(HibernateDatabase.java:360)
at liquibase.ext.hibernate.snapshot.HibernateDatabaseSnapshotGenerator.createSnapshot(HibernateDatabaseSnapshotGenerator.java:70)
at liquibase.snapshot.DatabaseSnapshotGeneratorFactory.createSnapshot(DatabaseSnapshotGeneratorFactory.java:69)
at liquibase.diff.Diff.compare(Diff.java:63)
Any suggestions?