A
Andy
I am a java newbie and was trying my hand at RMI. I have an interface,
a server implementing that interface and a utility class with "public
static void main" to register the server class. I also have a client,
which calls the server using Naming.lookup(...) and calls methods on
it.
Of course, before binding the server I start the rmiregistry on my
local machine, without specifying the port and by specifying the
following option:
-J-Djava.security.policy=E:\mydir\...\rmiserver.policy
Later, when I try to register the server, the registration fails with
an access denied error on localhost:1099.
The policy file I am using is simple:
grant{
permission java.security.AllPermissions;
};
Any pointers would be greatly appreciated.
IMP: I am facing this problem on my Linux box. Whereas on my Windows,
a similar program runs without cribs. (No advocacy meant for Windows.)
Cheers,
Andy
a server implementing that interface and a utility class with "public
static void main" to register the server class. I also have a client,
which calls the server using Naming.lookup(...) and calls methods on
it.
Of course, before binding the server I start the rmiregistry on my
local machine, without specifying the port and by specifying the
following option:
-J-Djava.security.policy=E:\mydir\...\rmiserver.policy
Later, when I try to register the server, the registration fails with
an access denied error on localhost:1099.
The policy file I am using is simple:
grant{
permission java.security.AllPermissions;
};
Any pointers would be greatly appreciated.
IMP: I am facing this problem on my Linux box. Whereas on my Windows,
a similar program runs without cribs. (No advocacy meant for Windows.)
Cheers,
Andy