严重: A child container failed during start
严重: The required Server component failed to start so Tomcat is unable to start.
警告: A context path must either be an empty string or start with a '/' and do not end with a '/'. The path [/] does not meet these criteria and has been changed to []
在日志中发现有这些信息,把tomcat/conf/server.xml中的<Context path="/" docBase="E:\\project\\cart\\web" debug="0" reloadable="false" />注释掉就好了
可是注释掉以后就不能启动web项目了,所以还是没有解决问题,继续看log文件:发现了这句话:
Caused by: java.lang.IllegalArgumentException: Servlet mapping specifies an unknown servlet name OrderItemServlet
再去看一下web.xml,果然在servlet-mapping中的一个servlet-name写错了,改正之后,就OK了。
总结:
原来web.xml对tomcat的启动都有这么大的影响,厉害了