I use hibernate tools in a ant task to export database tables. My code works fine with hibernate3.1 rc2. When use the rc3 jar file replaces the rc2 jar file, error comes out.
Hibernate version: 
Hibernate 3.1 rc3 + Hibernate-tool 3.1 beta1
Ant task
Code:
   <target name="hib.gen">
      <hibernatetool destdir="${etc.dir}">         
         <annotationconfiguration configurationfile="${etc.dir}/hibernate.cfg.xml"/>
         <hbm2ddl drop="true"/>
      </hibernatetool>
   </target>
Full stack trace of any exception that occurs:Code:
java.lang.NoSuchMethodError: org.hibernate.cfg.Mappings.<init>(Ljava/util/Map;Ljava/util/Map;Ljava/util/Map;Ljava/util/Map;Ljava/util/Map;Ljava/util/Map;Ljava/util/Map;Ljava/util/List;Ljava/util/List;Lorg/hibernate/cfg/NamingStrategy;Ljava/util/Map;Ljava/util/Map;Ljava/util/Map;Ljava/util/List;)V