-->
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 jars and webapp: server classpath v. in ear/war
PostPosted: Sun Jul 10, 2005 10:30 pm 
Newbie

Joined: Tue Sep 07, 2004 12:00 am
Posts: 6
anyone know which hibernate jars (dependencies too) can be safely placed in a j2ee server classpath and which must reside in the ear/war (e.g. web-inf/lib)?

any tips appreciated, thanks...!


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jul 11, 2005 10:03 am 
Newbie

Joined: Fri Jul 08, 2005 6:26 am
Posts: 4
Location: France, Paris
don't have any authoritative answer but I foud this in a tutorial that **looks** official. Unfortunately I failed to find it online...

Now, copy the libraries to the two classpaths:
1. Copy the JDBC driver for the database to the global classpath. This is required for the DBCP connection
pool software which comes bundled with Tomcat. Hibernate uses JDBC connections to execute SQL on
the database, so you either have to provide pooled JDBC connections or configure Hibernate to use one of
the directly supported pools (C3P0, Proxool). For this tutorial, copy the pg74jdbc3.jar library (for PostgreSQL
7.4 and JDK 1.4) to the global classloaders path. If you'd like to use a different database, simply
copy its appropriate JDBC driver.
2. Never copy anything else into the global classloader path in Tomcat, or you will get problems with various
tools, including Log4j, commons-logging and others. Always use the context classpath for each web application,
that is, copy libraries to WEB-INF/lib and your own classes and configuration/property files to
WEB-INF/classes. Both directories are in the context level classpath by default.

hope it helps..


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.