Re: Problems setting up PostgreSQL and Tomcat JDBC connection

From: "Nikola Milutinovic" <Nikola(dot)Milutinovic(at)ev(dot)co(dot)yu>
To: <tomcat-user(at)jakarta(dot)apache(dot)org>
Cc: "PostgreSQL novice" <pgsql-novice(at)postgresql(dot)org>, "PostgreSQL general" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Problems setting up PostgreSQL and Tomcat JDBC connection
Date: 2001-10-23 06:48:51
Message-ID: 004a01c15b8e$c72eeef0$0a3ea8c0@ev.co.yu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-novice

> When I wrote a servlet for TC3.2.3, before Connection conn=bla..., I had
> Class.forName("org.postgresql.driver");
> As far as the location of postgresql.jar, I had it in JDK_HOME/lib and in
> TOMCAT_HOME/lib at least (maybe in WEB-INF/lib as well - I can't remember)

Thanks. I have postgresql.jar in a proper location, it seams. Looks like it is either not getting loaded or not registered as a JDBC driver.

QUESTION 1: How can I check if a particular jar/class has been accepted by the classloader?
QUESTION 2: Again, what is the proper way of specifying a "system-wide" JDBC driver in Tomcat 4.0?

Nix.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message midde sirisha 2001-10-23 06:52:12 how to filter pipe symbol
Previous Message Stephan Szabo 2001-10-23 06:33:38 Re: oid not "UNIQUE" for use as FOREIGN KEY?

Browse pgsql-novice by date

  From Date Subject
Next Message Fredrik Thunberg 2001-10-23 09:10:57 Concatenating strings
Previous Message Oliver Elphick 2001-10-23 04:12:00 Re: Problem with createdb & case (7.1.3)