1

I am using eclipse and tomcat. I was unable to start tomcat server. It showed a problem encountered and server couldn't be started. Moreover, I tried to start by using command prompt and still failed. I already restarted my PC and changed Tomcat's port, but it still having problem. While I start the server, a part of eclipse's consoles message shows:

Sep 02, 2014 8:09:00 PM org.apache.catalina.core.ApplicationContext log
INFO: No Spring WebApplicationInitializer types detected on classpath
Sep 02, 2014 8:09:03 PM org.apache.catalina.core.ContainerBase startInternal
SEVERE: A child container failed during start 
java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/FirstSpringMVCProject]]
at java.util.concurrent.FutureTask.report(Unknown Source)
at java.util.concurrent.FutureTask.get(Unknown Source)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:916)
at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:868)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1396)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1386)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

What is the problem?

Nore
  • 111
  • 2
  • 4
  • 20
Mahin
  • 449
  • 2
  • 14
  • 25
  • 1
    Is there a stack trace with that? – Dave Sep 02 '14 at 14:28
  • http://stackoverflow.com/questions/16664924/only-one-error-no-spring-webapplicationinitializer-types-detected-on-classpath – joey rohan Sep 02 '14 at 14:29
  • Did you do a "clean" on the server runtime to fully redeploy your application and any configuration files Eclipse may have overridden? – Gimby Sep 02 '14 at 14:30
  • @Dave: too many. this is why i didn't give it here. – Mahin Sep 02 '14 at 14:44
  • @Joey: Sorry,I am not getting it. – Mahin Sep 02 '14 at 14:44
  • @Gimby: Last time I was just following this tutorial. http://docs.spring.io/docs/Spring-MVC-step-by-step/ but it didn't do a problem then. – Mahin Sep 02 '14 at 14:45
  • @Mahin, can you paste in some of the stack trace. Also see if any of it originates with your web application. – Dave Sep 02 '14 at 15:15
  • @Dave: I've added those in the question.please check. – Mahin Sep 02 '14 at 15:46
  • I think you are having problem with your web.xml file – practice2perfect Sep 02 '14 at 17:11
  • @ practice2perfect: I think my web.xml file is ok. – Mahin Sep 02 '14 at 18:19
  • I don't know what the problem is, but some looking around suggests trying to increase the tomcat log level (http://www.jvmhost.com/articles/increase-tomcat-logging-verbosity-quick-problem-resolution). Another cause of this was a library compiled with java 6. – Dave Sep 02 '14 at 19:33

1 Answers1

0

The problem was in an app,that was running in the server that time. Because of the problematic app server was not running.After removing the app from the server,server started running again. So,this is not a problem of server,but of app.

Mahin
  • 449
  • 2
  • 14
  • 25