The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
July 2001

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

Use security policy

Posted by Amit Dubey on July 31, 2001 at 3:23 PM

> Hi,
> When I am running a servlet in a remote machine which uses socket in Frames(in an applet) I am getting the following error:"exception:com.ms.security.SecurityExceptionEx[XXXXFrame.]:cannot access XXXX. I also have a Firewall running in the environment.


You have to use -Djava.security.policy=java.policy, when compiling the servlet class,where java.policy is the security file where u give access permission.
This link might be helpful
http://java.sun.com/docs/books/tutorial/rmi/running.html



Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us