This forum is now a read-only archive. All commenting, posting, registration services have been turned off. Those needing community support and/or wanting to ask questions should refer to the Tag/Forum map, and to http://spring.io/questions for a curated list of stackoverflow tags that Pivotal engineers, and the community, monitor.

The index.jsp starts well, but when I click to navigate to the login page, I get 404.
I'm using Tomcat 7. And I'm out of ideas, it looks like the DispatcherServlet is not being invoked for some reason.

Your URL is relative where your controller is mapped to /Login so first fix your href...

To get a feeling for what is going on I suggest you enable DEBUG logging for org.springframework.[web] and you can then see the mappings and request processing happening (ifyou really want to see stuff you might enable TRACE but this will output massive logging!).

Also judging by the debug messages the code you posted isn't the code used to generate the messages (login.do isn't mapped in the controller you posted). Also the configuration you posted isn't complete and you are using spring 3.1 and not 3.0 (as the configuration suggests). So can you post your actual configuration (including @Configuration classes).

Also your viewresolver should have the order property set to 1 (especially if you use @EnableWebMvc to override the additional registered view resolvers). I also suggest you take a look at the startup log to see which beans (especially view resolvers) are registered.