logo       

Re: Can't load Postgresql JDBC driver: msg#00027

java.enhydra.general

Subject: Re: 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


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

News | FAQ | advertise