Connection refused. HELP ME!!!! - Mailing list pgsql-jdbc

From Sergio Ramos
Subject Connection refused. HELP ME!!!!
Date
Msg-id 3F67251A.3070209@terra.es
Whole thread Raw
Responses Re: Connection refused. HELP ME!!!!
List pgsql-jdbc
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.<init>(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.


pgsql-jdbc by date:

Previous
From: Barry Lind
Date:
Subject: Re: ToBoolean method return correct Boolean values as per
Next
From: Barry Lind
Date:
Subject: Re: Fix for receiving empty query errors.