JDBC, Postgres, and Tomcat4

Posted on 2003-02-18
Medium Priority
Last Modified: 2010-03-31

Could someone give me directions on how to setup the JDBC driver for PostgreSQL for Tomcat4. When I set this up for Tomcat 3.2.1 I just added the jdbc driver to my CLASSPATH (/usr/share/pgsql/jdbc7.1-1.1.jar) That dosen't seem to work in Tomcat4. Any help would be appreciated.


Question by:vanfleet
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Accepted Solution

Ovi earned 200 total points
ID: 7980096
The jar should not be added to the classpath. It is enough to create a directory 'lib' in the 'Web-inf' directory under tomcat. The Tomcat will load all the jars detected in that directory and update his classpath with them.
LVL 35

Expert Comment

ID: 7980431
 ... or you could also put it under <tomcat home>/common/lib if it's going to be used by other web applications as well.
LVL 86

Expert Comment

ID: 7982088
What do you guys think of all this (i don't mean your solutions so much as library dispersal caused by Java dependants such as Tomcat) going much against the grain of the library extensions mechanism in Java? How do you think this could be improved?

Author Comment

ID: 7990102
Thanks that was exactly what I needed.


Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
Suggested Courses

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question