-->
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: Sharing hibernate.jar across multiple Tomcat webapps
PostPosted: Wed Feb 18, 2004 5:06 pm 
Newbie

Joined: Tue Jan 13, 2004 12:13 pm
Posts: 8
Location: USA
Is it possible to share the hibernate.jar across multiple webapps? I have tried putting the jar under shared/lib and hibernate cannot see the config resources. Any ideas anyone?

env: hibernate 2.1.2, tomcat 4.1.24


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 18, 2004 5:08 pm 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
Just don't do it. If you mess about with the global classpath in Tomcat, you will soon have some serious and difficult to find problems. This even works without Tomcat: Just try to get commons-logging working.

_________________
JAVA PERSISTENCE WITH HIBERNATE
http://jpwh.org
Get the book, training, and consulting for your Hibernate team.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 18, 2004 5:08 pm 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
...even without Hibernate. Tomcat is essential.

_________________
JAVA PERSISTENCE WITH HIBERNATE
http://jpwh.org
Get the book, training, and consulting for your Hibernate team.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 19, 2004 1:38 am 
Newbie

Joined: Tue Jan 13, 2004 12:13 pm
Posts: 8
Location: USA
I realize it and completely agree with you! This is something I only want to do in my dev env. I have a handful of projects that I am working on all of which use the same technologies and I have managed to put all the jars in shared/lib and get it to work except Hibernate. commons-logging was really a pain to tackle, but placing the logging jars under the topmost classloader (common/lib) seems to be working. The only problem is you now have a single logging properties file for all the projects!

But I guess I will agree with you that it is probably not worth it. Trying to find out alternatives, I guess. Anyway, thanks!


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.