X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 93EC1D1B50C for ; Wed, 17 Sep 2003 07:43:17 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 48780-07 for ; Wed, 17 Sep 2003 04:43:04 -0300 (ADT) Received: from rotanev.com (rotanev.com [216.121.191.254]) by svr1.postgresql.org (Postfix) with ESMTP id 2C1EFD1B509 for ; Wed, 17 Sep 2003 04:43:02 -0300 (ADT) Received: from terra.es (itc.step.es [194.179.71.9]) (authenticated) by rotanev.com Dinamail Server with ESMTPœ id h8GEwMe05878 for ; Tue, 16 Sep 2003 07:58:23 -0700 Message-ID: <3F67251A.3070209@terra.es> Date: Tue, 16 Sep 2003 15:58:34 +0100 From: Sergio Ramos User-Agent: Mozilla/5.0 (X11; U; Linux i686; es-ES; rv:1.2.1) Gecko/20030225 X-Accept-Language: es-es, es MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: Connection refused. HELP ME!!!! X-Enigmail-Version: 0.71.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-DinaScanner-Information: DinaScanner.. Filtro anti-Spam * anti-Virus X-DinaScanner: Libre de Virus X-DinaScanner-SpamCheck: no es spam, SpamAssassin (puntuación=-3.1, requerido 8, AWL, BAYES_10, PLING_PLING, USER_AGENT_MOZILLA_UA) X-Virus-Scanned: by amavisd-new at postgresql.org X-Amavis-Alert: BAD HEADER Non-encoded 8-bit data (char 9C hex) in message header 'Received' Received: ... Dinamail Server with ESMTP\234 id h8GEwMe0587... ^ X-Archive-Number: 200309/183 X-Sequence-Number: 8324 Hello. I have installed postgresql with de jdbc driver, but I can't run the example of the jdbc faq (http://www.fankhausers.com/postgresql/jdbc/). I obtain: ***Exception: Connection refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections. Connection refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections. at org.postgresql.jdbc1.AbstractJdbc1Connection.openConnection(AbstractJdbc1Connection.java:161) at org.postgresql.Driver.connect(Driver.java:120) at java.sql.DriverManager.getConnection(DriverManager.java:512) at java.sql.DriverManager.getConnection(DriverManager.java:171) at HelloPostgresql.(HelloPostgresql.java:34) at HelloPostgresql.main(HelloPostgresql.java:115) I have modified my pg_hba.conf(host all 127.0.0.1 255.0.0.0 trust), and my posgresql.conf(tcpip_socket = true) to admit tcp socket connections. What can I do? Thanks.