From: | Kris Jurka <books(at)ejurka(dot)com> |
---|---|
To: | adp adp <adp_group2004(at)yahoo(dot)co(dot)in> |
Cc: | <pgsql-jdbc(at)postgresql(dot)org> |
Subject: | Re: connectivity problem |
Date: | 2004-01-30 05:54:34 |
Message-ID: | Pine.LNX.4.33.0401300049420.10418-100000@leary.csoft.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-jdbc |
> and here is the error I receive :
>
> Exception
> The connection attempt failed because Exception:
> java.net.UnknownHostException: localhost
> Stack Trace:
>
Java cannot resolve the IP address for localhost. This is a general
network configuration problem unrelated to postresql. Please check your
/etc/hosts file, you should have a line like
127.0.0.1 localhost
in it. You can test that this is working by trying to ping localhost and
verifying that it correctly resolves. Another option would be to
explicitly specify the IP address in the connection url.
Kris Jurka
From | Date | Subject | |
---|---|---|---|
Next Message | Email User | 2004-01-30 06:37:20 | org.postgresql.core.QueryExecutor.execute not responding (Deadlock ?) |
Previous Message | adp adp | 2004-01-30 05:46:59 | connectivity problem |