Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 411DBB5D8C5 for ; Wed, 10 Aug 2011 13:14:24 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 98535-04 for ; Wed, 10 Aug 2011 16:14:18 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail.softperience.eu (static-ip-217-118-26-141.inaddr.intergenia.de [217.118.26.141]) by mail.postgresql.org (Postfix) with ESMTP id 1F941B5D80A for ; Wed, 10 Aug 2011 13:14:17 -0300 (ADT) Received: from mail.softperience.eu (static-ip-217-118-26-141.inaddr.intergenia.de [217.118.26.141]) by mail.softperience.eu (Postfix) with ESMTPA id A5B1AC0007A; Wed, 10 Aug 2011 18:13:59 +0200 (CEST) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Date: Wed, 10 Aug 2011 18:13:59 +0200 From: =?UTF-8?Q?Rados=C5=82aw_Smogura?= To: Alex Nordlund Cc: Subject: Re: Cannot create PoolableConnectionFactory (The connection attempt failed.) In-Reply-To: References: Message-ID: <34e79221191a14cc34765d519243eeab@mail.softperience.eu> X-Sender: rsmogura@softperience.eu User-Agent: Roundcube Webmail/0.5.1 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201108/29 X-Sequence-Number: 22061 Hi, Check your "access file" pga_hba.conf if it allows TCP/IP connections. By default psql connects on Unix socket try to connect using psql --host=127.0.0.0.1 --port=5432 -U crowd crowdiddb I this fail You probably didn't exposed TCP/IP access (or You have localhost firewall?). Regards, Radosław Smogura On Wed, 10 Aug 2011 13:53:59 +0100, Alex Nordlund wrote: > Hi, > > I get the following errors: > > INFO: Deploying configuration descriptor openidserver.xml > 2011-08-10 13:14:30,600 main WARN > [org.hibernate.util.JDBCExceptionReporter] SQL Error: 0, SQLState: > null > 2011-08-10 13:14:30,615 main ERROR > [org.hibernate.util.JDBCExceptionReporter] Cannot create > PoolableConnectionFactory (The connection attempt failed.) > 2011-08-10 13:14:30,618 main WARN [org.hibernate.cfg.SettingsFactory] > Could not obtain connection metadata > org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create > PoolableConnectionFactory (The connection attempt failed. > > And my Resource looks like this: > > type="javax.sql.DataSource" > username="crowd" > password="hiddenfortheml" > driverClassName="org.postgresql.Driver" > url="jdbc:postgresql://localhost:5432/crowdiddb" > /> > > > Am I doing something wrong? > > My username is crowd, it's set to only use MD5 auth, the DB is > crowdiddb and I can access it using psql. > > --- > //Alex