First, in your web.xml, you have mapped all the .htm requests to spring dispatcher
servlet, in webmvc-servlet.xml, you have given *.htm, *.html, *.jsp and *.ajax to localcontroller, there is no way that other requests except *.htm invokes the webmvc-servlet.xml and in webmvc-servlet.xml, you cant have *.htm, you have to be specific..