• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

No mapping found for HTTP request

 
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 9708
43
Android Google Web Toolkit Hibernate IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic