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

相关文章推荐

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

[INFO] Scanning for projects... [INFO]                  ...

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

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

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

构建了一个maven项目,tomcat发布的时候报错: SEVERE: ContainerBase.addChild: start: org.apache.catalina.Lifecycle...

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

tomcat运行报错Failed to start component [StandardEngine[Catalina].StandardHost[localhost].多半情况是找不到jar包 ...

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

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

使用Maven自动部署Java Web应用到Tomcat服务器

前言

maven web项目的几种部署方式和常见的出错方式的解决

本人现在开始学习着弄maven,最近部署一个maven web项目,其中有些前辈写的东西还是蛮经典的,maven项目的建立随着版本的更新操作越来越简单,我现在用的maven版本是3.3.9,较之前的版...

导入的Maven的Web项目启动报严重: A child container failed during start

今天将已有的web项目采用Maven管理的方式导入到Eclipse中,构建完成后部署到Tomcat上启动时报错:严重: A child container failed during start ,检...

MAVEN WEB 项目运行异常记录001

在构建maven web项目时,启动tomcat正常,但是访问项目时报错,tomcat版本为apache-tomcat-8.0.14,错误如下: 30-Apr-2017 16:53:09.1...

使用Maven自动部署Java Web项目到Tomcat问题小记

导读首先说说自己为啥要用maven管理项目,一个直接的原因是:我在自己电脑上开发web项目,每次部署到服务器上时都要经历如下步骤:首先在Eclipse里将项目打包成war包将服务器上原来的项目文件夹删...
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:深度学习:神经网络中的前向传播和反向传播算法推导
举报原因:
原因补充:

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