aspose file tools
The moose likes Distributed Java and the fly likes RMI Server connection problem on XP ? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Distributed Java
Reply locked New topic
Author

RMI Server connection problem on XP ?

Dimple
Greenhorn

Joined: May 23, 2005
Posts: 3
when i complie the following code on W98 it works fine but if i run this code on XP, its giving the error !!!

code:
java -Djava.rmi.server.codebase=file:/C:\serverstorage/ -Djava.security.manager -Djava.security.policy=java.policy DSImpl 169.1.1.1 data.txt

Error:
Server Exception : java.security.AccessControlException: access denied (java.net
.SocketPermission 169.1.1.1:1099 connect,resolve)

How to solve this problem ?
Nathan Pruett
Bartender

Joined: Oct 18, 2000
Posts: 4121

"Dimple Simple" -

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.

What's in your security policy file? All permissions or have you set specific permissions? Are the JVMs the same version on both machines?

Also, I'm not sure if this affects the problem you are having any or not, but the URL in your java.rmi.server.codebase property should look like -



Thanks! and welcome to the JavaRanch!


-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
Nathan Pruett
Bartender

Joined: Oct 18, 2000
Posts: 4121

This is a copy of this thread. Closing this one as the other has more information.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: RMI Server connection problem on XP ?
 
Similar Threads
Oracle 10g XE can not be started
tomcat5, server not found
RMI Server Connection Problem on XP prof
Weblogic on Windows XP
Server socket in XP Home