-->
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.  [ 2 posts ] 
Author Message
 Post subject: hibernate.cfg.xml in an EAR file
PostPosted: Tue Mar 15, 2005 6:16 pm 
Newbie

Joined: Tue Mar 15, 2005 6:06 pm
Posts: 1
I am trying to get Hibernate3 running in a session bean. I am using JOnas as my app server and I have all the correct jar files in JOnas's lib/ext directory. If set the Hibernate configuration properties explicitly in my code everything works fine but if I try to set the properties using the hibernate.cfg.xml file it does not work. I have read some other posts and have placed this file in the root of my jar file like they suggested to no avail. I have also tried placing it in the root of my EAR file but I is still not found. Do I have to explicitly path to the cfg file somehow in my MANIFEST file or my EAR or JAR file? What am I missing here?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 18, 2005 5:35 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
The classloader loading hibernate.jar should be able to access the xml files. The best solution is to embbed H3 in your ear and declare them in the manifest of your EJBs

_________________
Emmanuel


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.