|
-
February 21st, 2000, 02:54 PM
#1
Simple RMI
I have been trying to run a simple RMI example from the Sun Java Tutorial. I am working on a Windows 95 laptop and I am trying to test the example using the localhost (server and client classes on the same computer). I have tried using the default port 1099 and have tried using some other ports. I have followed the steps in the Sun RMI tutorial and I get the following error message when I try to run the server program:
java.security.AccessControlException: access denied (java.net.SocketPermission 27.0.0.1:1024 connect,resolve)
I have a few questions:
1. When I start the RMI registry using 'start rmiregistry', it opens a new window and there is no output. Is there supposed to be output from the registry or do I just assume that it started correctly?
2. Why is the security manager returning this AccessControlException? Do I need to change any of my DNS settings? Do I have to set certain permissions for the port?
3. Do I need to have a Web Server installed?
Any help will be appreciated.
-
February 21st, 2000, 04:02 PM
#2
Re: Simple RMI
This same question was asked and answered in an earlier post. I found the post and read that I need to create a policy file that grants access to the port. I have been able to run the example successfully. Thanks for the help.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|