-->
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.  [ 3 posts ] 
Author Message
 Post subject: SchemaExportTask - NoClassDefFoundError
PostPosted: Mon Dec 27, 2004 8:18 pm 
Newbie

Joined: Mon Dec 27, 2004 8:02 pm
Posts: 2
Hello,

I have got problem with SchemaExportTask.
When I try generate ddl file, it throws:
all:
java.lang.NoClassDefFoundError
BUILD FAILED (total time: 0 seconds)

and nothing else :/

My ant script:
Code:
<target name="all">
   <taskdef name="hbm2ddl" classname="net.sf.hibernate.tool.hbm2ddl.SchemaExportTask" classpathref="path"/>
   
   <hbm2ddl properties="hibernate.properties" quiet="no" text="true" delimiter=";" output="out.ddll">
      <fileset dir="build/">
         <include name="*.hbm.xml"/>
      </fileset>
   </hbm2ddl>
</target>


When I run SchemaExport from shell with the same CLASSPATH it works fine.

I try many various configuration :/ and nothing ... still the same exception :/
Any idea ?

Thanks
flow


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 28, 2004 7:32 pm 
Newbie

Joined: Mon Dec 27, 2004 8:02 pm
Posts: 2
uff ... I found.

I have got hiberante2.jar in {ant.home}/lib/ ... :)

/ flow


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 28, 2004 8:14 pm 
Contributor
Contributor

Joined: Thu Nov 06, 2003 9:49 pm
Posts: 104
Location: New York, NY
A better approach would be to define 'path' such that it includes all the normal Hibernate jars.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.