File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Applets and the fly likes policy file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "policy file" Watch "policy file" New topic
Author

policy file

jayashri hosur
Greenhorn

Joined: Jun 05, 2008
Posts: 8
coping folder with subfolder and files from one location to other i did this using applet but i want to run this using jboss server but i am getting access denied error i included the policy file as below but still getting access denied error please help me
grant {
permission java.io.FilePermission "<<ALL FILES>>","write" "read";

permission java.security.AllPermission "", "";
};
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41114
    
  45
What do you mean by "include" - where is this policy file? How are you telling JBoss to use it?


Ping & DNS - my free Android networking tools app
jayashri hosur
Greenhorn

Joined: Jun 05, 2008
Posts: 8
i kept that policy file in my home directory.
i am doing web application using jsf ,there when i type url like http://localhost:8080//webapplication/applet.html i am not able to get the gui corresponding to that applet .i am embedding this applet in html
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

"srusti",
Please check your private messages.
-Ben


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

"srusti",
Welcome to JavaRanch!

We're pleased to have you here with us here on the ranch, but there are a few rules that need to be followed, and one is that proper names are required. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious. Initials are OK for the first and middle names but not the last. You can change it here
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41114
    
  45
I'm just noticing that you have missed out policy on screen names here at JavaRanch. Basically, it must consist of a first name, a space, and a last name, and not be obviously fictitious. Since yours does not conform with it, please take a moment to change it, which you can do right here.

As to your question, you need to install that policy file system wide. See here for how that's done.
 
jQuery in Action, 2nd edition
 
subject: policy file
 
Similar Threads
RMI access error
policy file
Why does AccessControlException happen? Please help me!
Java-2 security error Codebase is null
applet security exception