The moose likes Tomcat and the fly likes tomcat classpath Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "tomcat classpath" Watch "tomcat classpath" New topic

tomcat classpath


Joined: Dec 21, 2001
Posts: 4
I was using Tomcat to develop a small application, where I was using OracleDriver for JDBC access. In order for the Tomcat to see the corresponding zip file(driver file), I had to unzip that file in the WEB-INF\classes directory of my application folder in the Webapps folder in side tocat installation folder.
I couldn't find a way to include the original path of the driver file in the tomcat's classpath. I saw in the Tomcat's documentation that Tomcat doesn't see the system's classpath.
Please let me know anyone, how can I set the classpath so that tomcat can see that file, instead of unzip in to the classes directory.
Biju Nair
Ranch Hand

Joined: Dec 15, 2001
Posts: 31
The zip file you are referring to may probably be or Try renaming it to a .jar file and put it in the 'lib' folder inside tomcat folder. This worked in my case.


--: Biju Nair :--
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

Also, Tomcat 4.x doesn't use System CLASSPATH, so put your oracle jar file in the <CATALINA_HOME>/common/lib directory.

In Tomcat 3.x, this folder was <TOMCAT_HOME>/lib, but it would have also picked it up from wherever it was on your system, as long as it was in the system CLASSPATH
[This message has been edited by Mike Curwen (edited December 27, 2001).]
I agree. Here's the link:
subject: tomcat classpath
It's not a secret anymore!