Re: Connection failed

Поиск
Список
Период
Сортировка
От webmaster
Тема Re: Connection failed
Дата
Msg-id 960991174webmaster@nmb-it.net
обсуждение исходный текст
Ответ на Connection failed  (webmaster <webmaster@nmb-it.net>)
Список pgsql-jdbc
I solved!
The solution is to modify the tomcat.policy file in the conf directory. It needs to add this line:
// Replace XXX.XXX.XXX.XXX with the IP address of the remote web server
  permission java.net.SocketPermission "XXX.XXX.XXX.XXX:1024-","connect,accept,listen,resolve";

Thanks the same!


On Martedì, 2 luglio 2002 14:44, Steve Brett <SBrett@e-mis.com> wrote:
>i think you might need to check your pg_hba.conf file (in your data
>directory) and make sure there is an entry for the machine you are
>connecting from . also make sure postgres is started with the '-i' flag to
>accept tcp/ip connections ...
>
>Steve
>
>> -----Original Message-----
>> From: webmaster [mailto:webmaster@nmb-it.net]
>> Sent: 28 June 2002 16:35
>> To: pgsql-jdbc@postgresql.org
>> Subject: [JDBC] Connection failed
>>
>>
>> Hi
>>
>> I am using PostgreSQL 7.0.x Java2 driver on Linux Cobalt with
>> JSP web pages. When I connect to localhost I have no problem
>> but when I try to connect to Postgresql DB on another machine
>> it throws an exception, that is
>> java.security.AccessControlException which reports "access
>> denied". Does it depend on the driver or what else?
>> Thanks for your help.
>>
>> Agostino De Bellis
>>
>>
>>
>>
>>
>> ---------------------------(end of
>> broadcast)---------------------------
>> TIP 1: subscribe and unsubscribe commands go to
>> majordomo@postgresql.org
>>
>>
>
>
>
>---------------------------(end of broadcast)---------------------------
>TIP 2: you can get off all lists at once with the unregister command
>    (send "unregister YourEmailAddressHere" to
>majordomo@postgresql.org)
>
>
>





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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: not able to fetch from refcursor
Следующее
От: Dror Matalon
Дата:
Сообщение: Servlet uplad with Multipart and LO