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插件启动时报错问题

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

maven包冲突问题 org.apache.catalina.LifecycleException: Failed to start component ,org.springframework.w

出现的问题 这应该由于javaee-api与tomcatjavaee-api 有冲突。 处理办法:把javaee-api的生命周期改为:provid...
  • m_1988
  • m_1988
  • 2015年11月13日 18:09
  • 2167

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

最近研究点小东西,然后构建了个maven的项目,jdk是1.8,tomcat8的,用的是ssm框架,spring 4,然后启动的时候一直报错,如下图 java.util.concurrent.Exe...
  • argentian0
  • argentian0
  • 2017年06月05日 12:39
  • 1544

在eclipse中启动maven项目是报错

严重: Error configuring application listener of class org.springframework.web.context.ContextLoaderLis...
  • Peditable
  • Peditable
  • 2012年04月12日 09:16
  • 14054

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

错误描述:Error configuring application listener of class org.springframework.web.util.Log4jConfigListene...
  • gao36951
  • gao36951
  • 2016年06月18日 17:29
  • 1869

maven的部署和启动以及常见的三种错误

一.maven的部署和启动 我用的tomcat7,其中tomcat-user.xml文件需要配置如下role和user [html] view plaincopy ...
  • tomcat_2014
  • tomcat_2014
  • 2015年08月18日 17:25
  • 4739

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

tomcat运行报错Failed to start component [StandardEngine[Catalina].StandardHost[localhost].多半情况是找不到jar包 ...
  • baidu_19473529
  • baidu_19473529
  • 2017年06月01日 14:27
  • 72610

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
  • 61829

Run as启动项目时总报错Failed to start component [StandardEngine[Tomcat].StandardHost[localhost].StandardCont

[INFO] Scanning for projects... [INFO]                                                              ...
  • gl_blog
  • gl_blog
  • 2016年12月03日 22:10
  • 2918

Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/**]

问题:tomcat容器启动时报错: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].Stand...
  • suyu_yuan
  • suyu_yuan
  • 2016年09月04日 11:59
  • 49802
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:Maven项目启动报错
举报原因:
原因补充:

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