Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

No mapping found for HTTP request

 
berender mavi
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9521
22
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic