File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Distributed Java and the fly likes starting rmi Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Distributed Java
Reply Bookmark "starting rmi" Watch "starting rmi" New topic
Author

starting rmi

bschizop
Greenhorn

Joined: Jul 17, 2001
Posts: 1
i am a java student and i'm having problem running rmi. recently i wrote a simple rmi programme and followed all the directions in the book except creating .bat file because it is not in the book and i don't know how to do it either and i'm trying to run both the programme in one machine,i compile the server source code,created skeleton and stub files set classpath,started the rmi registry but when i run the server
programme i get the following message"Java.Security.AccessControl Exception:acess denied(java.net.socket permission 127.0.0.1:1099 connect resolve)" please direct me throughtly this thing is killing me because without this i'm moving now where.
bschizo
Frank Carver
Sheriff

Joined: Jan 07, 1999
Posts: 6913
"bschizop",
The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid confusion we have a naming convention, described at http://www.javaranch.com/name.jsp . We require names to have at least two words, separated by a space, and strongly recommend that you use your full real name. Please log in with a new name which meets the requirements.
Thanks.


A Convergent Visionary ~ Frank's Punchbarrel Blog ~ LinkedIn profile
Robert Philip
Greenhorn

Joined: Jun 06, 2001
Posts: 17
use a security policy file in your command line as
java -Djava.security.policy=policy.all YourServer
and make sure your instantiate the SecurityManager.
The policy.all file should something like :
grant {
permission java.security.AllPermission "", "";
};
 
 
subject: starting rmi
 
Threads others viewed
How to connect to server by java programme?
RMI registry service timeout
Running the RMI registry
PROBLEM IN RMI,APPLET SECURITY(URGENT)
RMI: missing _Stub
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com