Received: from waco2.calpha.com (waco2.calpha.com [208.232.233.3]) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id eAM0kLs35192 for ; Tue, 21 Nov 2000 19:46:21 -0500 (EST) (envelope-from Greg@10happythings.com) Received: from 10happythings.com (gspeegle.t1-s.wireless.calpha.com [63.80.26.25] (may be forged)) by waco2.calpha.com (8.10.1/8.10.1) with ESMTP id eAM0iAj08911; Tue, 21 Nov 2000 18:44:10 -0600 Message-ID: <3A1B16D4.76F6B49C@10happythings.com> Date: Tue, 21 Nov 2000 18:44:04 -0600 From: Greg Speegle X-Mailer: Mozilla 4.7 [en] (Win98; I) X-Accept-Language: en MIME-Version: 1.0 To: Tony Nakamura CC: pgsql-interfaces Subject: Re: Tomcat & JDBC References: <3A1B11B4.1FA5AC73@uickarate.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200011/230 X-Sequence-Number: 266 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