Re: postgresql JDBC error

Поиск
Список
Период
Сортировка
От Nick Fankhauser
Тема Re: postgresql JDBC error
Дата
Msg-id NEBBLAAHGLEEPCGOBHDGOELBECAA.nickf@ontko.com
обсуждение исходный текст
Ответ на postgresql JDBC error  (Lloyd Holman <u59884@ee.port.ac.uk>)
Ответы Re: postgresql JDBC error  ("Paulo Merson" <paulo@summa-tech.com>)
Список pgsql-jdbc
Hi Lloyd-

It sounds like maybe you need to add a line to your pg_hba.conf file to
authorize the connection. (Remember that if you are running Tomcat, the user
that Tomcat connects as may be different from the user you develop as...)

The low-security-but-make-it-work approach would be to add this line:

host all 127.0.0.1 255.0.0.0 trust

This assumes you are on the same machine.

Look at this FAQ for more details:

http://www.fankhausers.com/postgresql/jdbc/welcome.html#tcpip

-Nick

--------------------------------------------------------------------------
Nick Fankhauser  nickf@ontko.com  Phone 1.765.935.4283  Fax 1.765.962.9788
Ray Ontko & Co.     Software Consulting Services     http://www.ontko.com/

> -----Original Message-----
> From: pgsql-jdbc-owner@postgresql.org
> [mailto:pgsql-jdbc-owner@postgresql.org]On Behalf Of Lloyd Holman
> Sent: Wednesday, January 09, 2002 11:33 AM
> To: pgsql-jdbc@postgresql.org
> Subject: [JDBC] postgresql JDBC error
>
>
> Hi everyone,
>
> this is my first mail to this mailing list.  I was wondering if anyone
> encountered this error when trying to establish a JDBC connection to a
> postgresql database?
>
> "SQLException caught: Something unusual has occured to cause the driver
> to fail. Please report this exception:
> java.security.AccessControlException: access denied
> (java.net.SocketPermission localhost resolve)"
>
> is it a corrupt database?
>
> by the way the server is running redhat 6.x, apache and tomcat 3.x
>
> Thanks in advance
> Lloyd Holman
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo@postgresql.org so that your
> message can get through to the mailing list cleanly
>


В списке pgsql-jdbc по дате отправления:

Предыдущее
От: Barry Lind
Дата:
Сообщение: Re: [GENERAL] Storing/retreiving Large Objects
Следующее
От: "Dave Cramer"
Дата:
Сообщение: Re: postgresql JDBC error