首页 > 编程语言 > 详细

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

时间:2015-03-26 01:43:10      阅读:19336      评论:0      收藏:0      [点我收藏+]

tomcat突然启动不了,报错:


警告: 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

然后怎么tomcat都启动不了,查了半天,找到解决办法:

http://forum.spring.io/forum/other-spring-related/ejb/5542-application-on-tomcat-calling-some-ejb-s-on-weblogic

就是

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

permission javax.management.MBeanTrustPermission "register";


重启OK!

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

原文:http://pavehawk.blog.51cto.com/2921617/1624333

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!