Please Help!
Hi there,
When I start rmi registry, I got "security properties not found.using defaults" message. Then, starting the server and I got "HelloServer bound in registry". But, when I started appletviewer, I got "access denied".
....
at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
.....
Would anyone tell me why and how to correct it?
Thanks a lot.
[408 byte] By [
leon5wu] at [2007-9-26 2:01:17]

Hi ,
> When you start appletviewer access denied.
Generally this type of problems occurs in applet. For this you have to use Policy File which is created by Policy tool command.
Here is the code for the general policy file:
grant {
permission java.net.SocketPermission "*:1024-65535",
"connect,accept";
permission java.net.SocketPermission "*:80", "connect";
};
Please see the following URL, on how to run the appletviewer with policy file.
http://java.sun.com/docs/books/tutorial/rmi/running.html
Also please refer this URL in order to know more about the policy file
http://java.sun.com/docs/books/tutorial/security1.2/tour1/index.html
I hope this will help you.
Thanks
Bakrudeen
Seems like you're NOT running a Sun copy of RMIREGISTRY.
If you install Oracle products (esp. JIinitiator) on your laptop before, be sure to check your classpath to ensure that SUN path comes before Oracle path (C:\j2sdk1.4.0\bin\ in my case).
Believe it or not, I even found a RMIREGISTRY under my NetZero\bin directory.
Hope that helps,