AccessControlException When Running an Applicare Server with Java 7
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.
Please sign in to leave a comment.
Comments
0 comments