Tomcat异常:server Tomcat v9.09 Server at localhost failed to start
Posted 小杜同学的嘚啵嘚
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Tomcat异常:server Tomcat v9.09 Server at localhost failed to start相关的知识,希望对你有一定的参考价值。
详细报错:
首先不要慌张,这不是Tomcat引发的问题。而是你自己代码错误导致的问题(小编遇到的是配置servlet-mapping时,url-pattern中配置不合法)
然后,检查控制台打印信息,寻找caused by部分。
果然,小编找到一条:
Caused by: org.apache.catalina.LifecycleException: A child container failed during start
以及:
严重: A child container failed during start
java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: A child container failed during start
似乎,找到了错误,但是很遗憾,这也不是错误产生的原因。
提示:A child container failed during start 从来都不是问题的根本原因!
继续向上寻找。
小编的错误找到了:
Caused by: java.lang.IllegalArgumentException: Invalid <url-pattern> doLogin in servlet mapping
最终原因是,在配置<url-pattern>标签是在doLogin前面少写了一个反斜杠。
参考博客:http://blog.csdn.net/testcs_dn/article/details/41824497
以上是关于Tomcat异常:server Tomcat v9.09 Server at localhost failed to start的主要内容,如果未能解决你的问题,请参考以下文章
eclipse问题Server Tomcat v9.0 Server at localhost failed to start
eclipse运行web,tomcat报错Server Tomcat v9.0 Server at localhost failed to start
Java tomcat Several ports (8005, 8080, 8009) required by Tomcat v9.0 Server at localhost
Starting Tomcat v9.0 Server at localhost' has encountered a problem
‘Starting Tomcat v9.0 Server at localhost’ has encountered a problem.