• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

RMI Server Connection Problem on XP prof

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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/
-Djava.security.manager -Djava.security.policy=java.policy DSImpl 169.1.1.1 original.txt

Error on XP Prof:
java.security.AccessControlException: access denied
(java.net.SocketPermission 169.1.1.1:1099 connect,resolve)

My Policy file code is:
grant codeBase "file:/C:/server/"
{
permission java.io.FilePermission "original.txt", "read, write";
permission java.security.SecurityPermission "original.txt";
permission java.net.SocketPermission "169.1.1.1:1024-", "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 ]
 
Bartender
Posts: 4121
IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"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/
-Djava.security.manager -Djava.security.policy=java.policy DSImpl 169.1.1.1 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 ]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic