2017  Kodetalk | Feedback | Privacy Policy | Terms | About

Spring Java Config: Tomcat deploy without web.xml

I build the Spring MVC Project without any XML.I can deploy in my local  and running successfully.

But when deploy the same war file in Test server(Tomcat 7), It is giving error.

HTTP Status 404 - The requested resource (/[application context]/) is not available.


The Servlet 3.x API is required to have the possibility to configure a java web application by writing a java class instead of having a web.xml file inside the WEB-INF folder.

You can able to find more information on this from Replacing web.xml for Servlet 3.x

Answer is