-->
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.  [ 4 posts ] 
Author Message
 Post subject: class path for tomcat to include hibernate outside webapp
PostPosted: Mon Nov 01, 2004 1:37 pm 
Newbie

Joined: Tue Aug 31, 2004 5:04 pm
Posts: 10
Hello,

At the moment I can only run my webapp if I have all the hibernate files in ../webapp/myapp/WEB-INF/classes/hibernate/*.hbm.xml

I have tried putting all the files in /mydir/hibernate/*.hbm.xml so that more than one webapp can access them. However, when I do this the app of course cannot find them.

I added the path to catalina.properties but that did not help. What file would I have to edit in order for this to be achieved?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 01, 2004 1:42 pm 
Newbie

Joined: Tue Aug 31, 2004 5:04 pm
Posts: 10
I think I found it. I need to add

Code:
<mapping resource="" />


In the hibernate.cfg.xml file in ../tomcat/conf/

Does that sound right?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 01, 2004 2:35 pm 
Newbie

Joined: Tue Aug 31, 2004 5:04 pm
Posts: 10
OK I know understand what I need to do but not how.

I have my XML file called by .configure() and when it does the xml file has

Code:
<mapping resource="hibernate/file.hbm.xml"/>


I want hibernate/ to equal /mydir/hibernate but right now it does not.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 01, 2004 3:59 pm 
Newbie

Joined: Tue Aug 31, 2004 5:04 pm
Posts: 10
I didn't see the option to delete this thread or edit my post so I restated the question here:

http://forum.hibernate.org/viewtopic.php?t=935879


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