Failed to start component [StandardEngine[Tomcat].StandardHost[localhost].StandardContex
Posted liu1275271818
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Failed to start component [StandardEngine[Tomcat].StandardHost[localhost].StandardContex相关的知识,希望对你有一定的参考价值。
问题描述:
在idea中maven构建web项目,启动Tomcat插件时,出现Failed to start component [StandardEngine[Tomcat].StandardHost[localhost].StandardContex
问题分析:
Tomcat本身中已存在servlet-api.jar、jsp-api.jar、jstl.jar,因此在maven中的pom.xml文件中,应该标明着三个包<scope></scope>标签为provide,因为provided表明该包只在编译和测试的时候用.运行时就不用了。
问题解决:
<dependency> <groupId>jstl</groupId> <artifactId>jstl</artifactId> <version>$jstl.version</version> <scope>provided</scope> </dependency> <dependency> <groupId>javax.servlet</groupId> <artifactId>servlet-api</artifactId> <version>$servlet.version</version> <scope>provided</scope> </dependency> <dependency> <groupId>javax.servlet</groupId> <artifactId>jsp-api</artifactId> <version>$jsp.version</version> <scope>provided</scope> </dependency>
以上是关于Failed to start component [StandardEngine[Tomcat].StandardHost[localhost].StandardContex的主要内容,如果未能解决你的问题,请参考以下文章
Tomcat启动报错 Failed to start component [StandardServer[8005]]解决
启动项目报错——A child container failed during start——解决Failed to start component [StandardEngine[Catalina]
The required Server component failed to start so Tomcat is unable to start解决之一
org.apache.catalina.LifecycleException: Failed to start component
Failed to start component [StandardEngine[Tomcat].StandardHost[localhost].StandardContext[]]
org.apache.catalina.LifecycleException: Failed to start component