File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Spring and the fly likes No mapping found for HTTP request Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "No mapping found for HTTP request" Watch "No mapping found for HTTP request" New topic

No mapping found for HTTP request

berender mavi
Ranch Hand

Joined: Feb 18, 2011
Posts: 31
Hi Guys,

I am trying to build a simple sp[ring mvc in which there is only a single jsp login page.But i am not been able to view it on running the application as i am getting following warnings in console :

WARNING: No mapping found for HTTP request with URI [/SpringBlogger/WEB-INF/jsp/login.jsp] in DispatcherServlet with name 'SpringBlogger'

web.xml :


login.jsp :-

i know this type of issues already mentioned in some other threads but i am not getting my problem resolved as i already include <mvc:annotation-driven/> but still getting the same error.

Please let me know what i am missing.

Ankit Garg

Joined: Aug 03, 2008
Posts: 9466

Since you've mapped Spring to catch all requests ending with *.jsp, so when the controller finishes executing and Spring tries to forward the request to the JSP page, the DispatcherServlet catches that forward request as well and tries to find an appropriate controller for the forward. Why don't you try mapping your DispatcherServlet to something other than *.jsp maybe like *.htm and change the controller to map to /login.htm?

SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
I agree. Here's the link:
subject: No mapping found for HTTP request
It's not a secret anymore!