Not required for the web app unless you are using connection pooling
within tomcat.  The DB drivers can be in shared.

-----Original Message-----
From: Mark Thomas [mailto:ma...@apache.org] 
Sent: Wednesday, December 09, 2009 8:10 AM
To: Tomcat Users List
Subject: Re: db jars in common/lib and shared/lib

Mohammad, Hammad Kasim Bekur wrote:
> I have placed my db jars(ie db2jcc.jar, db2jcc_javax.jar and
> db2jcc_license_cu.jar )  in tomcat/common/lib, and started ant target
to
> run the tomcat, server started up properly.
> 
> Now I have removed these jar from common/lib and put under shared/lib,
> server throws an error saying couldnot load the driver. 

Entirely as expected. Database drivers have always had to be located in
common/lib so they are visible to both Tomcat internals (for connection
pooling) and the web app (so it can use them).

Mark




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to