LeeHuang1998 2020-12-30 19:01 采纳率: 33.3%
浏览 73
已采纳

请问一下关于 tomcat 启动失败的问题

严重: 子容器启动失败
java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: 无法启动组件[StandardEngine[Catalina].StandardHost[localhost].StandardContext[/JavaWeb-6-Request]]
	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:1227)
	at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:804)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1689)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1679)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)
Caused by: org.apache.catalina.LifecycleException: 无法启动组件[StandardEngine[Catalina].StandardHost[localhost].StandardContext[/JavaWeb-6-Request]]
	at org.apache.catalina.util.LifecycleBase.handleSubClassException(LifecycleBase.java:440)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:198)
	... 6 more
Caused by: java.lang.IllegalArgumentException: The servlets named [com.JavaWeb.request.RequestServlet] and [com.JavaWeb.request.RequestServlet2] are both mapped to the url-pattern [/RequsetServlet] which is not permitted
	at org.apache.catalina.deploy.WebXml.addServletMapping(WebXml.java:306)
	at org.apache.catalina.startup.ContextConfig.processAnnotationWebServlet(ContextConfig.java:2432)
	at org.apache.catalina.startup.ContextConfig.processClass(ContextConfig.java:2105)
	at org.apache.catalina.startup.ContextConfig.processAnnotationsStream(ContextConfig.java:2094)
	at org.apache.catalina.startup.ContextConfig.processAnnotationsFile(ContextConfig.java:2062)
	at org.apache.catalina.startup.ContextConfig.processAnnotationsFile(ContextConfig.java:2054)
	at org.apache.catalina.startup.ContextConfig.processAnnotationsFile(ContextConfig.java:2054)
	at org.apache.catalina.startup.ContextConfig.processAnnotationsFile(ContextConfig.java:2054)
	at org.apache.catalina.startup.ContextConfig.processClasses(ContextConfig.java:1334)
	at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1238)
	at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:888)
	at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:388)
	at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5536)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
	... 6 more

十二月 30, 2020 6:47:14 下午 org.apache.catalina.core.ContainerBase startInternal
严重: 子容器启动失败
java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: 子容器启动失败
	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:1227)
	at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:300)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
	at org.apache.catalina.core.StandardService.startInternal(StandardService.java:444)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
	at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:744)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
	at org.apache.catalina.startup.Catalina.start(Catalina.java:712)
	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:498)
	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:284)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:415)
Caused by: org.apache.catalina.LifecycleException: 子容器启动失败
	at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1238)
	at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:804)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1689)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1679)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)
Caused by: java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: 无法启动组件[StandardEngine[Catalina].StandardHost[localhost].StandardContext[/JavaWeb-6-Request]]
	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:1227)
	... 8 more
Caused by: org.apache.catalina.LifecycleException: 无法启动组件[StandardEngine[Catalina].StandardHost[localhost].StandardContext[/JavaWeb-6-Request]]
	at org.apache.catalina.util.LifecycleBase.handleSubClassException(LifecycleBase.java:440)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:198)
	... 6 more
Caused by: java.lang.IllegalArgumentException: The servlets named [com.JavaWeb.request.RequestServlet] and [com.JavaWeb.request.RequestServlet2] are both mapped to the url-pattern [/RequsetServlet] which is not permitted
	at org.apache.catalina.deploy.WebXml.addServletMapping(WebXml.java:306)
	at org.apache.catalina.startup.ContextConfig.processAnnotationWebServlet(ContextConfig.java:2432)
	at org.apache.catalina.startup.ContextConfig.processClass(ContextConfig.java:2105)
	at org.apache.catalina.startup.ContextConfig.processAnnotationsStream(ContextConfig.java:2094)
	at org.apache.catalina.startup.ContextConfig.processAnnotationsFile(ContextConfig.java:2062)
	at org.apache.catalina.startup.ContextConfig.processAnnotationsFile(ContextConfig.java:2054)
	at org.apache.catalina.startup.ContextConfig.processAnnotationsFile(ContextConfig.java:2054)
	at org.apache.catalina.startup.ContextConfig.processAnnotationsFile(ContextConfig.java:2054)
	at org.apache.catalina.startup.ContextConfig.processClasses(ContextConfig.java:1334)
	at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1238)
	at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:888)
	at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:388)
	at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5536)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
	... 6 more

十二月 30, 2020 6:47:14 下午 org.apache.catalina.startup.Catalina start
严重: 所必需的服务组件启动失败,所以无法启动Tomcat
org.apache.catalina.LifecycleException: 子容器启动失败
	at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1238)
	at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:300)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
	at org.apache.catalina.core.StandardService.startInternal(StandardService.java:444)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
	at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:744)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
	at org.apache.catalina.startup.Catalina.start(Catalina.java:712)
	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:498)
	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:284)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:415)
Caused by: java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: 子容器启动失败
	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:1227)
	... 13 more
Caused by: org.apache.catalina.LifecycleException: 子容器启动失败
	at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1238)
	at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:804)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1689)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1679)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)
Caused by: java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: 无法启动组件[StandardEngine[Catalina].StandardHost[localhost].StandardContext[/JavaWeb-6-Request]]
	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:1227)
	... 8 more
Caused by: org.apache.catalina.LifecycleException: 无法启动组件[StandardEngine[Catalina].StandardHost[localhost].StandardContext[/JavaWeb-6-Request]]
	at org.apache.catalina.util.LifecycleBase.handleSubClassException(LifecycleBase.java:440)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:198)
	... 6 more
Caused by: java.lang.IllegalArgumentException: The servlets named [com.JavaWeb.request.RequestServlet] and [com.JavaWeb.request.RequestServlet2] are both mapped to the url-pattern [/RequsetServlet] which is not permitted
	at org.apache.catalina.deploy.WebXml.addServletMapping(WebXml.java:306)
	at org.apache.catalina.startup.ContextConfig.processAnnotationWebServlet(ContextConfig.java:2432)
	at org.apache.catalina.startup.ContextConfig.processClass(ContextConfig.java:2105)
	at org.apache.catalina.startup.ContextConfig.processAnnotationsStream(ContextConfig.java:2094)
	at org.apache.catalina.startup.ContextConfig.processAnnotationsFile(ContextConfig.java:2062)
	at org.apache.catalina.startup.ContextConfig.processAnnotationsFile(ContextConfig.java:2054)
	at org.apache.catalina.startup.ContextConfig.processAnnotationsFile(ContextConfig.java:2054)
	at org.apache.catalina.startup.ContextConfig.processAnnotationsFile(ContextConfig.java:2054)
	at org.apache.catalina.startup.ContextConfig.processClasses(ContextConfig.java:1334)
	at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1238)
	at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:888)
	at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:388)
	at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5536)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
	... 6 more
  • 写回答

2条回答 默认 最新

  • 编程爱好者熊浪 2020-12-30 19:34
    关注

    全盘搜索下/RequsetServlet,或者搜索下上面提到的2个servlet,不要映射同一个路径,删掉一个。

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 前后端分离的学习疑问?
  • ¥15 stata实证代码答疑
  • ¥15 MATLAB数据处理插值
  • ¥50 husky+jaco2实现在gazebo与rviz中联合仿真
  • ¥15 dpabi预处理报错:Error using y_ExtractROISignal (line 251)
  • ¥15 在虚拟机中配置flume,无法将slave1节点的文件采集到master节点中
  • ¥15 husky+kinova jaco2 仿真
  • ¥15 zigbee终端设备入网失败
  • ¥15 金融监管系统怎么对7+4机构进行监管的
  • ¥15 硬件IIC从模式的数据发送,中断数据的接收,不能用HAL库(按照时序图)