| Hello folks
 I am beginning to use hibernate. I bought the book "Java Persistence with Hibernate" and am going through the examples in chapter 2.
 
 Now I am stuck trying to reverse-engeneer a table (MESSAGES) using an ant script. The important part of the ant script is this:
 
 <taskdef name="hibernatetool" classname="org.hibernate.tool.ant.HibernateToolTask" classpathref="project.classpath" />
 
 <target name="reveng.hbmxml" description="Produces XML mapping files in src directory">
 <hibernatetool destdir="${basedir}/src">
 <jdbcconfiguration propertyfile="${basedir}/helloworld.db.properties" revengfile="${basedir}/helloworld.reveng.xml" />
 <hbm2hbmxml />
 <hbm2cfgxml />
 </hibernatetool>
 </target>
 
 When I run this, I get this exception:
 java.lang.NoSuchMethodError: org.hibernate.mapping.SimpleValue.<init>(Lorg/hibernate/mapping/Table;)V
 
 Unfortunately I can not supply to you the call stack of this exception because it is not displayed.
 
 I browsed the internet and found out that this error might have to do with some incompatible libraries - I just have no clue, which libraries are incompatible.
 
 I'm using hibernate 3.6.6 and these libraries:
 
 antlr-2.7.6.jar
 c3p0-0.9.1.jar
 commons-collections-3.1.jar
 dom4j-1.6.1.jar
 hibernate-jpa-2.0-api-1.0.1.Final.jar
 hibernate3.jar
 javassist-3.12.0.GA.jar
 jta-1.1.jar
 log4j-1.2.15.jar
 mysql-connector-java-5.1.12-bin.jar
 slf4j-api-1.6.1.jar
 slf4j-log4j12-1.6.1.jar
 
 asm-3.3.1.jar
 cglib-2.2.jar
 commons-logging.jar
 freemarker.jar
 hibernate-tools.jar (the one downloaded by eclipse as plugin)
 jdity-r938.jar
 
 Can anybody help?
 
 Many thanx
 :-Denis
 
 
 |