pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Dave Cramer <davec@postgresintl.com>
To: tgutierrez@unipamplona.edu.co
Cc: pgsql-jdbc@postgresql.org <pgsql-jdbc@postgresql.org>
Subject: Re: error - driver -- postgresql 7.4.2 --Suse 9.0
Date: Mon, 04 Oct 2004 19:06:22 -0400
Message-ID: <1096931182.1383.135.camel@localhost.localdomain> (raw)
In-Reply-To: <56307.64.76.58.174.1096930111.squirrel@correo.unipamplona.edu.co>
References: <56307.64.76.58.174.1096930111.squirrel@correo.unipamplona.edu.co>

Why are you using a 7.1 driver with a 7.4 database ?

that withstanding do you have tcpip=true in the postgresql.conf or the
-i flag in the startup script ?

Dave
On Mon, 2004-10-04 at 18:48, tgutierrez@unipamplona.edu.co wrote:
> greetings
> 
> I have the following error when connecting from tomcat, appears to me:
> 
> Err no se puedo cargar el driver en DefinitionConnectionPortal -->
> DefinitionConnectionPortal Cannot create PoolableConnectionFactory
> org.apache.commons.dbcp.SQLNestedException: Cannot create
> PoolableConnectionFactory, cause:
> Connection refused. Check that the hostname and port is correct, and that
> the postmaster is running with the -i flag, which enables TCP/IP
> networking.
>         at org.postgresql.Connection.openConnection(Connection.java:136)
>         at org.postgresql.Driver.connect(Driver.java:122)
>         at
> org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:82)
>         at
> org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:300)
>         at
> org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(BasicDataSource.java:838)
>         at
> org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:821)
>         at
> org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:518)
> 
> 
> driver that we used is: jdbc7.1-1.2.jar
> 
> thanks
> 
> Tania Gutierrez
> 
> 
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
-- 
Dave Cramer
519 939 0336
ICQ # 14675561
www.postgresintl.com




view thread (3+ messages)

Message-ID: <1096931182.1383.135.camel@localhost.localdomain>
Permalink:  ../1096931182.1383.135.camel@localhost.localdomain/
Also on:    postgresql.org/message-id/1096931182.1383.135.camel@localhost.localdomain

 · 

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: davec@postgresintl.com, tgutierrez@unipamplona.edu.co
  Subject: Re: error - driver -- postgresql 7.4.2 --Suse 9.0
  In-Reply-To: <1096931182.1383.135.camel@localhost.localdomain>
  References: <56307.64.76.58.174.1096930111.squirrel@correo.unipamplona.edu.co> <1096931182.1383.135.camel@localhost.localdomain>

* 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