This page last changed on May 23, 2006 by david.soul@atlassian.com.

When you attempt to run Confluence, you may get the following error:

java.security.AccessControlException: access denied (java.lang.RuntimePermission accessDeclaredMembers)
        at java.security.AccessControlContext.checkPermission(AccessControlContext.java(Compiled Code))
        at java.security.AccessController.checkPermission(AccessController.java(Compiled Code))
        at java.lang.SecurityManager.checkPermission(SecurityManager.java(Compiled Code))

Some of the libraries Confluence relies on to function make use of features of the Java language that may be restricted by Java security policies. This does not normally cause any problems: the default security configuration of most application servers will happily run Confluence. However, in some shared-hosting or enterprise environments, security settings may be such that Confluence can not function.

The permissions required by Confluence to run are detailed in the sample policy file below. You may need to give this information to your systems administrator so that they can be deployed with the Confluence application.

grant codeBase "file:${catalina.home}/webapps/confluence/-" {
permission java.security.AllPermission;
};

grant {
permission java.lang.RuntimePermission "accessDeclaredMembers";
permission java.lang.reflect.ReflectPermission "suppressAccessChecks";
permission java.lang.RuntimePermission "defineCGLIBClassInJavaPackage";
};

In case that matters, I am the one who reported the issue, and my environment is a server running tomcat 4.1.27 as taken from Debian unstable.

Posted by jerome@coffeebreaks.org at Aug 05, 2004 02:53

"  should be "

Posted by scud at Dec 06, 2005 10:33

Is there any work around to solve this problem(eg. cut the feature that cause this problem)? The administrator refuse to change the policy file.

Posted by zhlmmc at Jan 12, 2007 16:57

Please see:

http://forums.atlassian.com/thread.jspa?forumID=96&threadID=15101

Regards,
Mei

Posted by meiyan.chan@atlassian.com at Jan 14, 2007 23:53
Document generated by Confluence on Mar 22, 2007 20:58