Received: from localhost (unknown [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 3CA102E00C4 for ; Tue, 5 Feb 2008 02:06:09 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 78227-06 for ; Tue, 5 Feb 2008 02:05:55 -0400 (AST) Received: from mail.globalsuite.net (mail.globalsuite.net [69.46.103.200]) by postgresql.org (Postfix) with SMTP id 6BB422E0101 for ; Tue, 5 Feb 2008 02:06:05 -0400 (AST) X-AuditID: c0a8013c-abec1bb0000002a3-97-47a7fccb234f Received: from [172.17.173.175] (unknown [12.25.106.210]) by mail.globalsuite.net (Symantec Mail Security) with ESMTP id C70C14DC010 for ; Mon, 4 Feb 2008 23:06:02 -0700 (MST) Message-ID: <47A7FCC0.1020201@burntmail.com> Date: Tue, 05 Feb 2008 01:05:52 -0500 From: Guy Rouillier User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: Re: JDBC connection problem References: <4df751bf0802041918nafe3dc4na662592641a56a5b@mail.gmail.com> In-Reply-To: <4df751bf0802041918nafe3dc4na662592641a56a5b@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Brightmail-Tracker: AAAAAA== X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.001 tagged_above=0 required=5 tests=BAYES_50=0.001 X-Spam-Level: X-Archive-Number: 200802/7 X-Sequence-Number: 18214 Brian Tomaszewski wrote: > I am having trouble connecting to a psql database running on Debian > GNU/Linux system > > The version of psql I am using in the system is 8.2.6. > > No matter what I do, I continually am getting the error: > > /Backend start-up failed: FATAL: database "RW_GEO" does not exist > > /when my JDBC component tries to connect using a URL like this: > > jdbc:postgresql://localhost:5432/RW_GEO > > from a tomcat app > > I have confirmed that the database RW_GEO does in fact exist as I can > see/query tables from it from psql. > > Also, when I run my app on my development machine (windows), I can > connect via tomcat with no problems to my local psql server. I'm trying to follow your runtime environment, but some pieces are missing. When you say you can query the database running on Debian using psql, is that psql running on your Windows box or on the Debian box? I don't think this has anything to do with JDBC. The URL you show above has "localhost" as the server for the DB. That's probably not right, is it? I wouldn't think you'd have Tomcat running on your database server. So, run psql from whatever box is running Tomcat, and figure out how to connect it to your DB server. Once you've done that, you should be able to just transfer the connection settings to JDBC. I'm anticipating once you attempt to do that, you'll encounter a connection error. That's because you need to update pg_hba.conf to allow access to your database from remote hosts. -- Guy Rouillier