I have a weird issue in a spring controller (Spring vs 3.1.1). I am redirecting to a URL and the dispatcher servlet cannot resolve the handler method. It works when I click a link in the JSP but its broke when I create the redirect URL. The URL's that are created look identical but there is some difference because I can copy and paste one into a new browser tab and it works and the other one I cannot.
This method gets called fine via clicking a link on the UI. Here are the logs.
2012-03-14 11:54:38,091 DEBUG [org.springframework.web.servlet.DispatcherServlet] Flow Id:e38704d2-bcb1-4d81-981a-8bf3a7f9b7a2 Flow Name:Unknown - <DispatcherServlet with name 'appServlet' processing GET request for [/storedashboard/shelfLocation/view]>2012-03-14 11:54:38,091 DEBUG [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping] Flow Id:e38704d2-bcb1-4d81-981a-8bf3a7f9b7a2 Flow Name:Unknown - <Looking up handler method for path /shelfLocation/view>2012-03-14 11:54:38,091 DEBUG [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping] Flow Id:e38704d2-bcb1-4d81-981a-8bf3a7f9b7a2 Flow Name:Unknown - <Returning handler method [public org.springframework.web.servlet.ModelAndView com.xxxx.xxxx.store.dashboard.controller.ShelfLocationController.view(long)]>2012-03-14 11:54:38,091 DEBUG [org.springframework.beans.factory.support.DefaultListableBeanFactory] Flow Id:e38704d2-bcb1-4d81-981a-8bf3a7f9b7a2 Flow Name:Unknown - <Returning cached instance of singleton bean 'shelfLocationController'>2012-03-14 11:54:38,091 DEBUG [org.springframework.web.servlet.DispatcherServlet] Flow Id:e38704d2-bcb1-4d81-981a-8bf3a7f9b7a2 Flow Name:Unknown - <Last-Modified value for [/storedashboard/shelfLocation/view] is: -1>
I think its an issue with the URL encoding or something I guess I do not see the relevance with any of the links you have given. Also I am using 3.1.1 some of the information you posted is not even applicable doing things the Spring 3.1.1 way. Also I do not have any file extensions, I don't know where you got that from.
http://stackoverflow.com/tags/spring-mvc/hot?filter=week
http://www.springbyexample.org/examples/sdms-simple-spring-mvc-web-module.html
http://stackoverflow.com/questions/1399487/spring-mvc-avoiding-file-extension-in-url