-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: hbm build exception for Hibernate 3
PostPosted: Sun Apr 09, 2006 6:19 pm 
Newbie

Joined: Wed Apr 05, 2006 9:08 am
Posts: 6
I try to use an build.xml file of Hibernate 2 for Hibernate 3. The hbm build
target looks like this.

Code:
   <target name="build_hbm" description="builds the Java sources" >
      <taskdef name="hbm2java" classname="org.hibernate.tool.ant.Hbm2JavaGeneratorTask" >
         <classpath refid="project.class.path" />
      </taskdef>
      
      <mkdir dir="${build_dir}" />
      <hbm2java config="hbm2java_config.xml" output="${base_dir}" >
         <fileset dir="." includes="*.hbm.xml" />
      </hbm2java>
   </target>


Unfortunately I get this exception.
Code:

BUILD FAILED
C:\Dokumente und Einstellungen\jboss\workspace\webforum\build.xml:46: Could not create type hbm2java due to java.lang.NoSuchMethodException: org.hibernate.tool.ant.Hbm2JavaGeneratorTask.<init>(org.apache.tools.ant.Project)



Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 10, 2006 4:14 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
tools.hibernate.org

_________________
Max
Don't forget to rate


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.