From: | Dave Cramer <davec(at)postgresintl(dot)com> |
---|---|
To: | tgutierrez(at)unipamplona(dot)edu(dot)co |
Cc: | "pgsql-jdbc(at)postgresql(dot)org" <pgsql-jdbc(at)postgresql(dot)org> |
Subject: | Re: error - driver -- postgresql 7.4.2 --Suse 9.0 |
Date: | 2004-10-04 23:06:22 |
Message-ID: | 1096931182.1383.135.camel@localhost.localdomain |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-jdbc |
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(at)unipamplona(dot)edu(dot)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
From | Date | Subject | |
---|---|---|---|
Next Message | Jeffrey Tenny | 2004-10-04 23:17:03 | ResultSet.getBinaryStream nothing more than a ResultSet.getBytes() call? |
Previous Message | Kris Jurka | 2004-10-04 23:01:04 | Re: error - driver -- postgresql 7.4.2 --Suse 9.0 |