-->
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: Cannot excute: hbm2ddl.SchemaExport --create
PostPosted: Fri Dec 23, 2005 11:40 pm 
Newbie

Joined: Fri Dec 23, 2005 11:20 pm
Posts: 2
Hi

I am trying to create a table using hbm2ddl. I am not sure I am missing something.

I am using Hypersonic.

The command I type is java -cp ../lib/hibernate3.jar org.hibernate.tool.hbm2ddl.SchemaExport --create com/sample/moda/Btesta/Btesta.hbm.xml

The respond is:

Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory at org.hibernate.tool.hbm2ddl.SchemaExport.<clinit>(SchemaExport.java:47)

My mapping files is:
<class name="com.sample.moda.Btesta.Btesta" table="TESTA">
<id name="sysid">
<generator class="uuid"/>
</id>
<property name="name"/>
<property name="remarks"/>
<property name="status"/>
</class>

Joe Jess


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 26, 2005 4:53 am 
Newbie

Joined: Mon Dec 26, 2005 4:35 am
Posts: 1
Hi,

I am new to hibernate to, but I got this schemaexport working.
The problem you have is that your CLASSPATH (or -cp) is missing some required entries. Here are the jars I have put in it :

<some path>/hibernate3.jar
<some path>/commons-logging-1.0.4.jar
<some path>/commons-collections-2.1.1.jar
<some path>/dom4j-1.6.jar
<some path>/jboss-j2ee.jar

I think the last one can also be j2ee.jar which comes with a sun j2ee java installation if you see what I mean.

Hope this helps.
Paul.


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.