-->
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: hbm2ddl with hibernatetool fails
PostPosted: Tue Mar 21, 2006 11:59 am 
Newbie

Joined: Sat Jan 28, 2006 1:10 pm
Posts: 6
Hi All,
I am trying to convert my application from xdoclet to hibernate annotations. I have the following task defined
--------------------------------------------------------------------------------
<target name="build-schema" depends="package-dao"
description="create the schema and populate it with test data">
<taskdef
name="hibernatetool"
classname="org.hibernate.tool.ant.HibernateToolTask">
<classpath>
<path refid="hibernate.classpath"/>
</classpath>
</taskdef>
<hibernatetool destdir="${build.dir}">
<classpath>
<!-- puting dao jar file here causes ValidatorMessages.properties
not be picked up....So put in the hibernate.classpath-->
</classpath>
<annotationconfiguration configurationfile="${src}/dao/com/tacoma/dao/hibernate/hibernate.cfg.xml"/>
<hbm2ddl drop="false" create="true" export="true"
outputfilename="${webapp.name}-create.sql" delimiter=";" format="true"/>
<hbm2ddl drop="true" create="true" export="false"
outputfilename="${webapp.name}-drop.sql" delimiter=";" format="true"/>
</hibernatetool>
</target>

-----------------------------------------------------------------------------

The schema generation works fine but the export to the database fails.

-------------------------------------------------------------------------
[hibernatetool] SEVERE: schema export unsuccessful
[hibernatetool] java.sql.SQLException: No suitable driver
[hibernatetool] at java.sql.DriverManager.getConnection(DriverManager.java:545)
[hibernatetool] at java.sql.DriverManager.getConnection(DriverManager.java:140)
[hibernatetool] at
-----------------------------------------------------------------------
and yes the jar file containing the database driver is right there in the hibernate classpath. Anyone else faced this problem?

I am using hibernate tools 3.1 beta 4.

Thanks in advance


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 22, 2006 1:29 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
is the url correct ?

_________________
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.