Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RMI in 1.2
- From: sever@xxxxxxxxxxxx (sever)
- Subject: RMI in 1.2
- Date: Sun, 23 May 1999 13:23:54 +0300
This is a multi-part message in MIME format.
--------------F36863F67C11BFD815FABC53
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
To make the RMI stuff work you have to specify a more "relaxed" policy file, as
the one you've mentioned ain't so.
You'll find one attached that just gives all permissions to everyone.
It worked for me.
By,
Sever.
Reuben Firmin wrote:
> Hi, I've just upgraded the JDK on one of my servers to 1.2, and of course
> the RMI stuff broke because of the security differences (I get the
> exception:
> java.rmi.ConnectException: Connection refused to host: 216.33.44.33; nested
> exce
> ption is:
> java.net.ConnectException: Connection refused
> java.net.ConnectException: Connection refused
> at java.net.PlainSocketImpl.socketConnect(Native Method)
> at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
> at
> java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:125)
> at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:112) )
>
> I remembered to add the lines to the java.policy file (in
> /usr/java/jre/lib/security) and point my app to it (it is called using the
> runtime property: java -Djava.security.policy=java.policy), but the
> exception remains. Can anybody please show me where I'm going wrong?
>
> Thanks
> Reuben Firmin
> Internet/Java Developer, Liveonline.net
> w. 212 741 3653 x19
> h. 212 974 2352
>
> ---
> To unsubscribe, mail advanced-java-unsubscribe@xxxxxxxxxxxxxxxx
> To get help, mail advanced-java-help@xxxxxxxxxxxxxxxx
--------------F36863F67C11BFD815FABC53
Content-Type: text/plain; charset=us-ascii;
name="policy"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="policy"
grant {
// Allow everything for now
permission java.security.AllPermission;
};
--------------F36863F67C11BFD815FABC53--
---
To unsubscribe, mail advanced-java-unsubscribe@xxxxxxxxxxxxxxxx
To get help, mail advanced-java-help@xxxxxxxxxxxxxxxx
- Prev by Date: Static inner class
- Next by Date: Signed Applet in Netscape
- Previous by thread: Static inner class
- Next by thread: Signed Applet in Netscape
- Index(es):