Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 291
  • Last Modified:

JDBC, Postgres, and Tomcat4


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.

Thanks,

dv
0
vanfleet
Asked:
vanfleet
1 Solution
 
OviCommented:
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.
0
 
girionisCommented:
 ... or you could also put it under <tomcat home>/common/lib if it's going to be used by other web applications as well.
0
 
CEHJCommented:
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?
0
 
vanfleetAuthor Commented:
Thanks that was exactly what I needed.

dv
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now