This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Distributed Java and the fly likes RMI Server Connection Problem on XP prof Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "RMI Server Connection Problem on XP prof" Watch "RMI Server Connection Problem on XP prof" New topic

RMI Server Connection Problem on XP prof


Joined: May 23, 2005
Posts: 3
When i run the following code to up thr RMI server on Win 98, it works fine but same on XP Prof doesn't work !!!

Code: java -Djava.rmi.server.codebase=file:///C:/serverstorage/ DSImpl original.txt

Error on XP Prof: access denied
( connect,resolve)

My Policy file code is:
grant codeBase "file:/C:/server/"
permission "original.txt", "read, write";
permission "original.txt";
permission "", "accept, connect, listen, resolve";
permission java.lang.RuntimePermission "modifyThreadGroup";
permission java.lang.RuntimePermission "modifyThread";

How Can solve this problem ?
[ May 25, 2005: Message edited by: Dimple ]
Nathan Pruett

Joined: Oct 18, 2000
Posts: 4121

"Dimple" -

Welcome to the JavaRanch! Please adjust your displayed name to meet the
JavaRanch Naming Policy. User names cannot be obviously fake and must constist of a first name and a last name.

You can change your user name here.

Could the two different codebases have something to do with this?

java -Djava.rmi.server.codebase=file:///C:/serverstorage/ DSImpl original.txt

grant codeBase "file:/C:/server/"

Also, since this is the same question you had a few days ago, why didn't you just post the additional information in that thread? I'll close the other thread since this one contains more info.

Thanks! and welcome to the JavaRanch!
[ May 26, 2005: Message edited by: Nathan Pruett ]

Write once, run anywhere, because there's nowhere to hide! - /. A.C.
Consider Paul's rocket mass heater.
subject: RMI Server Connection Problem on XP prof