logo       

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

java.enhydra.general

Subject: RE: Can't load Postgresql JDBC driver

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


_______________________________________________
Enhydra mailing list
Enhydra@xxxxxxxxxxx
http://www.enhydra.org/mailman/listinfo.cgi/enhydra


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise