tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael L Apperson <>
Subject MBean register error in Tomcat 7
Date Thu, 06 Mar 2014 14:46:04 GMT
I am running a Tomcat 7.0.27 web server on Redhat EL 2.6.32 X86-64 Linux OS with Java 
1.7.0_45 and seeing a very unusual error in my web app. 
The web.xml for the web app defines a startup servlet with a property of "load on startup"

and this servlet extends HttpServlet and implements the init() method. 
Within the init method a callout is made to a static method in a utility class 
which initializes a JMS connection to a WebLogic app server hosted on the network. 

The error below occurs when the web app is started.
I can remove the JMS utility class initialization from the servlet init context and 
relocate into the servlet business code in the doGet() method and the errors don't occur;
web app responds normally. 
It is preferable to perform the JMS init within the servlet init to identify external service
problems up front, 
but I have been unable to resolve this error.

I found a blog on the subject which recommended adding 
grant {
permission "register";
};  to the conf/catalina.policy file. Tried this and was no help.

It is also curious that the container would attempt to register the web app as an MBean, 
since the app is not JMX compliant. Any help would be greatly appreciated.

Stack trace of error:
org.apache.tomcat.util.modeler.Registry registerComponent
SEVERE: Error registering
Standalone:type=JspMonitor,name-jsp,Webmodule=/localhost/MyTestApp,J2EEApplication=none,J2EEServer=none access denied(""
at java.lang.SecurityManager.checkPermissions(
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.checkMBeanTrustPermission(
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(
at com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(
at org.apache.tomcat.util.modeler.Registry.registerComponent(
at org.apache.catalina.core.StandardWrapper.load(
at org.apache.catalina.core.StandardContext.loadOnStartup(
at org.apache.catalina.core.StandardContext.startInternal(
at org.apache.catalina.util.LifecycleBase.start(
at org.apache.catalina.core.ContainerBase$
at org.apache.catalina.core.ContainerBase$
at java.util.concurrent.ThreadPoolExecutor.runWorker(
at java.util.concurrent.ThreadPoolExecutor$

thanks in advance

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message