Received: from localhost (unknown [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 4CCEC2E32C9 for ; Tue, 5 Feb 2008 09:19:22 -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 79276-01-7 for ; Tue, 5 Feb 2008 09:18:46 -0400 (AST) Received: from qb-out-0506.google.com (qb-out-0506.google.com [72.14.204.225]) by postgresql.org (Postfix) with ESMTP id 20FC62E3300 for ; Tue, 5 Feb 2008 09:18:47 -0400 (AST) Received: by qb-out-0506.google.com with SMTP id o12so3142499qba.17 for ; Tue, 05 Feb 2008 05:18:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; bh=fUH8kJN/jJi69/ciolDkhXZ+9C0H6qypwin6sQXzd+4=; b=xmHSZpQCiZmxwSzVBf7oMdmoKh+5RYAIswsU+VoxYE2xjlS3VlqRlO7lXX5mjJrZVo/duhH9ycGUQPz+p8lK+SOzG/1y5rkSSpwDKZvM1aqWzXMYUFjcFXD4elFxXPAI9MH3rCh2cvBIvRW2KG57U/95+jtPeG+APhKHRGt274I= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=noAvYrCIHRtMlec1tp1T6zrxHyXsej3s81EjvoYTaxlgfckAWB9NjAv6+Gw1Mi3bfP6hVyO5yKObcPuEmQ1UDwti5twdYIfKNIByDs/Ks7MTBHhcqx0vRRa5vi4IfQLZme9Ja0FQ7ngDPmoLsRcyWBPtz2ZZooYfe8f2WoL54K4= Received: by 10.64.156.2 with SMTP id d2mr15510524qbe.54.1202217525644; Tue, 05 Feb 2008 05:18:45 -0800 (PST) Received: by 10.64.204.3 with HTTP; Tue, 5 Feb 2008 05:18:45 -0800 (PST) Message-ID: <4df751bf0802050518k1636c8f1ybe1cdac3153bb56@mail.gmail.com> Date: Tue, 5 Feb 2008 08:18:45 -0500 From: "Brian Tomaszewski" To: "Dave Cramer" Subject: Re: JDBC connection problem Cc: "Guy Rouillier" , pgsql-jdbc@postgresql.org In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_10270_14603358.1202217525629" References: <4df751bf0802041918nafe3dc4na662592641a56a5b@mail.gmail.com> <47A7FCC0.1020201@burntmail.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200802/10 X-Sequence-Number: 18217 ------=_Part_10270_14603358.1202217525629 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Dave, Thanks for the tip. I just tried a test with a lowercase db and the connection still didn't work. Thanks again BT On Feb 5, 2008 6:29 AM, Dave Cramer wrote: > Brian, > > Try using lower case for the name of your database. > > Postgresql and upper case is an impedance mismatch. > > Dave > On 5-Feb-08, at 1:05 AM, Guy Rouillier wrote: > > > 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 > > > > ---------------------------(end of > > broadcast)--------------------------- > > TIP 7: You can help support the PostgreSQL project by donating at > > > > http://www.postgresql.org/about/donate > > > ---------------------------(end of broadcast)--------------------------- > TIP 2: Don't 'kill -9' the postmaster > ------=_Part_10270_14603358.1202217525629 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Dave,

Thanks for the tip. I just tried a test with a lowercase db and the connection still didn't work.

Thanks again

BT

On Feb 5, 2008 6:29 AM, Dave Cramer <pg@fastcrypt.com> wrote:
Brian,

Try using lower case for the name of your database.

Postgresql and upper case is an impedance mismatch.

Dave
On 5-Feb-08, at 1:05 AM, Guy Rouillier wrote:

> 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
>
> ---------------------------(end of
> broadcast)---------------------------
> TIP 7: You can help support the PostgreSQL project by donating at
>
>               http://www.postgresql.org/about/donate


---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster

------=_Part_10270_14603358.1202217525629--