-->
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.  [ 5 posts ] 
Author Message
 Post subject: Problems with hibernate.properties
PostPosted: Tue Sep 16, 2003 5:17 pm 
Newbie

Joined: Tue Sep 16, 2003 4:45 pm
Posts: 14
Hi,
I am an absolute beginner to Hibernate. I am using Tomcat 4.1 and cant seem to figure out where to put hibernate.properties file
I tried placing the file in common/lib; classpath; context/web-inf/classes.

Every time it shows me the following dump.

---------------------------------------------------------------------------
Sep 16, 2003 5:18:40 PM net.sf.hibernate.cfg.Environment <clinit>
INFO: Hibernate 2.0.2
Sep 16, 2003 5:18:40 PM net.sf.hibernate.cfg.Environment <clinit>
INFO: hibernate.properties not found
Sep 16, 2003 5:18:40 PM net.sf.hibernate.cfg.Environment <clinit>
INFO: using CGLIB reflection optimizer
Sep 16, 2003 5:18:40 PM net.sf.hibernate.cfg.Environment <clinit>
INFO: JVM proxy support: true
Sep 16, 2003 5:18:40 PM net.sf.hibernate.cfg.Configuration addClass
INFO: Mapping resource: com/modapay/entity/Merchant.hbm.xml
--------------------------------------------------------------------------

Please suggest.
Thanks a lot.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 16, 2003 6:09 pm 
Newbie

Joined: Mon Sep 15, 2003 6:44 pm
Posts: 8
I think. you can put it anywhere ( generally in the directory where the main class which reads the hbm files and conifgures the session factory.

Then do setProperties() on the config for teh hibernate.properties file.


Top
 Profile  
 
 Post subject: hibernate.properties
PostPosted: Tue Sep 16, 2003 7:02 pm 
Regular
Regular

Joined: Tue Sep 09, 2003 9:37 pm
Posts: 56
Location: Ogden, Utah, USA
I use tomcat as well, and we deploy the hibernate.properties to
%CATALINA_HOME%\webapps\our_app\WEB-INF\classes.

Jenica


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 16, 2003 8:53 pm 
Beginner
Beginner

Joined: Fri Sep 05, 2003 10:17 am
Posts: 42
for tomcat WEB-INF\classes\ is the location you want. put more simply, the props file or the hibernate.cfg.xml file needs to be in your classpath.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 17, 2003 3:50 pm 
Newbie

Joined: Tue Sep 16, 2003 4:45 pm
Posts: 14
I would like to thank every body for their help.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 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:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.