title: No mapping found for HTTP request with URI: in a Spring MVC app
body: <p>I'm getting this error. </p>
  
  <p>my <strong>web.xml</strong> has this </p>
  
  <pre><code>&lt;servlet&gt;
    &lt;servlet-name&gt;springweb&lt;/servlet-name&gt;
    &lt;servlet-class&gt;org.springframework.web.servlet.DispatcherServlet&lt;/servlet-class&gt;
     &lt;init-param&gt;
      &lt;param-name&gt;contextConfigLocation&lt;/param-name&gt;
      &lt;param-value&gt;/WEB-INF/web-application-config.xml&lt;/param-value&gt;
     &lt;/init-param&gt;
    &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
  &lt;/servlet&gt;
  
  &lt;servlet-mapping&gt;
    &lt;servlet-name&gt;springweb&lt;/servlet-name&gt;
    &lt;url-pattern&gt;/app/*&lt;/url-pattern&gt;
  &lt;/servlet-mapping&gt;
  </code></pre>
  
  <p>I have this in my web-application-config.xml</p>
  
  <pre><code>&lt;bean id="viewResolver" class="org.springframework.web.servlet.view.UrlBasedViewResolver"&gt;
         &lt;property name="viewClass" value="org.springframework.web.servlet.view.JstlView"/&gt;
  &lt;/bean&gt;
  
  &lt;bean name="/Scheduling.htm" class="com.web.SchedulingController"/&gt;
  </code></pre>
  
  <p>my com.web.SchedulingController looks like this</p>
  
  <pre><code>/*
  * To change this template, choose Tools | Templates
  * and open the template in the editor.
  */
  
  package com.web; 
  
  import javax.servlet.http.HttpServletRequest;
  import javax.servlet.http.HttpServletResponse;
  import org.springframework.web.servlet.ModelAndView;
  import org.springframework.web.servlet.mvc.Controller;
  
  
  public class SchedulingController implements Controller{
  
  public ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response) throws Exception {
  
      ModelAndView modelAndView = new ModelAndView("/jsp/Scheduling_main.jsp");
      modelAndView.addObject("message","Hello World MVC!!");
      return modelAndView;
  }
  }
  </code></pre>
  
  <p>When I hit this controller with the URL <a href="http://localhost:8080/project1/app/Scheduling.htm" rel="noreferrer">http://localhost:8080/project1/app/Scheduling.htm</a>
  The Scheduling_main.jsp gets displayed but the images are not displayed properly. Also the js and css file are not getting rendered. </p>
  
  <p>I'm accessing the images like this</p>
  
  <pre><code>&lt;img src="jquerylib/images/save_32x32.png" title="Save Appointment"&gt;
  </code></pre>
  
  <p>If I change the URL mapping in the servlet definition to *.htm, the images get displayed fine. Can you point out where I'm missing out.</p>
  
  <p>Here is complete error message</p>
  
  <pre><code>WARN  [PageNotFound] No mapping found for HTTP request with URI [/mavenproject1/app/jquerylib/images/save_32x32.png] in DispatcherServlet with name 'springweb'
  </code></pre>
  
  <p>Thanks a lot.
  Ravi</p>