From: Vadim Nasardinov <vadimn@redhat.com>
To: pgsql-jdbc@postgresql.org
Subject: context classloader (was: Re: 8.0 drivers released.)
Date: Tue, 18 Jan 2005 17:34:45 -0500
Message-ID: <200501181734.45152@vadim.nasardinov> (raw)
In-Reply-To: <41ED8B01.1010209@opencloud.com>
References: <Pine.BSO.4.56.0501170706010.29112@leary.csoft.net>
<41ECF9FB.7040300@opencloud.com>
<41ED8B01.1010209@opencloud.com>
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.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: vadimn@redhat.com
Subject: Re: context classloader (was: Re: 8.0 drivers released.)
In-Reply-To: <200501181734.45152@vadim.nasardinov>
References: <Pine.BSO.4.56.0501170706010.29112@leary.csoft.net> <41ECF9FB.7040300@opencloud.com> <41ED8B01.1010209@opencloud.com> <200501181734.45152@vadim.nasardinov>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox