-->
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.  [ 1 post ] 
Author Message
 Post subject: tomcat property file problem
PostPosted: Mon May 09, 2005 6:26 am 
Newbie

Joined: Mon May 09, 2005 6:19 am
Posts: 1
Hi

I use Hibernate 3 with Tomcat 5.5. When calling a Servlet with the following Code

Code:
Configuration cfg = new Configuration();
cfg.addResource("com/ilogs/medea/data/Patient.hbm.xml");
SessionFactory session = cfg.buildSessionFactory();


the hbm.xml file is found without problems, but somehow Hibernate / Tomcat cannot find the property file.

org.hibernate.cfg.Environment - Hibernate 3.0.2
2005-05-09 12:05:57,753 [http-8001-Processor24] INFO org.hibernate.cfg.Environment - hibernate.properties not found.

I tried the standard hibernate.properties as well as the xml file. I placed them under WEB-INF/classes and WEB-INF as well both should be in the classpath but somehow the file cannot be found.

Any hints ??

TIA

John


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

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.