Re: Connection failed

From: webmaster <webmaster(at)nmb-it(dot)net>
To: <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: Connection failed
Date: 2002-07-02 15:13:44
Message-ID: 960991174webmaster@nmb-it.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)e-mis(dot)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(at)nmb-it(dot)net]
>> Sent: 28 June 2002 16:35
>> To: pgsql-jdbc(at)postgresql(dot)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(at)postgresql(dot)org
>>
>>
>
>
>
>---------------------------(end of broadcast)---------------------------
>TIP 2: you can get off all lists at once with the unregister command
> (send "unregister YourEmailAddressHere" to
>majordomo(at)postgresql(dot)org)
>
>
>

Browse pgsql-jdbc by date

  From Date Subject
Next Message Dror Matalon 2002-07-02 16:28:17 Servlet uplad with Multipart and LO
Previous Message Tom Lane 2002-07-02 13:34:28 Re: not able to fetch from refcursor