Created attachment 31086 [details] Example server.xml that causes the problem. I needed to have my web services on a different port than or applicative port. To do so, I added a new service in the server.xml file and all works fine except that when I shutdown Tomcat, I get several warnings with this exception: WARNING: Failed to unregister MBean with name [Catalina:type=Service] during component destruction javax.management.InstanceNotFoundException: Catalina:type=Service at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getMBean(Unknown Source) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.exclusiveUnregisterMBean(Unknown Source) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.unregisterMBean(Unknown Source) at com.sun.jmx.mbeanserver.JmxMBeanServer.unregisterMBean(Unknown Source) at org.apache.catalina.util.LifecycleMBeanBase.unregister(LifecycleMBeanBase.java:194) at org.apache.catalina.util.LifecycleMBeanBase.destroyInternal(LifecycleMBeanBase.java:73) at org.apache.catalina.core.StandardService.destroyInternal(StandardService.java:596) at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:304) at org.apache.catalina.core.StandardServer.destroyInternal(StandardServer.java:822) at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:304) at org.apache.catalina.startup.Catalina.stop(Catalina.java:743) at org.apache.catalina.startup.Catalina.start(Catalina.java:704) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:322) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:450)
Two Engines have been named same "Catalina". Doc said "When using multiple Service elements in the same Server, each Engine MUST be assigned a unique name.". http://tomcat.apache.org/tomcat-7.0-doc/config/engine.html#Attributes
Ok, thank you. I'll go and resolve the bug.