From: Andreas Joseph Krogh <andreak@officenet.no>
To: Oliver Jowett <oliver@opencloud.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: 8.0 drivers released.
Date: Tue, 18 Jan 2005 13:15:44 +0100
Message-ID: <200501181315.48764.andreak@officenet.no> (raw)
In-Reply-To: <41ECF9FB.7040300@opencloud.com>
References: <Pine.BSO.4.56.0501170706010.29112@leary.csoft.net>
<200501181151.27951.andreak@officenet.no>
<41ECF9FB.7040300@opencloud.com>
On Tuesday 18 January 2005 12:58, you wrote:
> Andreas Joseph Krogh wrote:
> > NullPointerException:
> > Caused by: java.lang.NullPointerException
> > at org.postgresql.Driver.getDefaultProperties(Driver.java:84)
> > at org.postgresql.Driver.connect(Driver.java:167)
> > at org.apache.catalina.realm.JDBCRealm.open(JDBCRealm.java:599)
>
> Driver.java:84 is:
>
> Enumeration urlEnum =
> getClass().getClassLoader().getResources("org/postgresql/driverconfig.prope
>rties");
>
> I guess that org.postgresql.Driver is being loaded by the bootstrap
> classloader (getClassLoader() returns null). How exactly are you getting
> the driver jar into the classpath?
I saw that line too, but would never have guessed that getClassLoader()
returnes null(don't know much about classloaders). I'm trying to load a
ConnectionPool in Tomcat-5.0.28 and had my pg.jar in
$TOMCAT_HOME/common/endorsed/, when I moved it to $TOMCAT_HOME/common/lib/ it
works ok. It used to work in common/endorsed with previous releases(including
8.0.beta4 which is the last one I tried before 8.0 final).
Anyway, the problem is now gone, thanks!
--
Andreas Joseph Krogh <andreak@officenet.no>
Senior Software Developer / Manager
gpg public_key: http://dev.officenet.no/~andreak/public_key.asc
------------------------+---------------------------------------------+
OfficeNet AS | Can i wash my clothes with my dvd drive? |
Hoffsveien 17 | Or do i need to replace it with a washing |
PO. Box 425 Skøyen | machine?? |
0213 Oslo | |
NORWAY | |
Phone : +47 22 13 01 00 | |
Direct: +47 22 13 10 03 | |
Mobile: +47 909 56 963 | |
------------------------+---------------------------------------------+
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: andreak@officenet.no, oliver@opencloud.com
Subject: Re: 8.0 drivers released.
In-Reply-To: <200501181315.48764.andreak@officenet.no>
References: <Pine.BSO.4.56.0501170706010.29112@leary.csoft.net> <200501181151.27951.andreak@officenet.no> <41ECF9FB.7040300@opencloud.com> <200501181315.48764.andreak@officenet.no>
* 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