logo       

RE: Can't load Postgresql JDBC driver: msg#00036

java.enhydra.general

Subject: RE: Can't load Postgresql JDBC driver

Yes. I got it working. Problem lies in the classpath. I will test it out a bit more.If things are going well, I will work on a simple "How-To" this weekend to show a quick-start with Enhydra5-n-PostgreSQL.

Thanks for all the help.
YekSoon

At 07:18 AM 1/16/2003 -1000, you wrote:

Yes, I have had this problem also, try putting it in your system classpath..
Mike.

-----Original Message-----
From: Frederic Garzon [mailto:Frederic.Garzon@xxxxxxxx]
Sent: Thursday, January 16, 2003 2:27 AM
To: enhydra@xxxxxxxxxxx
Subject: Re: Enhydra: Can't load Postgresql JDBC driver


Lok Yek Soon wrote:

>I have corrected the mistakes in the conf file as suggested by Darius and
>Stefan. But I still got the same error messages.
>I have also use a standalone program from
>http://www.fankhausers.com/postgresql/jdbc/ to test the JDBC connection
>with PostgreSQL and it works fine (JDBC to Postgresql works fine).
>
>What else could be causing this?
>
If you still have problem to load the driver, it may be a problem of
classpath : In Enhydra 3, the classloader used to load the driver is the
system class loader, and not the application class loader.
So You have to put the postgres JDBC jar in the system classpath (using
for ex. the CLASSPATH environment variable, or the -cp command line
argument), and not in the classpath set in the application configuration
file (used by the application classloader).

Hope this helps...


--
Frederic Garzon <Frederic.Garzon@xxxxxxxx>
---------------------------------------------
o 51, rue de Verdun
/ _ __ _ 92158 Suresnes cedex
/ /\ /_ / /_ France
\/ \/_ / /_/ Tel. +33 (0) 1 41 44 85 45
Inetsys S.A. Fax +33 (0) 1 46 97 20 10


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.443 / Virus Database: 248 - Release Date: 1/10/2003
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise