aspose 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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Oracle Driver location
 
Similar Threads
Connection Polling in Oracle 10g Using NetBeans ID
url for datasource (urgent)
Tomcat and Oracle, will i transfer any file?
Refcursor value is invalid, Bigger type length than Maximum, Protocol violation
JDBC driver for Oracle 8i, Tomcat and JDK