-->
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.properties work hibernate.cfg.xml NOT
PostPosted: Sun May 23, 2004 4:43 pm 
Beginner
Beginner

Joined: Fri May 21, 2004 3:49 pm
Posts: 21
Location: Germany, Mainz
Hi,
I sitting here for about 3 days drying to run hibernate.cfg.xml. Id doesn't
work, but I don't know why. The thing is, that I alway get the same
error, when I try to open a bean.
the user must supply a JDBC connection. <- hibernate.cfg.xml
IF I try it with my hibernate.properties file, everything works
fine, no error-messsages.

Are there any reasons, why this happens?

Hibernate 2.1.3
Tomcat 5
Debuglevel info
DB mysql 4.0


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 24, 2004 7:03 am 
Beginner
Beginner

Joined: Mon Feb 23, 2004 1:17 pm
Posts: 28
Are you using Configuration.configure('path/to/hibernate.cfg')?

This path is usually relative to your meta-inf directory.


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 24, 2004 9:15 am 
Beginner
Beginner

Joined: Fri May 21, 2004 3:49 pm
Posts: 21
Location: Germany, Mainz
I am using it like that:
Code:
configuration.configure("/hibernate.cfg.xml");


Is this problem connected to my meta-inf diretory?


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.