点击这里给我发邮件
点击这里给我发消息

不要盲目部署,可能旧环境还在

1、错误描述

 

严重: A child container failed during startjava.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/smp]]	at java.util.concurrent.FutureTask.report(FutureTask.java:122)	at java.util.concurrent.FutureTask.get(FutureTask.java:188)	at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1123)	at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:816)	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1575)	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1565)	at java.util.concurrent.FutureTask.run(FutureTask.java:262)	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)	at java.lang.Thread.run(Thread.java:745)Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/smp]]	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)	... 6 moreCaused by: java.lang.NoClassDefFoundError: org/springframework/web/context/WebApplicationContext	at java.lang.Class.getDeclaredFields0(Native Method)	at java.lang.Class.privateGetDeclaredFields(Class.java:2436)	at java.lang.Class.getDeclaredFields(Class.java:1806)	at org.apache.catalina.util.Introspection.getDeclaredFields(Introspection.java:106)	at org.apache.catalina.startup.WebAnnotationSet.loadFieldsAnnotation(WebAnnotationSet.java:270)	at org.apache.catalina.startup.WebAnnotationSet.loadApplicationServletAnnotations(WebAnnotationSet.java:139)	at org.apache.catalina.startup.WebAnnotationSet.loadApplicationAnnotations(WebAnnotationSet.java:65)	at org.apache.catalina.startup.ContextConfig.applicationAnnotationsConfig(ContextConfig.java:403)	at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:879)	at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:374)	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.StandardContext.startInternal(StandardContext.java:5378)	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)	... 6 moreCaused by: java.lang.ClassNotFoundException: org.springframework.web.context.WebApplicationContext	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1720)	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1571)	... 20 more七月 11, 2015 1:40:29 下午 org.apache.catalina.core.ContainerBase startInternal严重: A child container failed during startjava.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost]]	at java.util.concurrent.FutureTask.report(FutureTask.java:122)	at java.util.concurrent.FutureTask.get(FutureTask.java:188)	at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1123)	at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:300)	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)	at org.apache.catalina.core.StandardService.startInternal(StandardService.java:443)	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)	at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:739)	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)	at org.apache.catalina.startup.Catalina.start(Catalina.java:689)	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	at java.lang.reflect.Method.invoke(Method.java:606)	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:321)	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:455)Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost]]	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1575)	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1565)	at java.util.concurrent.FutureTask.run(FutureTask.java:262)	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)	at java.lang.Thread.run(Thread.java:745)Caused by: org.apache.catalina.LifecycleException: A child container failed during start	at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1131)	at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:816)	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)	... 6 more七月 11, 2015 1:40:29 下午 org.apache.catalina.startup.Catalina start严重: The required Server component failed to start so Tomcat is unable to start.org.apache.catalina.LifecycleException: Failed to start component [StandardServer[8005]]	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)	at org.apache.catalina.startup.Catalina.start(Catalina.java:689)	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	at java.lang.reflect.Method.invoke(Method.java:606)	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:321)	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:455)Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardService[Catalina]]	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)	at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:739)	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)	... 7 moreCaused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina]]	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)	at org.apache.catalina.core.StandardService.startInternal(StandardService.java:443)	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)	... 9 moreCaused by: org.apache.catalina.LifecycleException: A child container failed during start	at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1131)	at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:300)	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)	... 11 more

2、错误原因

 

     一般情况下,通过Caused by后面的描述可知,导致出错的原因,但是实际有些错误并不是这样。这个错误通过“Caused by: java.lang.NoClassDefFoundError:org/springframework/web/context/WebApplicationContext”,以为是缺少spring中的lib包,但是并不缺少包。

 

3、解决办法

(1)重新部署项目,可以消除这个错误;

(2)clean一下项目,重新启动服务器。

 

posted on 2016-01-14 10:10  菜风少侠  阅读(179)  评论(0编辑  收藏  举报