-->
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: Schema Export : file not found
PostPosted: Mon Mar 22, 2004 11:51 pm 
Beginner
Beginner

Joined: Mon Jan 26, 2004 3:31 am
Posts: 20
Location: Jakarta, Indonesia
Hi, I'm having problem with using the Schema Export tool.
I'm using Hibernate 2.1.1

I go to my classes directory, where it contains :
- hibernate.cfg.xml
- bean.hbm.xml
- and my classes files.
I don't use the hibernate.properties file

Then I type :
java net.sf.hibernate.tool.hbm2ddl.SchemaExport --config=hibernate.cfg.xml bean.hbm.xml

And it gave me this error:
net.sf.hibernate.HibernateException: hibernate.cfg.xml not found
at net.sf.hibernate.cfg.Configuration.getConfigurationInputStream(Configuration.java:820)
at net.sf.hibernate.cfg.Configuration.configure(Configuration.java:844)
at net.sf.hibernate.tool.hbm2ddl.SchemaExport.main(SchemaExport.java:275)


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 24, 2004 6:16 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Set you classes dir in your classpath

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 29, 2004 2:38 am 
Beginner
Beginner

Joined: Mon Jan 26, 2004 3:31 am
Posts: 20
Location: Jakarta, Indonesia
I apologize for not giving the correct information. Actually this is the command I run :

java -cp $CLASSPATH:. net.sf.hibernate.tool.hbm2ddl.SchemaExport --config=hibernate.cfg.xml bean.hbm.xml (I use Linux)

It's not working. I also tried to set the classpath in my .bash_profile instead of putting it on the command line, and it's also not working. It gave that error.


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.