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 –
- Stop the tomcat
- Clean and build all eclipse projects
- Goto server tab and select the tomcat server. Press clean. Press clean work directory.
- Right click on the tomcat and remove it.
- Delete the tomcat from the eclipse run times
- Add tomcat server to the eclipse servers again
- Start the application
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.
Good to hear that. 👍
Hi, how we can resolve this exception on remote tomcat server ? I put war file under webApps directory and could not get application. Thanks.