wood burning stoves 2.0*
The moose likes Web Services and the fly likes noHandlerFound No mapping found for HTTP request with URI [..] Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "noHandlerFound No mapping found for HTTP request with URI [..]" Watch "noHandlerFound No mapping found for HTTP request with URI [..]" New topic
Author

noHandlerFound No mapping found for HTTP request with URI [..]

Joe Vsmith
Greenhorn

Joined: Nov 27, 2012
Posts: 3
Hi

I am trying out RestFul webservice in the Spring environment and I have been getting "org.springframework.web.servlet.DispatcherServlet noHandlerFound No mapping found for HTTP request with URI [..] in DispatcherServlet with name ..". I have tried various things but nothing is working. You help will be highly appreciated. So far this is what I have :

web.xml


spitter-servlet.xml


And the Controller class;



And in WEB-INF/views/test.jsp


When the server starts I also do see this :
[11/28/12 9:24:02:803 EST] 00000013 DefaultAnnota I org.springframework.web.servlet.handler.AbstractUrlHandlerMapping registerHandler Mapped URL path [/partners/method=RequestMethod.GET] onto handler 'partnerController'


But when I try to access using url :
http://localhost:9080/contextRoot/testWs/partners/
I get the error :
[11/28/12 9:31:07:034 EST] 00000044 PageNotFound W org.springframework.web.servlet.DispatcherServlet noHandlerFound No mapping found for HTTP request with URI [/contextRoot/testWs/partners/] in DispatcherServlet with name 'spitter'


Thanks
Joe Vsmith
Greenhorn

Joined: Nov 27, 2012
Posts: 3
I have been on this one for the last 2 days. Tried several things as per various forums. But nothing seems to work. Any insight is highly appreciated.
Joe Vsmith
Greenhorn

Joined: Nov 27, 2012
Posts: 3
This problem was : @RequestMapping("method=RequestMethod.GET")
It should be : @RequestMapping(method=RequestMethod.GET) without quotes.

Thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: noHandlerFound No mapping found for HTTP request with URI [..]