X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 9DE83329E01 for ; Tue, 5 Oct 2004 00:03:35 +0100 (BST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 92999-03 for ; Mon, 4 Oct 2004 23:03:29 +0000 (GMT) Received: from net2.micro-automation.com (net2.micro-automation.com [64.7.141.29]) by svr1.postgresql.org (Postfix) with SMTP id CA7FA329D76 for ; Tue, 5 Oct 2004 00:03:30 +0100 (BST) Received: (qmail 30335 invoked from network); 4 Oct 2004 23:04:22 -0000 Received: from dcdsl.ebox.com (HELO ?192.168.1.36?) (davec@64.7.143.116) by net2.micro-automation.com with SMTP; 4 Oct 2004 23:04:22 -0000 Subject: Re: error - driver -- postgresql 7.4.2 --Suse 9.0 From: Dave Cramer Reply-To: davec@postgresintl.com To: tgutierrez@unipamplona.edu.co Cc: "pgsql-jdbc@postgresql.org" 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> Content-Type: text/plain Organization: Postgres International Message-Id: <1096931182.1383.135.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Mon, 04 Oct 2004 19:06:22 -0400 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200410/8 X-Sequence-Number: 11113 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