problem in rmi security
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Abdul_Kareem
Posted On:   Tuesday, March 4, 2003 09:36 PM

Enter your full question here Please use html tags to format code blocks. in rmi, i have done the program,its compile but doesn't run.. its show security related error... this is my policy file //pp.policy grant { permission java.net.SocketPermission "*:1300","connect"; }; I started rmiregistry and then i execute by this below method. java -Djava.security.policy=d: mi1pp.policy Menu but the output shows java. security.AccessControl exception: access denied(java.lang.RuntimePermission CreateSecuity Manager. please solve my problem, and how to execute ? is there a   More>>

Enter your full question here


Please use html tags to format code blocks.


in rmi, i have done the program,its compile but doesn't run..
its show security related error...

this is my policy file
//pp.policy
grant
{
permission java.net.SocketPermission
"*:1300","connect";
};

I started rmiregistry and then i execute by this below method.
java -Djava.security.policy=d:
mi1pp.policy Menu

but the output shows
java. security.AccessControl exception: access denied(java.lang.RuntimePermission CreateSecuity Manager.

please solve my problem,
and how to execute ?
is there any wrong.

   <<Less

Re: problem in rmi security

Posted By:   Maher_Itani  
Posted On:   Friday, March 28, 2003 06:38 AM

save this code as java.policy and try it instead of pp.policy:


grant {
permission java.net.SocketPermission "*:1024-65535","connect,accept";
permission java.net.SocketPermission "*:80" , "connect" ;
};

About | Sitemap | Contact