pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
error - driver -- postgresql 7.4.2 --Suse 9.0
3+ messages / 3 participants
[nested] [flat]

* error - driver -- postgresql 7.4.2 --Suse 9.0
@ 2004-10-04 22:48  tgutierrez@unipamplona.edu.co
  0 siblings, 2 replies; 3+ messages in thread

From: tgutierrez@unipamplona.edu.co @ 2004-10-04 22:48 UTC (permalink / raw)
  To: pgsql-jdbc

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





^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: error - driver -- postgresql 7.4.2 --Suse 9.0
@ 2004-10-04 23:01  Kris Jurka <books@ejurka.com>
  parent: tgutierrez@unipamplona.edu.co
  1 sibling, 0 replies; 3+ messages in thread

From: Kris Jurka @ 2004-10-04 23:01 UTC (permalink / raw)
  To: tgutierrez@unipamplona.edu.co; +Cc: pgsql-jdbc



On Mon, 4 Oct 2004 tgutierrez@unipamplona.edu.co wrote:

> greetings
> 
> I have the following error when connecting from tomcat, appears to me:

The error message is pretty clear:

> 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.

This message is perhaps outdated as the more recommended method of 
enabling tcp/ip connections is by enabling tcpip_socket in 
postgresql.conf.

> driver that we used is: jdbc7.1-1.2.jar

This is unrelated to your immediate problem, but if you are using a 7.4 
server you should also be using a 7.4 jdbc driver.

Kris Jurka



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: error - driver -- postgresql 7.4.2 --Suse 9.0
@ 2004-10-04 23:06  Dave Cramer <davec@postgresintl.com>
  parent: tgutierrez@unipamplona.edu.co
  1 sibling, 0 replies; 3+ messages in thread

From: Dave Cramer @ 2004-10-04 23:06 UTC (permalink / raw)
  To: tgutierrez@unipamplona.edu.co; +Cc: 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@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




^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2004-10-04 23:06 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2004-10-04 22:48 error - driver -- postgresql 7.4.2 --Suse 9.0 tgutierrez@unipamplona.edu.co
2004-10-04 23:01 ` Kris Jurka <books@ejurka.com>
2004-10-04 23:06 ` Dave Cramer <davec@postgresintl.com>

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