• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

tomcat classpath

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
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.
Thanks
Piram
 
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The zip file you are referring to may probably be classes11.zip or classes12.zip. Try renaming it to a .jar file and put it in the 'lib' folder inside tomcat folder. This worked in my case.

------------------
--:Biju:--
 
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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).]
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic