wood burning stoves 2.0*
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
Author

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 :




SpringBlogger-servlet.xml




HomeController.java:-



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.


Thanks,
Manish
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9291
    
  17

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
 
Don't get me started about those stupid light bulbs.
 
subject: No mapping found for HTTP request
 
Similar Threads
Can't read from 'messages.properties' file
No mapping found for HTTP request with URI - Why erreur404
Accessing Spring beans from jsp
Spring MVC
Error Spring + tiles 2.2