-->
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: OK to install hibernate in jre/lib/ext?
PostPosted: Tue Jan 25, 2005 1:22 pm 
Pro
Pro

Joined: Fri Nov 19, 2004 5:52 pm
Posts: 232
Location: Chicago, IL
I'm wondering if anyone has tried to install hibernate in the Java jre/lib/ext directory and whether that causes any problems?

I know in the manual it says not to install the libraries in the shared lib directory when you are using Tomcat. To me it seems kind of excessive to have to bundle the libraries with each webapp if you have several webapps that all use hibernate.

One of the issues that I've run into is that I eventually run out of memory after I have reloaded my webapp several times. I'm thinking the problem might be the fact that it's reloading the hibernate libraries each time I reload my webapp. I've been using hibernate-3.0beta1 and hibernate-annotations-3.0alpha1 and a few different versions of Tomcat 5.5.x.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 25, 2005 1:34 pm 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
http://forum.hibernate.org/viewtopic.ph ... 64#2222664

It would be nice if someone who can reproduce this would actually use a profiler and find out what the problem really is.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 25, 2005 1:55 pm 
Pro
Pro

Joined: Fri Nov 19, 2004 5:52 pm
Posts: 232
Location: Chicago, IL
I think JDK 5.0 has new profiling capabilities. I wonder if I could use that?

I am using ThreadLocals of my own. Don't know whether that's the problem...
If I remember correctly, the problem was occuring before I started using ThreadLocals.

I wonder why that would make a different anyways...


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 25, 2005 3:33 pm 
CGLIB Developer
CGLIB Developer

Joined: Thu Aug 28, 2003 1:44 pm
Posts: 1217
Location: Vilnius, Lithuania
Yes, this directory must be empty on servers.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 25, 2005 3:52 pm 
Pro
Pro

Joined: Fri Nov 19, 2004 5:52 pm
Posts: 232
Location: Chicago, IL
Why is that though?

One issue that I ran into is that it wasn't able to find my hibernate.properties file, presumably because hibernate was loaded by another class loader, but, I'm wondering if I specify the properties using the API, if it will work OK in that case.


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:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.