pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Radosław Smogura <rsmogura@softperience.eu>
To: Alex Nordlund <deep.alexander@gmail.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Cannot create PoolableConnectionFactory (The connection attempt failed.)
Date: Wed, 10 Aug 2011 18:13:59 +0200
Message-ID: <34e79221191a14cc34765d519243eeab@mail.softperience.eu> (raw)
In-Reply-To: <CADD7sv05qonb3fejukgfOdnqxb6PascaNzSBVQS5WCZqF7jXOQ@mail.gmail.com>
References: <CADD7sv05qonb3fejukgfOdnqxb6PascaNzSBVQS5WCZqF7jXOQ@mail.gmail.com>

 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:
>
>     <Resource name="jdbc/CrowdIDDS" auth="Container"
> 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




view thread (9+ messages)  latest in thread

Message-ID: <34e79221191a14cc34765d519243eeab@mail.softperience.eu>
Permalink:  ../34e79221191a14cc34765d519243eeab@mail.softperience.eu/
Also on:    postgresql.org/message-id/34e79221191a14cc34765d519243eeab@mail.softperience.eu

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: rsmogura@softperience.eu, deep.alexander@gmail.com
  Subject: Re: Cannot create PoolableConnectionFactory (The connection attempt failed.)
  In-Reply-To: <34e79221191a14cc34765d519243eeab@mail.softperience.eu>
  References: <CADD7sv05qonb3fejukgfOdnqxb6PascaNzSBVQS5WCZqF7jXOQ@mail.gmail.com> <34e79221191a14cc34765d519243eeab@mail.softperience.eu>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox