Maven项目启动报错

原创 2016年05月31日 13:37:39
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的朋友提供参考。
版权声明:本文为博主原创文章,未经博主允许不得转载。

相关文章推荐

maven项目 tomcat启动时报错遇到的坑

最近研究点小东西,然后构建了个maven的项目,jdk是1.8,tomcat8的,用的是ssm框架,spring 4,然后启动的时候一直报错,如下图 java.util.concurrent.Exe...

在eclipse中启动maven项目是报错

严重: Error configuring application listener of class org.springframework.web.context.ContextLoaderLis...

项目相关错误系列之maven项目启动报错

错误描述:Error configuring application listener of class org.springframework.web.util.Log4jConfigListene...

使用maven的tomcat插件启动时报错问题

1、最近在学习Apache下的一个权限框架shiro。在eclipse上建了一个web项目,使用maven引入对应的依赖。在spring和springMVC等配置都准备好后,准备跑一下JSP页面确保环...

springboot出现 Failed to start component [StandardEngine[Tomcat].StandardHost[localhost]]

springboot出现Failed to start component [StandardEngine[Tomcat].StandardHost[localhost]],也就是tomcat启动不起...

tomcat部署项目时出错(Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardC)

构建了一个maven项目,tomcat发布的时候报错: SEVERE: ContainerBase.addChild: start: org.apache.catalina.Lifecycle...
  • Leolu007
  • Leolu007
  • 2013年03月04日 23:40
  • 56324

eclipse tomcat 启动不了maven项目

Eclipse报错:java.lang.ClassNotFoundException: ContextLoaderListener Eclipse中tomcat部署工程启动后报错: ...

maven配置web项目

myeclipse中将maven配置的web项目部署到tomcat,错误org.apache.catalina.LifecycleException: Failed to start componen...
  • cjsxjm
  • cjsxjm
  • 2016年03月20日 21:28
  • 7268

org.apache.catalina.LifecycleException: Failed to start component错误解决

1、错误 今天从同事手里接过来一个项目,在用tomcat构建的时候,出现如下错误:十月 25, 2016 2:41:33 下午 org.apache.catalina.core.ContainerB...
  • eff666
  • eff666
  • 2016年10月25日 19:21
  • 4214

tomcat运行报错Failed to start component [StandardEngine[Catalina].StandardHost[localhost].

tomcat运行报错Failed to start component [StandardEngine[Catalina].StandardHost[localhost].多半情况是找不到jar包 ...
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:Maven项目启动报错
举报原因:
原因补充:

(最多只允许输入30个字)