> 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