File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes Oracle Driver location Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Oracle Driver location" Watch "Oracle Driver location" New topic
Author

Oracle Driver location

Dan Parsons
Ranch Hand

Joined: May 30, 2007
Posts: 70
For Tomcat 6.0.16, where do I put the Oracle Thin driver? I am using ojdbc14.jar

In Tomcat 4.1.27 I had it in Tomcat4.1.27/common/lib
Muhammad Saifuddin
Ranch Hand

Joined: Dec 06, 2005
Posts: 1321

should be in MyApp/WEB-INF/lib/ - This directory contains JAR files that contain Java class files (and associated resources) required for your application, such as third party class libraries or JDBC drivers.


Saifuddin..
[Blog][Linkedin] How To Ask Questions On JavaRanch My OpenSource
Dan Parsons
Ranch Hand

Joined: May 30, 2007
Posts: 70
Thanks, but I would rather have it in a common directory for everyone to use.
Is there such in Tomcat 6 that I can use?
Muhammad Saifuddin
Ranch Hand

Joined: Dec 06, 2005
Posts: 1321

for the sharing purpose.

There are two locations that are commonly used within a Tomcat 5 installation for shared code:

* $CATALINA_HOME/common/lib - JAR files placed here are visible both to web applications and internal Tomcat code. This is a good place to put JDBC drivers that are required for both your application and internal Tomcat.

* $CATALINA_BASE/shared/lib - JAR files placed here are visible to all web applications, but not to internal Tomcat code. This is the right place for shared libraries that are specific to your application.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Oracle Driver location