-
1. Re: Need help resolving java.security.AccessControlException
jborn2 Nov 14, 2005 3:08 PM (in response to dnatobyte)I just started to get this error also.
I would love an explaination of why. And how to get around. I've tried to grant all permission. Tried not running with security tried with default security. All give me the same message:
20:01:34,757 ERROR [org.apache.commons.modeler.Registry] Error registering Catalina:j2eeType=WebModule,name=//localhost/tunnel,J2EEApplication=none,J2EEServer=none
java.security.AccessControlException: Access denied (mx4j.server.MBeanTrustPermission register): MBean class org.apache.commons.modeler.BaseModelMBean is not trusted for registration
Can anyone help me past this? If not can you point me towards a forum that maybe able to help me out?
Thanks for the info -
2. Re: Need help resolving java.security.AccessControlException
jborn2 Nov 21, 2005 4:27 PM (in response to dnatobyte)Finally dawned on me what the problem was. Since I'm not using the security model under Tomcat I'm using what is provided by Java. It uses a file in JRE_HOME/lib/security called java.policy.
Edit and add the following:
grant {
permission mx4j.server.MBeanTrustPermission "register";
};
Hope that helps,
jb