关闭

Maven项目启动报错

1969人阅读 评论(0) 收藏 举报
分类:
java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/ROOT]]
<span style="white-space:pre">	</span>at java.util.concurrent.FutureTask.report(FutureTask.java:122)
<span style="white-space:pre">	</span>at java.util.concurrent.FutureTask.get(FutureTask.java:188)
<span style="white-space:pre">	</span>at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1123)
<span style="white-space:pre">	</span>at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:816)
<span style="white-space:pre">	</span>at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
<span style="white-space:pre">	</span>at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1575)
<span style="white-space:pre">	</span>at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1565)
<span style="white-space:pre">	</span>at java.util.concurrent.FutureTask.run(FutureTask.java:262)
<span style="white-space:pre">	</span>at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
<span style="white-space:pre">	</span>at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
<span style="white-space:pre">	</span>at java.lang.Thread.run(Thread.java:745)
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/ROOT]]
<span style="white-space:pre">	</span>at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
<span style="white-space:pre">	</span>... 6 more
Caused by: java.lang.NoClassDefFoundError: org/apache/commons/fileupload/FileUploadException
<span style="white-space:pre">	</span>at java.lang.Class.getDeclaredFields0(Native Method)
<span style="white-space:pre">	</span>at java.lang.Class.privateGetDeclaredFields(Class.java:2436)
<span style="white-space:pre">	</span>at java.lang.Class.getDeclaredFields(Class.java:1806)
<span style="white-space:pre">	</span>at org.apache.catalina.util.Introspection.getDeclaredFields(Introspection.java:106)
<span style="white-space:pre">	</span>at org.apache.catalina.startup.WebAnnotationSet.loadFieldsAnnotation(WebAnnotationSet.java:270)
<span style="white-space:pre">	</span>at org.apache.catalina.startup.WebAnnotationSet.loadApplicationServletAnnotations(WebAnnotationSet.java:139)
<span style="white-space:pre">	</span>at org.apache.catalina.startup.WebAnnotationSet.loadApplicationAnnotations(WebAnnotationSet.java:65)
<span style="white-space:pre">	</span>at org.apache.catalina.startup.ContextConfig.applicationAnnotationsConfig(ContextConfig.java:415)
<span style="white-space:pre">	</span>at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:892)
<span style="white-space:pre">	</span>at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:386)
<span style="white-space:pre">	</span>at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
<span style="white-space:pre">	</span>at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
<span style="white-space:pre">	</span>at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5380)
<span style="white-space:pre">	</span>at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
<span style="white-space:pre">	</span>... 6 more
Caused by: java.lang.ClassNotFoundException: org.apache.commons.fileupload.FileUploadException
<span style="white-space:pre">	</span>at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1720)
<span style="white-space:pre">	</span>at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1571)
<span style="white-space:pre">	</span>... 20 more
五月 31, 2016 1:35:27 下午 org.apache.catalina.core.ContainerBase startInternal
严重: A child container failed during start
java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost]]
<span style="white-space:pre">	</span>at java.util.concurrent.FutureTask.report(FutureTask.java:122)
<span style="white-space:pre">	</span>at java.util.concurrent.FutureTask.get(FutureTask.java:188)
<span style="white-space:pre">	</span>at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1123)
<span style="white-space:pre">	</span>at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:300)
<span style="white-space:pre">	</span>at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
<span style="white-space:pre">	</span>at org.apache.catalina.core.StandardService.startInternal(StandardService.java:443)
<span style="white-space:pre">	</span>at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
<span style="white-space:pre">	</span>at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:739)
<span style="white-space:pre">	</span>at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
<span style="white-space:pre">	</span>at org.apache.catalina.startup.Catalina.start(Catalina.java:689)
<span style="white-space:pre">	</span>at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
<span style="white-space:pre">	</span>at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
<span style="white-space:pre">	</span>at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
<span style="white-space:pre">	</span>at java.lang.reflect.Method.invoke(Method.java:606)
<span style="white-space:pre">	</span>at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:321)
<span style="white-space:pre">	</span>at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:455)
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost]]
<span style="white-space:pre">	</span>at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
<span style="white-space:pre">	</span>at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1575)
<span style="white-space:pre">	</span>at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1565)
<span style="white-space:pre">	</span>at java.util.concurrent.FutureTask.run(FutureTask.java:262)
<span style="white-space:pre">	</span>at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
<span style="white-space:pre">	</span>at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
<span style="white-space:pre">	</span>at java.lang.Thread.run(Thread.java:745)
Caused by: org.apache.catalina.LifecycleException: A child container failed during start
<span style="white-space:pre">	</span>at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1131)
<span style="white-space:pre">	</span>at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:816)
<span style="white-space:pre">	</span>at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
<span style="white-space:pre">	</span>... 6 more
五月 31, 2016 1:35:27 下午 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[8025]]
<span style="white-space:pre">	</span>at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
<span style="white-space:pre">	</span>at org.apache.catalina.startup.Catalina.start(Catalina.java:689)
<span style="white-space:pre">	</span>at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
<span style="white-space:pre">	</span>at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
<span style="white-space:pre">	</span>at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
<span style="white-space:pre">	</span>at java.lang.reflect.Method.invoke(Method.java:606)
<span style="white-space:pre">	</span>at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:321)
<span style="white-space:pre">	</span>at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:455)
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardService[Catalina]]
<span style="white-space:pre">	</span>at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
<span style="white-space:pre">	</span>at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:739)
<span style="white-space:pre">	</span>at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
<span style="white-space:pre">	</span>... 7 more
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina]]
<span style="white-space:pre">	</span>at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
<span style="white-space:pre">	</span>at org.apache.catalina.core.StandardService.startInternal(StandardService.java:443)
<span style="white-space:pre">	</span>at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
<span style="white-space:pre">	</span>... 9 more
Caused by: org.apache.catalina.LifecycleException: A child container failed during start
<span style="white-space:pre">	</span>at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1131)
<span style="white-space:pre">	</span>at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:300)
<span style="white-space:pre">	</span>at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
<span style="white-space:pre">	</span>... 11 more

上网找了一下,有说是web.xml里面的问题,比如filter和filter-mapping里的filter-name不同名之类的。也有说是tomcat版本太高。
仔细找了下web.xml里面确实没问题。是否tomcat版本问题没去验证。最后发现是我忘了配置deployment assembly(右键项目名字-> properties -> myeclipse -> deployment assembly -> add -> java build path  entries -> maven dependencies)。OK,搞定。
写下笔记做个备忘。也希望给用maven的朋友提供参考。
0
1

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:12254次
    • 积分:205
    • 等级:
    • 排名:千里之外
    • 原创:9篇
    • 转载:2篇
    • 译文:0篇
    • 评论:1条
    文章分类
    最新评论