-->
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: Hibernate can find hib...properties but not hib...cfg.xml
PostPosted: Thu Oct 21, 2004 11:13 am 
Newbie

Joined: Thu Oct 21, 2004 10:45 am
Posts: 11
Hibernate version: 2.1.6

I've just installed Hibernate (running it with Netbeans), but have a problem where it can find hibernate.properties, but not hibernate.cfg.xml, even though they are in the same place, in the root of my classpath (and in the root of the Netbeans filesystem containing the packages).

No error messages are displayed (or debug message, if switched on in log4j), but if I delete the .properties file, I get his message:

16:06:10,250 INFO Environment:498 - hibernate.properties not found

and no sign of the cfg file, or any attempt to find it.

I'm happy to continue using the .properties file, but it looks like the XML file is the "better" way.

TIA

Digby


Top
 Profile  
 
 Post subject: PS
PostPosted: Thu Oct 21, 2004 7:06 pm 
Newbie

Joined: Thu Oct 21, 2004 10:45 am
Posts: 11
I'm pretty sure that the .cfg.xml is in the classpath, and I thought that was the only criteria for its location.


Top
 Profile  
 
 Post subject: Always best to RTFM!
PostPosted: Wed Oct 27, 2004 10:33 am 
Newbie

Joined: Thu Oct 21, 2004 10:45 am
Posts: 11
I just missed the documented line of code that automatically found the right hibernate.cfg.xml file, so no need to try and find it myself.


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.