![Org Apache Catalina LifeCycle Exception - Crunchify Tips and Tricks](https://crunchify.com/wp-content/uploads/2013/02/Org-Apache-Catalina-LifeCycle-Exception-Crunchify-Tips-and-Tricks.png)
Are you getting below exception while running Spring MVC Project in Eclipse?
Tomcat 7 is not starting when a web application(with a servlet) is attempted to run. The server works well when I only have a html page. But when I try to add a servlet and add it to tomcat.
Then the server does not start and gives an error saying “Tomcat 7 didn’t start in 45 seconds”.
I increased the timeout but nothing happened. Well – here is a quick tip to solve it.
SEVERE: A child container failed during start java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/CrunchifySpringMVC]] at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:222) at java.util.concurrent.FutureTask.get(FutureTask.java:83) at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1123) at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:800) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) at java.lang.Thread.run(Thread.java:680)
Try coping commons-logging.jar
file to WEB-INF/lib
folder.
![common-logging.jar Crunchify Tips](https://crunchify.com/wp-content/uploads/2013/02/common-logging.jar-Crunchify-Tips.png)
You can download it from here.
If you have Maven Project
then just add this to your pom.xml
file.
<dependency> <groupId>commons-logging</groupId> <artifactId>commons-logging</artifactId> <version>1.2</version> </dependency>
Once adding jar file to WEB-INF/lib folder follow below steps:
![Spring MVC Class Path](https://crunchify.com/wp-content/uploads/2013/02/Spring-MVC-Class-Path.png)