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

 1 严重: ContainerBase.addChild: start: 
 2 org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/SpringMvc]]
 3     at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167)
 4     at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:752)
 5     at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:728)
 6     at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734)
 7     at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1107)
 8     at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1841)
 9     at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
10     at java.util.concurrent.FutureTask.run(FutureTask.java:262)
11     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
12     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
13     at java.lang.Thread.run(Thread.java:745)
14 Caused by: java.lang.IllegalArgumentException: Filter mapping specifies an unknown filter name HttpMethodPutFilter
15     at org.apache.catalina.core.StandardContext.validateFilterMap(StandardContext.java:2960)
16     at org.apache.catalina.core.StandardContext.addFilterMap(StandardContext.java:2923)
17     at org.apache.catalina.startup.ContextConfig.configureContext(ContextConfig.java:1275)
18     at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1190)
19     at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:775)
20     at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:299)
21     at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:94)
22     at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5087)
23     at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
24     ... 10 more
25 四月 09, 2017 11:46:43 上午 org.apache.catalina.startup.HostConfig deployDirectory
26 严重: Error deploying web application directory /Users/lonecloud/apache-tomcat-8.5.11/webapps/SpringMvc
27 java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/SpringMvc]]
28     at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:756)
29     at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:728)
30     at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734)
31     at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1107)
32     at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1841)
33     at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
34     at java.util.concurrent.FutureTask.run(FutureTask.java:262)
35     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
36     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
37     at java.lang.Thread.run(Thread.java:745)

出现如上报错信息:

  原因:web.xml中有一些Filter mapping specifies an unknown filter 可以说明有一些过滤器没有找到导致的错误

解决办法:

  寻找xml中的过滤器是不是没有完全匹配上,或者没有被定义

    原文作者:lonecloud
    原文地址: https://www.cnblogs.com/lonecloud/p/6684138.html
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞