Tomcat Error - java.util.concurrent.ExecutionException:org.apache.catalina.LifeException
This is an error-solving method that occurs when you run a Tomcat in Eclipse.
This usually occurs when you change the JAVA version or Tomcat version.
java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException
■ Cause
This occurs because the servlet.jar version is not compatible with the Tomcat version.
■ Solution
The following is the specification specified in Tomcat, and you can adjust the specification of that version.
http://tomcat.apache.org/whichversion.html
In my case, it happened when I changed from Tomcat7 to Tomcat8.
So, I solved it by changing the servlet version in myven.
Before |
After |
<dependency> <groupId>javax.servlet</groupId> <artifactId>servlet-api</artifactId> <scope>provided</scope> <version>2.5</version> </dependency> |
<dependency> <groupId>javax.servlet</groupId> <artifactId>javax.servlet-api</artifactId> <scope>provided</scope> <version>3.1.0</version> </dependency> |