No Spring WebApplicationInitializer types detected on classpath

Wah, what a stupid error it was!

My Spring web app, which was running smoothly, refused to start. I don’t find any logs in log4j or tomcat log. Only clue I had was –

No Spring WebApplicationInitializer types detected on classpath

Here is how I solved it –

  1. Stop the tomcat
  2. Clean and build all eclipse projects
  3. Goto server tab and select the tomcat server. Press clean. Press clean work directory.
  4. Right click on the tomcat and remove it.
  5. Delete the tomcat from the eclipse run times
  6. Add tomcat server to the eclipse servers again
  7. Start the application

 

3 thoughts on “No Spring WebApplicationInitializer types detected on classpath”

  1. I was banging my head for more than 3 hours (its 2:30 AM BTW) with the exact issue. And your simple solution helped me. Thanks a million.

  2. Hi, how we can resolve this exception on remote tomcat server ? I put war file under webApps directory and could not get application. Thanks.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top