This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Object Relational Mapping and the fly likes Hibernatetool error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Hibernatetool error" Watch "Hibernatetool error" New topic
Author

Hibernatetool error

Gerardo Ramirez
Greenhorn

Joined: Jul 25, 2006
Posts: 9
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

Joined: Oct 28, 2002
Posts: 3
Hello
Do you have an answer for this ? I have the same problems.
Thank you
Koen
Edvins Reisons
Ranch Hand

Joined: Dec 11, 2006
Posts: 364
Do you have hibernate-tools.jar?
koen boutsen
Greenhorn

Joined: Oct 28, 2002
Posts: 3
Hello,
No, where can I find that ?

Thanks in advance
Koen
Edvins Reisons
Ranch Hand

Joined: Dec 11, 2006
Posts: 364
Download Hibernate Tools
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Hibernatetool error
 
Similar Threads
jdk5 and ejb3 options unavailable in HibernateTools-3.2.4.GA
Facing problem in Schema export
hibernatetool error
Hibernate tool problem.
hibernate with HSQL db - Acquisition Attempt Failed Error