AccessControlException When Running an Applicare Server with Java 7

Community post

Shared by the Applicare community. It has not been re-checked against Applicare 10.0, so confirm the steps in your environment or contact Support.

You may run into the following AccessControlException when running Applicare server with Java 7:

May 10, 2014 3:44:51 PM org.apache.tomcat.util.modeler.Registry registerComponent

SEVERE: Error registering Catalina:type=RequestProcessor,worker=http-8880,name=HttpRequest8

java.security.AccessControlException: access denied (javax.management.MBeanTrustPermission register)

        at java.security.AccessControlContext.checkPermission(AccessControlContext.java:374)

        at java.lang.SecurityManager.checkPermission(SecurityManager.java:568)

        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.checkMBeanTrustPermission(DefaultMBeanServerInterceptor.java:1824)

        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.java:310)

        at com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBeanServer.java:483)

        at org.apache.tomcat.util.modeler.Registry.registerComponent(Registry.java:805)

        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.register(Http11Protocol.java:651)

        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.createProcessor(Http11Protocol.java:634)

        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:569)

        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)

        at java.lang.Thread.run(Thread.java:662)

May 10, 2014 3:44:51 PM org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler register

WARNING: Error registering request

Reason and fix:

Java is using the default security model,  and it uses a file in JRE_HOME/lib/security called java.policy. Edit this file and add the following:

grant {
permission mx4j.server.MBeanTrustPermission "register";

permission javax.management.MBeanTrustPermission "register";
};

Restart the Applicare server after making the changes and the AccessControlException should be resolved.

Join the discussion

Comments, voting and following are kept by Zendesk and need a Help Center account. This button opens the original discussion there.

Opens Zendesk · needs internet and sign-in

Still stuck? Contact support