🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.java.databases
Article #55

JDBC for postgresql HELP !!! ClassNotFoundException

#55
From: Sarah
Date: Fri, 14 Jul 2000 00:00
31 lines
1626 bytes
Dear all

I would not forward this message to a newsgroup if I need some serious
help.

I have just reinstalled my Linux Mandrake 7.1 with
J2SE
Java Servlet Development Kit + servletrunner
PostgreSQL 6.5.3 with the JDBC6.5-1.1.jar and JDBC6.5-1.2.jar.

I was able to access the database via if I run the class file under the
console using
Class.forName("postgresql.Driver");.

However, if I run this under servlet, it would throws a
ClassNotFoundException and failed to connect upto the database. My Psql
is running postmaster -i (accept TCP/IP).

Is this something wrong with the classpath ? I have added almost all the

jar files I could see into the classpath!!!






Thanks in advance

Sarah
IC
Technical Details
Message-ID: <396F09E0.DCE65F08@clara.net>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fdf7d,d3a6a2c245977135,start
X-Google-Attributes: gidfdf7d,public
X-Google-Thread: fb99b,d3a6a2c245977135,start
X-Google-Attributes: gidfb99b,public
X-Google-Thread: 107d46,f77135b4bae68f2
X-Google-Attributes: gid107d46,public
From: Sarah <ic@clara.net>
Subject: JDBC for postgresql HELP !!! ClassNotFoundException
Date: 2000/07/14
Message-ID: <396F09E0.DCE65F08@clara.net>
X-Deja-AN: 646298175
Content-Transfer-Encoding: 7bit
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
X-Complaints-To: abuse@clara.net
X-Trace: nnrp3.clara.net 963578147 195.8.82.211 (Fri, 14 Jul 2000 13:35:47 BST)
MIME-Version: 1.0
NNTP-Posting-Date: Fri, 14 Jul 2000 13:35:47 BST
Newsgroups: comp.lang.java.databases,cz.comp.lang.java,microsoft.public.java.visualj++.wfc.database,microsoft.public.java.visualj++.wfc.database