Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hibernatetool error

 
Gerardo Ramirez
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey,

I'm trying to complete a simple HelloWorld app using Hibernate and came across the following issue:

taskdef class org.hibernate.tool.ant.HibernateToolTask cannot be found

becuase of the following addition to my build file:

<taskdef name="hibernatetool"
classname="org.hibernate.tool.ant.HibernateToolTask"
classpathref="project.classpath"/>

<target name="schemaexport" depends="compile, copymetafiles"
description="Exports a generated schema to DB and file">
<hibernatetool destdir="${basedir}">
<classpath path="${build.dir}"/>
<configuration
configurationfile="${build.dir}/hibernate.cfg.xml"/>
<hbm2ddl
drop="true"
create="true"
export="true"
outputfilename="helloworld-ddl.sql"
delimiter=";"
format="true"/>
</hibernatetool>

</target>

I've been trying to figure out what the issue is, and cannot seem to find the answer. I've loaded all of the hibernate libraries, and required third party libraries.

Thanks,

Gerardo Ramirez
 
koen boutsen
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello
Do you have an answer for this ? I have the same problems.
Thank you
Koen
 
Edvins Reisons
Ranch Hand
Posts: 364
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you have hibernate-tools.jar?
 
koen boutsen
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
No, where can I find that ?

Thanks in advance
Koen
 
Edvins Reisons
Ranch Hand
Posts: 364
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Download Hibernate Tools
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic