Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem with policy file, rmi activation

 
Con Lu
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am new to RMI, and have been working through the examples in Sun's docs.
When running the RMI activation example, problems first begin when I type the following at the command line:
rmid -J-Djava.security.policy=rmid.policy
After typing the above I get the following warning:-
"Activation.main: warning: sun.rmi.activation.execPolicy system property unspecified and no ExecPermissions/ExecOption Permissions granted; subsequent activation attempts may fail due to unsucessful ExecPermission/ExecOptionPermission permission checks. For documentation on how to configure rmid security, refer to
http://java.sun.com/j2se/1.4/docs/tooldocs/win32/rmid.html"
Note after this I continue to try and run the Setup program but unsuccessfully, the exception trace being a java.security.AccessControlException
Note that I am using Windows 2000. I have also compiled all the classes, stubs in the one directory from which I am running the registry,rmid etc . The policy file is in the same directory.
The policy file reads as follows:-
grant {
// Allow everything for now
permission java.security.AllPermission;
};

Any help would be much appreciated,
Thanks
 
Michael Ernest
High Plains Drifter
Sheriff
Posts: 7292
Netbeans IDE VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm a little fuzzy on memory here, but try setting sun.rmi.activation.execPolicy=none and see if that changes the picture at all.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!