• CentsOS6 Tomcat7 报javax.management.InstanceNotFoundException 解决办法


    警告: Failed to unregister MBean with name [Catalina:j2eeType=Servlet,name=UploadServlet,WebModule=//localhost/,J2EEApplication=none,J2EEServer=none] during component destruction

    javax.management.InstanceNotFoundException: Catalina:j2eeType=Servlet,name=UploadServlet,WebModule=//localhost/,J2EEApplication=none,J2EEServer=none

            at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getMBean(DefaultMBeanServerInterceptor.java:1095)

            at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.exclusiveUnregisterMBean(DefaultMBeanServerInterceptor.java:427)

            at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.unregisterMBean(DefaultMBeanServerInterceptor.java:415)

            at com.sun.jmx.mbeanserver.JmxMBeanServer.unregisterMBean(JmxMBeanServer.java:546)

            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.ContainerBase.destroyInternal(ContainerBase.java:1247)

            at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:305)

            at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:1041)

            at org.apache.catalina.core.StandardContext.removeChild(StandardContext.java:4123)

            at org.apache.catalina.startup.ContextConfig.configureStop(ContextConfig.java:941)

            at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:395)

            at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)

            at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)

            at org.apache.catalina.core.Stand

    解决办法:

    jdk的jre/lib/security/java.policy 里加上

    permission javax.management.MBeanTrustPermission "register";

    另外就是要kill 掉所有tomcat的进程,使用 ./shutdown.sh -force

    重启OK!

  • 相关阅读:
    Gevent高并发网络库精解
    python多线程参考文章
    python多线程
    进程与线程
    golang 微服务以及相关web框架
    微服务实战:从架构到发布
    python 常用库收集
    总结数据科学家常用的Python库
    20个最有用的Python数据科学库
    自然语言处理的发展历程
  • 原文地址:https://www.cnblogs.com/gaobo543013306/p/8679243.html
Copyright © 2020-2023  润新知