pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Greg Speegle <Greg@10happythings.com>
To: Tony Nakamura <tony@uickarate.com>
Cc: pgsql-interfaces <pgsql-interfaces@postgresql.org>
Subject: Re: Tomcat & JDBC
Date: Tue, 21 Nov 2000 18:44:04 -0600
Message-ID: <3A1B16D4.76F6B49C@10happythings.com> (raw)
References: <Pine.BSF.4.21.0011161505570.11653-100000@kraeusen.nbrewer.com>
	<3A1B11B4.1FA5AC73@uickarate.com>


I was able to get tomcat to work with postgres by putting the jar file
in /usr/local/tomcat/lib, which is the default place for tomcat to look
for libraries in my installation.

Also, are you using the right jar file? I know you can name it whatever
you want, but the download name I have is jdbc7_0-1_2.jar, while the
old jar file was called postgresql.jar.

Good luck,
Greg Speegle

Tony Nakamura wrote:

> Thanks everyone for the help on JDBC.  I finally got JDBC to work.
> ....of course, I am facing an another one.  So please help me if you could.
> Thanks in advance.
>
> My DB connection works perfectly when I am writing an application, but
> it gives the ClassNotFoundException error when I write a servlet.  I am
> pretty
> sure it's the setting for tomcat that  I am using.  I have set following in
> the tomcat.properties
> file:
>
> wrapper.bin.parameters=-Djdbc.drivers=org.postgresql.Driver
> wrapper.classpath=/usr/local/lib/postgresql.jar
>
> I am also setting the CLASSPATH environmental variable, so
> I've tried wrapper.bin.parameter=NONE and didn't work.
>
> Tony




view thread (3+ messages)  latest in thread

Message-ID: <3A1B16D4.76F6B49C@10happythings.com>
Permalink:  ../3A1B16D4.76F6B49C@10happythings.com/
Also on:    postgresql.org/message-id/3A1B16D4.76F6B49C@10happythings.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: Greg@10happythings.com, tony@uickarate.com
  Subject: Re: Tomcat & JDBC
  In-Reply-To: <3A1B16D4.76F6B49C@10happythings.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox