aspose file tools*
The moose likes Servlets and the fly likes AccessControlException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "AccessControlException" Watch "AccessControlException" New topic
Author

AccessControlException

Sharon Bose
Greenhorn

Joined: Jul 19, 2005
Posts: 4
hai
when i am trying to call a jini application from my jsp page or any page that is run by servlet container it is giving the following exception
java.security.AccessControlException: access denied (java.lang.RuntimePermission accessDeclaredMembers)
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:269)
at java.security.AccessController.checkPermission(AccessController.java:401)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:524)
at java.lang.SecurityManager.checkMemberAccess(SecurityManager.java:1637)
when i am running the jini application by creating a test class with one main method it works fine
i m using tomcat 5 as webserver
for the jini application i have given security permission as
grant {
permission java.security.AllPermission;
};
within a policy file
can any one help me with this
 
jQuery in Action, 2nd edition
 
subject: AccessControlException