X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 83F049DD862 for ; Sat, 14 Jan 2006 07:21:13 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 47713-02 for ; Sat, 14 Jan 2006 07:21:15 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [131.203.101.226]) by postgresql.org (Postfix) with ESMTP id 729DA9DD861 for ; Sat, 14 Jan 2006 07:21:10 -0400 (AST) Received: from 203-79-104-60.cable.paradise.net.nz ([203.79.104.60] helo=[192.168.0.21]) by yass.opencloud.co.nz with asmtp (TLS-1.0:DHE_RSA_AES_128_CBC_SHA:16) (Exim 4.34) id 1ExjT5-0000it-Bh; Sun, 15 Jan 2006 00:21:11 +1300 Message-ID: <43C8DEA8.5020703@opencloud.com> Date: Sat, 14 Jan 2006 11:21:12 +0000 From: Oliver Jowett User-Agent: Mozilla Thunderbird 0.8 (Windows/20040913) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Joeseph Blowseph CC: pgsql-jdbc@postgresql.org Subject: Re: 'FATAL: database "null" does not exist ' when accessing References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.109 required=5 tests=[AWL=0.109] X-Spam-Score: 0.109 X-Spam-Level: X-Archive-Number: 200601/60 X-Sequence-Number: 14511 Joeseph Blowseph wrote: > DataSourceClass: org.postgresql.ds.PGSimpleDataSource > JNDI Name: jdbc/PGSimple > URL: jdbc:postgresql://localhost:5432/PGSQL1 If you're using a DataSource, then the internal JDBC URL to use is constructed from the parameters used to configure the datasource (setDatabaseName, etc). I don't know what your container is doing with the "JDBC URL" bit, but AFAIK it's not used by the datasource at all. -O