context classloader (was: Re: 8.0 drivers released.) - Mailing list pgsql-jdbc

From Vadim Nasardinov
Subject context classloader (was: Re: 8.0 drivers released.)
Date
Msg-id 200501181734.45152@vadim.nasardinov
Whole thread Raw
In response to Re: 8.0 drivers released.  (Oliver Jowett <oliver@opencloud.com>)
Responses Re: context classloader
List pgsql-jdbc
On Tuesday 18 January 2005 17:17, Oliver Jowett wrote:
> I can reproduce the exception by running test code when the driver
> is loaded from the bootstrap classpath
> ('-Xbootclasspath/a:jars/postgresql.jar')
>
> It seems reasonable to fall back to the system classloader if the
> driver was loaded from the bootstrap classloader. I will commit a
> change to do this shortly.

Another reasonable course of action might be to try the context classloader:
http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Thread.html#getContextClassLoader%28%29

This would typically have the system classloader in its parent hierarchy,
but it may also give you access to locations that the system classloader
cannot see.

pgsql-jdbc by date:

Previous
From: Oliver Jowett
Date:
Subject: Re: 8.0 drivers released.
Next
From: Oliver Jowett
Date:
Subject: Re: context classloader