文档章节

启动tomcat出错:A child container failed during start

开源中国段子手
 开源中国段子手
发布于 2016/01/27 10:37
字数 1255
阅读 4310
收藏 0
点赞 2
评论 0

eclipse中启动tomcat出错,错误如下:

一月 27, 2016 10:29:37 上午 org.apache.tomcat.util.digester.SetPropertiesRule begin
警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:JSPStudy' did not find a matching property.
一月 27, 2016 10:29:37 上午 org.apache.tomcat.util.digester.SetPropertiesRule begin
警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:JavaBean' did not find a matching property.
一月 27, 2016 10:29:37 上午 org.apache.tomcat.util.digester.SetPropertiesRule begin
警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:Servlet' did not find a matching property.
一月 27, 2016 10:29:37 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server version:        Apache Tomcat/7.0.65
一月 27, 2016 10:29:37 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server built:          Oct 9 2015 08:36:58 UTC
一月 27, 2016 10:29:37 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server number:         7.0.65.0
一月 27, 2016 10:29:37 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: OS Name:               Linux
一月 27, 2016 10:29:37 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: OS Version:            3.18.0-kali3-amd64
一月 27, 2016 10:29:37 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Architecture:          amd64
一月 27, 2016 10:29:37 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Java Home:             /opt/jdk1.8.0_60/jre
一月 27, 2016 10:29:37 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: JVM Version:           1.8.0_60-b27
一月 27, 2016 10:29:37 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: JVM Vendor:            Oracle Corporation
一月 27, 2016 10:29:37 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: CATALINA_BASE:         /opt/eclipse/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0
一月 27, 2016 10:29:37 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: CATALINA_HOME:         /opt/apache-tomcat-7.0.65
一月 27, 2016 10:29:37 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dcatalina.base=/opt/eclipse/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0
一月 27, 2016 10:29:37 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dcatalina.home=/opt/apache-tomcat-7.0.65
一月 27, 2016 10:29:37 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dwtp.deploy=/opt/eclipse/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps
一月 27, 2016 10:29:37 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Djava.endorsed.dirs=/opt/apache-tomcat-7.0.65/endorsed
一月 27, 2016 10:29:37 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dfile.encoding=UTF-8
一月 27, 2016 10:29:37 上午 org.apache.catalina.core.AprLifecycleListener lifecycleEvent
信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
一月 27, 2016 10:29:37 上午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["http-bio-8080"]
一月 27, 2016 10:29:37 上午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["ajp-bio-8009"]
一月 27, 2016 10:29:37 上午 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 706 ms
一月 27, 2016 10:29:37 上午 org.apache.catalina.core.StandardService startInternal
信息: Starting service Catalina
一月 27, 2016 10:29:37 上午 org.apache.catalina.core.StandardEngine startInternal
信息: Starting Servlet Engine: Apache Tomcat/7.0.65
一月 27, 2016 10:29:38 上午 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].StandardContext[/Servlet]]
    at java.util.concurrent.FutureTask.report(FutureTask.java:122)
    at java.util.concurrent.FutureTask.get(FutureTask.java:192)
    at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1122)
    at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:819)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1574)
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1564)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/Servlet]]
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
    ... 6 more
Caused by: java.lang.IllegalArgumentException: The servlets named [LoginServlet] and [com.zhong.model.LoginServlet] are both mapped to the url-pattern [/LoginServlet] which is not permitted
    at org.apache.catalina.deploy.WebXml.addServletMapping(WebXml.java:293)
    at org.apache.catalina.startup.ContextConfig.processAnnotationWebServlet(ContextConfig.java:2428)
    at org.apache.catalina.startup.ContextConfig.processAnnotationsStream(ContextConfig.java:2103)
    at org.apache.catalina.startup.ContextConfig.processAnnotationsFile(ContextConfig.java:2064)
    at org.apache.catalina.startup.ContextConfig.processAnnotationsFile(ContextConfig.java:2057)
    at org.apache.catalina.startup.ContextConfig.processAnnotationsFile(ContextConfig.java:2057)
    at org.apache.catalina.startup.ContextConfig.processAnnotationsFile(ContextConfig.java:2057)
    at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1304)
    at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:889)
    at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:386)
    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:5405)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    ... 6 more

一月 27, 2016 10:29:38 上午 org.apache.catalina.startup.TldConfig execute
信息: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
一月 27, 2016 10:29:38 上午 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]]
    at java.util.concurrent.FutureTask.report(FutureTask.java:122)
    at java.util.concurrent.FutureTask.get(FutureTask.java:192)
    at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1122)
    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:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:497)
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:428)
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:1574)
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1564)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    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:1130)
    at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:819)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    ... 6 more

一月 27, 2016 10:29:38 上午 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:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:497)
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:428)
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 more
Caused 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 more
Caused by: org.apache.catalina.LifecycleException: A child container failed during start
    at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1130)
    at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:300)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    ... 11 more

一月 27, 2016 10:29:38 上午 org.apache.coyote.AbstractProtocol pause
信息: Pausing ProtocolHandler ["http-bio-8080"]
一月 27, 2016 10:29:38 上午 org.apache.coyote.AbstractProtocol pause
信息: Pausing ProtocolHandler ["ajp-bio-8009"]
一月 27, 2016 10:29:38 上午 org.apache.catalina.core.StandardService stopInternal
信息: Stopping service Catalina
一月 27, 2016 10:29:38 上午 org.apache.coyote.AbstractProtocol destroy
信息: Destroying ProtocolHandler ["http-bio-8080"]
一月 27, 2016 10:29:38 上午 org.apache.coyote.AbstractProtocol destroy
信息: Destroying ProtocolHandler ["ajp-bio-8009"]


错误的原因一般是:

你同时在servlet和web.xml中配置了servlet

解决办法:

Servlet 3.0开始支持用@WebServlet注解来代替web.xml里的配置servlet的作用,我在开始的servlet里面配置了@WebServlet

只需要删除servlet中的@WebServlet("/LoginServlet")

或者删除web.xml中关于此servlet的配置即可。当然不可以全部删除。

© 著作权归作者所有

共有 人打赏支持
开源中国段子手
粉丝 42
博文 177
码字总数 95519
作品 0
南京
程序员
tomcat7-maven-plugin启动maven项目异常

最近用intellij idea新建了一套maven web项目,用tomcat7-maven-plugin运行(直接运行程序,不是war包)。 项目集成了Spring MVC框架,对jsp页面的处理依赖下面两个jar包: <dependency> <gr...

xiaolgoon ⋅ 2015/09/06 ⋅ 0

tomcat7下spring3.2与mybatis3.1的兼容

我在tomcat7下集成spring3.2和mybatis3.1,发现一个问题: 如果spring-web.jar和mybaits-3.1.1.jar同时引入的话,tomcat启动时会报:a child container failed during start的错误,导致系统...

nick_chen ⋅ 2012/11/11 ⋅ 4

解决:A child container failed during start

新弄的电脑,项目怎么都启动不了,Tomcat一启动就报错: 以“A child container failed during start”为关键字找,基本上都说是Tomcat版本太高了,但是我觉得没那么简单,因为我以前的电脑跑...

吃兔纸不吐毛 ⋅ 03/01 ⋅ 0

idea在启动tomcat插件时报错

以下是报错信息 八月 12, 2016 4:10:16 下午 org.apache.coyote.AbstractProtocol init 信息: Initializing ProtocolHandler ["http-bio-8080"] 八月 12, 2016 4:10:16 下午 org.apache.cat......

1079403599 ⋅ 2016/08/12 ⋅ 1

A child container failed during start

启动Java Web项目时提示错误:A child container failed during start 提示:A child container failed during start 从来都不是问题的根本原因! 完整错误信息如下: 严重: A child contain...

微wx笑 ⋅ 2014/12/09 ⋅ 0

tomcat配置虚拟目录后启动报错?

我在tomcat的server.xml中配置了一个虚拟目录,但是启动会报错,如下图 下面是报错信息,严重: A child container failed during start java.util.concurrent.ExecutionException: org.apac...

路飞鸣人合体 ⋅ 2017/01/31 ⋅ 4

Tomcat启动报错

java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/Spr......

rilweic ⋅ 2015/07/30 ⋅ 5

tomcat启动时报异常!!!

SEVERE: A child container failed during start java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina......

_奇洛 ⋅ 2016/01/27 ⋅ 2

spring项目,tomcat无法启动

如果这样的报错,如何排查? 十月 14, 2017 1:42:08 下午 org.apache.catalina.core.ContainerBase startInternal 严重: A child container failed during start java.util.concurrent.Exec......

Andy.Lin ⋅ 2017/10/14 ⋅ 2

tomCAT启动报错

C:Userslenovo>D:ProgrammejavaTOMCATapache-tomcat-8.5.20bincatalina.bat run Using CATALINA_BASE: "D:ProgrammejavaTOMCATapache-tomcat-8.5.20" Using CATALINA_HOME: "D:Programmejava......

FIGHTINGaa ⋅ 2017/08/31 ⋅ 1

没有更多内容

加载失败,请刷新页面

加载更多

下一页

【新功能】企业级Maven私有仓库服务结束公测,全面开放使用

摘要: 目前云效上线了企业级Maven私有仓库服务。用户可以一键开通Maven私有仓库服务,零配置实现私有二方库的上传和下载。 经过半个月的公测,云效中的企业级Maven私有仓库服务正式上线,全...

阿里云云栖社区 ⋅ 12分钟前 ⋅ 0

elasticsearch使用more_like_this实现基于内容的推荐

官网地址:https://www.elastic.co/guide/en/elasticsearch/reference/2.3/query-dsl-mlt-query.html 基于内容的推荐通常是给定一篇文档信息,然后给用户推荐与该文档相识的文档。Lucene的a...

xiaomin0322 ⋅ 15分钟前 ⋅ 0

Spring Boot更改Banner

Spring Boot 1.0 中如何更换启动 Banner,其实都很简单,只需要在src/main/resources路径下新建一个banner.txt文件,banner.txt中填写好需要打印的字符串内容即可。 一般情况下,我们会借助第...

Clarence_D ⋅ 19分钟前 ⋅ 0

谷歌浏览器下,去掉input输入记录提示框

谷歌浏览器在记住密码后,在input获取焦点的时候就会有输入提示框,如: 有时候我们在输入用户名时,我们自己有ajax的下拉展示列表,那么此时的历史提示输入框就影响交互和用户体检,解决的方...

莫西摩西 ⋅ 21分钟前 ⋅ 0

dlna流媒体服务搭建

简介 DLNA的全称是DIGITAL LIVING NETWORK ALLIANCE(数字生活网络联盟), 其宗旨是Enjoy your music, photos and videos, anywhere anytime, DLNA(Digital Living Network Alliance) 由索尼......

啊哼哼 ⋅ 27分钟前 ⋅ 0

Python10大好用的集成开发环境简析

  Python IDE工具是每个Python工程师必须使用的开发工具,选择正确的编辑器对Python编程效率的影响是非常大的,因此选择合适的Python开发工具十分重要,以下是通过长期实践发掘的好用的Pyt...

老男孩Linux培训 ⋅ 28分钟前 ⋅ 0

happybase(TSocket read 0 bytes)

关于报错 happybase 是使用python连接hbase的一个第三方库,目前基于thrift1 。在使用过程中经常碰到报错 TTransportException(type=4, message='TSocket read 0 bytes') 即使使用thrift se...

zhnxin ⋅ 28分钟前 ⋅ 0

手写简单RPC

1. 获取接口对应的实现类 package com.rpc.server.util; import java.io.File; import java.net.URL; import com.alibaba.fastjson.JSON; public class ClassUtils { public static Object ......

徐志 ⋅ 28分钟前 ⋅ 0

nginx服务器的gzip压缩

四、服务器的gzip压缩 1.ngx_http_gzip_module模块处理的9个指令 在处理时实时压缩 1>gzip on|off 开启或关闭gzip功能 2>gzip_buffers number size 用于设置文件使用缓存...

余温灬未存 ⋅ 30分钟前 ⋅ 0

前端程序员:月薪 5K 到 5 万,我干了啥

高贵的前端程序猿们: 如何在前端开发这种高精尖的技术领域找到心仪的工作?实现在咖啡馆喝喝咖啡敲敲代码就能升职加薪、买房买车、迎娶白富美走上人生巅峰的职业梦想?这 篇《进化论:从 0 ...

Mr_zebra ⋅ 33分钟前 ⋅ 0

没有更多内容

加载失败,请刷新页面

加载更多

下一页

返回顶部
顶部