Skip site navigation (1) Skip section navigation (2)

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$ (view raw, whole thread or download thread mbox)
Lists: pgsql-generalpgsql-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?


In response to

pgsql-novice by date

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

pgsql-general by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group