调试web项目,项目部署到tomcat,报如下错误:

  1. java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[127.0.0.1].StandardContext[]]
  2. at java.util.concurrent.FutureTask.report(FutureTask.java:122)
  3. at java.util.concurrent.FutureTask.get(FutureTask.java:192)
  4. at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:911)
  5. at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:890)
  6. at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
  7. at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1403)
  8. at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1393)
  9. at java.util.concurrent.FutureTask.run(FutureTask.java:266)
  10. at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
  11. at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
  12. at java.lang.Thread.run(Thread.java:745)
  13. Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[127.0.0.1].StandardContext[]]
  14. at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167)
  15. ... 6 more
  16. Caused by: org.apache.catalina.LifecycleException: Failed to start component [org.apache.catalina.webresources.StandardRoot@1df93418]
  17. at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167)
  18. at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:4842)
  19. at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:4974)
  20. at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
  21. ... 6 more
  22. Caused by: java.lang.IllegalArgumentException: The main resource set specified [C:\Users\Lzj\.IntelliJIdea2016.2\system\tomcat\Unnamed_question\webapps\call] is not valid
  23. at org.apache.catalina.webresources.StandardRoot.createMainResourceSet(StandardRoot.java:732)
  24. at org.apache.catalina.webresources.StandardRoot.startInternal(StandardRoot.java:690)
  25. at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
  26. ... 9 more
  27.  
  28. 22-Oct-2017 17:00:28.227 严重 [main] org.apache.catalina.core.ContainerBase.startInternal A child container failed during start
  29. java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[127.0.0.1]]
  30. at java.util.concurrent.FutureTask.report(FutureTask.java:122)
  31. at java.util.concurrent.FutureTask.get(FutureTask.java:192)
  32. at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:911)
  33. at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:262)
  34. at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
  35. at org.apache.catalina.core.StandardService.startInternal(StandardService.java:422)
  36. at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
  37. at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:791)
  38. at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
  39. at org.apache.catalina.startup.Catalina.start(Catalina.java:655)
  40. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  41. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  42. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  43. at java.lang.reflect.Method.invoke(Method.java:498)
  44. at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:355)
  45. at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:495)
  46. Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[127.0.0.1]]
  47. at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167)
  48. at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1403)
  49. at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1393)
  50. at java.util.concurrent.FutureTask.run(FutureTask.java:266)
  51. at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
  52. at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
  53. at java.lang.Thread.run(Thread.java:745)
  54. Caused by: org.apache.catalina.LifecycleException: A child container failed during start
  55. at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:919)
  56. at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:890)
  57. at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
  58. ... 6 more
  59.  
  60. 22-Oct-2017 17:00:28.230 严重 [main] org.apache.catalina.startup.Catalina.start The required Server component failed to start so Tomcat is unable to start.
  61. org.apache.catalina.LifecycleException: Failed to start component [StandardServer[8005]]
  62. at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167)
  63. at org.apache.catalina.startup.Catalina.start(Catalina.java:655)
  64. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  65. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  66. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  67. at java.lang.reflect.Method.invoke(Method.java:498)
  68. at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:355)
  69. at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:495)
  70. Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardService[Catalina]]
  71. at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167)
  72. at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:791)
  73. at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
  74. ... 7 more
  75. Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina]]
  76. at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167)
  77. at org.apache.catalina.core.StandardService.startInternal(StandardService.java:422)
  78. at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
  79. ... 9 more
  80. Caused by: org.apache.catalina.LifecycleException: A child container failed during start
  81. at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:919)
  82. at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:262)
  83. at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
  84. ... 11 more

最后发现是tomcat安装目录/conf/server.xml配置的问题:

因为我之前配置了:

  1. <Engine>
  2. <Host name="127.0.0.1" debug="0" appBase="webapps" unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false">
  3. <Context path="" docBase="call" debug="0" reloadable="true" crossContext="true"/>
  4. <Logger className="org.apache.catalina.logger.FileLogger" directory="logs" prefix="tot_log." suffix=".txt" timestamp="true"/>
  5. </Host>
  6. </Engine>

将这个Host节点注释,问题解决。

如何解决Failed to start component [StandardEngine[Catalina].StandardHost[127.0.0.1].StandardContext[]]问题的更多相关文章

  1. 解决Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/Student_recruit]]

    查看web.xml文件的书写,特别注意路径与命名一致

  2. Tomcat启动出现:Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/SpringMvc]]解决办法

    严重: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component ...

  3. 关于Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/springmvc-demo-01-start]]出错的解决方法

    出错的详情: 严重: A child container failed during start java.util.concurrent.ExecutionException: org.apache ...

  4. Tomcat报错:Failed to start component [StandardEngine[Catalina].StandardHost[localhost]]

    Failed to start component [StandardEngine[Catalina].StandardHost[localhost]] 解决办法: 1,检测你的web.xml.去掉所 ...

  5. Tomcat启动时报错,Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext

    05-Dec-2016 11:23:44.321 SEVERE [localhost-startStop-1] org.apache.catalina.core.ContainerBase.addCh ...

  6. Failed to start component [StandardEngine[Catalina].StandardHost[localhost....

    今天我用了近一天的时间研究一个错误,早上写代码是遇到一个 错误严重错误代码如下: 严重: ContainerBase.addChild: start: org.apache.catalina.Life ...

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

    问题描述:Tomcat容器和Eclipse启动运行时候报错 Failed to start component [StandardEngine[Catalina].StandardHost[local ...

  8. Failed to start component [StandardEngine [Catalina].StandardHost[localhost].StandardContext[/项目名]]

    问题: 最近几天在做一个小项目,今天中午本来想启动tomcat打开看看项目的,没想到项目突然无法打开,页面总是显示404 tomcat报错如下:Failed to start component [S ...

  9. tomcat启动时错误:Failed to start component [StandardEngine[Catalina].StandardHost[localhost].错误

    今天第一次遇到Failed to start component [StandardEngine[Catalina].StandardHost[localhost].错误,并且在错误提示的后半段出现了 ...

随机推荐

  1. mysql分区partition

    分区后 会产生多个 数据存储文件MYD,MYI ,把内容读取分散到多个文件上,这样减少并发读取,文件锁的概率,提高IO === 水平分区的几种模式:===1. Range(范围) – 这种模式允许DB ...

  2. 启动Hadoop时DFSZKFailoverController没有启动

    在启动Hadoop成功后,并没有报错信息,jps查看进程,发现DFSZKFailoverController没有启动成功,后来发现是因为防火墙的原因,关掉重试就OK了 systemctl stop f ...

  3. spring.jar的下载地址

    http://repo.spring.io/release/org/springframework/spring/

  4. Quality

  5. L104

    marsh:It was like my own marsh country, flat and monotonous.The government will take more measures t ...

  6. Hibernate - POJO 类和数据库的映射文件*.hbm.xml

    POJO 类和关系数据库之间的映射可以用一个XML文档来定义. 通过 POJO 类的数据库映射文件,Hibernate可以理解持久化类和数据表之间的对应关系,也可以理解持久化类属性与数据库表列之间的对 ...

  7. 【leetcode刷题笔记】Validate Binary Search Tree

    Given a binary tree, determine if it is a valid binary search tree (BST). Assume a BST is defined as ...

  8. 倍增模板orz

    #include<iostream> #include<cstdio> #include<cstdlib> #include<algorithm> #i ...

  9. Qt Quick之Canvas

    QML中的Canvas,俗称画布,它用来定义一个绘图区域,可以使用ECMAScript代码来绘制直线,矩形,贝塞尔曲线,弧线,图片,文字等图元,还可以为这些图元应用填充颜色和边框颜色,甚至还可以进行低 ...

  10. test20190611 NOIP模拟赛

    题一:答题比赛 [问题描述] YYH报名参加了一个特殊的电视问答节目.这个节目共有n个问题,每回答正确1题,YYH就会获得1分,而每当YYH连续答对k题,那么他的现有得分乘以2,注意答对第k题后,是先 ...