X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 3FC3E3A2593 for ; Tue, 18 Jan 2005 12:15:58 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 98783-06 for ; Tue, 18 Jan 2005 12:15:51 +0000 (GMT) Received: from krogh.officenet.no (unknown [128.39.244.194]) by svr1.postgresql.org (Postfix) with ESMTP id 707703A2585 for ; Tue, 18 Jan 2005 12:15:49 +0000 (GMT) Received: from localhost (localhost [127.0.0.1]) by krogh.officenet.no (Postfix) with ESMTP id 7F60D1B3E4; Tue, 18 Jan 2005 13:15:49 +0100 (CET) From: Andreas Joseph Krogh Organization: OfficeNet AS To: Oliver Jowett Subject: Re: 8.0 drivers released. Date: Tue, 18 Jan 2005 13:15:44 +0100 User-Agent: KMail/1.7.91 References: <200501181151.27951.andreak@officenet.no> <41ECF9FB.7040300@opencloud.com> In-Reply-To: <41ECF9FB.7040300@opencloud.com> Cc: pgsql-jdbc@postgresql.org MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2994551.15AYW3Zoe7"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200501181315.48764.andreak@officenet.no> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests= X-Spam-Level: X-Archive-Number: 200501/176 X-Sequence-Number: 12056 --nextPart2994551.15AYW3Zoe7 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline 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 =3D > getClass().getClassLoader().getResources("org/postgresql/driverconfig.pro= pe >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()=20 returnes null(don't know much about classloaders). I'm trying to load a=20 ConnectionPool in Tomcat-5.0.28 and had my pg.jar in=20 $TOMCAT_HOME/common/endorsed/, when I moved it to $TOMCAT_HOME/common/lib/ = it=20 works ok. It used to work in common/endorsed with previous releases(includi= ng=20 8.0.beta4 which is the last one I tried before 8.0 final). Anyway, the problem is now gone, thanks! =2D-=20 Andreas Joseph Krogh Senior Software Developer / Manager gpg public_key: http://dev.officenet.no/~andreak/public_key.asc =2D-----------------------+---------------------------------------------+ 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=F8yen | machine?? | 0213 Oslo | | NORWAY | | Phone : +47 22 13 01 00 | | Direct: +47 22 13 10 03 | | Mobile: +47 909 56 963 | | =2D-----------------------+---------------------------------------------+ --nextPart2994551.15AYW3Zoe7 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) iD8DBQBB7P30UopImDh2gfQRAiHSAKCoOQJYKI7iL4pOwZluExcbT4Aq3ACfZvyN jSqGB4DHinmY9+Szd8lgKs0= =h+VG -----END PGP SIGNATURE----- --nextPart2994551.15AYW3Zoe7--