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

Re:

From: Jerome Alet <alet(at)unice(dot)fr>
To: Dileep Mathew <dileep_mathew(at)yahoo(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re:
Date: 2000-04-14 10:37:24
Message-ID: Pine.LNX.3.96.1000414123325.23041A-100000@cortex.unice.fr (view raw or flat)
Thread:
Lists: pgsql-sql
On Fri, 14 Apr 2000, Dileep Mathew wrote:

> >From servlets I am not able to connect to the database
> The error is coming
>  Class not found Exception .
>    I used - Class.forName("postgresql.Driver");
>   My Servlet is running on Apache web server.Platform
> is Linux 6.1.
> Database is postgresql.
> 
>   But this same program is working as java application
> . I am able to connect to database without any
> exception.
>                   if you come across this problem
> .Please let me know

Ok, we had exactly the same problem.

you have to set your classpath correctly in jserv.properties

here's an excerpt from mine :

wrapper.classpath=/usr/lib/apache/1.3/ApacheJServ.jar
wrapper.classpath=/usr/local/JSDK2.0/lib/jsdk.jar
wrapper.classpath=/usr/share/java/postgresql.jar

be careful: our installation is a Debian, and postgresql.jar was compiled
for jdk-1.1.x 
I installed jdk-1.2.2 and I had to recompile postgresql.jar from
postgresql-6.5.3 sources

it works fine for the person who uses it (I don't know java at all).

bye,
Jerome




In response to

  • at 2000-04-14 09:25:56 from Dileep Mathew

pgsql-sql by date

Next:From: Colin SmithDate: 2000-04-14 11:51:07
Subject: Re: [Fwd: [HACKERS] Porting reports (cont'd)]
Previous:From: Dileep MathewDate: 2000-04-14 09:25:56
Subject:

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