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
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:
permission mx4j.server.MBeanTrustPermission "register";
Hope that helps,