title: Spring MVC No mapping found for HTTP request with URI
body: <p>I am facing a problem with the loading of images, CSS and themes in Spring MVC.<br>
  When adding the resources, I'm getting an error such as <code>No mapping found for HTTP request with URI</code> </p>
  
  <p>I am using <code>Spring 4.1.4 RELEASE</code> running on <code>Java 1.8</code> and <code>Tomcat 8</code>.</p>
  
  <p>Here is the project Structure.</p>
  
  <p><a href="https://i.stack.imgur.com/dTh58.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dTh58.jpg" alt="Project Structure"></a></p>
  
  <p>Web.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5"&gt;
    &lt;display-name&gt;SpringHibernate&lt;/display-name&gt;  
     &lt;servlet&gt;
          &lt;servlet-name&gt;mvc-dispatcher&lt;/servlet-name&gt;
          &lt;servlet-class&gt;org.springframework.web.servlet.DispatcherServlet&lt;/servlet-class&gt;
        &lt;!--   &lt;init-param&gt;
              &lt;param-name&gt;contextConfigLocation&lt;/param-name&gt;
              &lt;param-value&gt;/WEB-INF/config/SpringHibernate-servlet.xml&lt;/param-value&gt;
          &lt;/init-param&gt; --&gt;
          &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
      &lt;/servlet&gt;  
  
  &lt;context-param&gt;
          &lt;param-name&gt;contextConfigLocation&lt;/param-name&gt;
          &lt;param-value&gt;/WEB-INF/mvc-dispatcher-servlet.xml
                       /WEB-INF/spring-security.xml
          &lt;/param-value&gt;
      &lt;!--     &lt;param-value&gt;/WEB-INF/config/SpringHibernate-servlet.xml&lt;/param-value&gt; --&gt;
  &lt;/context-param&gt;
  
  
  &lt;listener&gt;
      &lt;listener-class&gt;org.springframework.web.context.ContextLoaderListener&lt;/listener-class&gt;
  &lt;/listener&gt;
  
    &lt;servlet-mapping&gt;
          &lt;servlet-name&gt;mvc-dispatcher&lt;/servlet-name&gt;
           &lt;url-pattern&gt;*.html&lt;/url-pattern&gt; 
          &lt;url-pattern&gt;/&lt;/url-pattern&gt;
      &lt;/servlet-mapping&gt;
  
     &lt;welcome-file-list&gt;
      &lt;welcome-file&gt;loginPage.jsp&lt;/welcome-file&gt;    
    &lt;/welcome-file-list&gt;  
  
  
  
    &lt;filter&gt;
        &lt;filter-name&gt;springSecurityFilterChain&lt;/filter-name&gt;
        &lt;filter-class&gt;org.springframework.web.filter.DelegatingFilterProxy&lt;/filter-class&gt;
      &lt;/filter&gt;
  
      &lt;filter-mapping&gt;
        &lt;filter-name&gt;springSecurityFilterChain&lt;/filter-name&gt;
        &lt;url-pattern&gt;/*&lt;/url-pattern&gt;
      &lt;/filter-mapping&gt;
  
  
  
  &lt;/web-app&gt;
  </code></pre>
  
  <p><strong>mvc-dispatcher-servlet.xml</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;beans xmlns="http://www.springframework.org/schema/beans" 
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
  xmlns:context="http://www.springframework.org/schema/context"
  xmlns:mvc="http://www.springframework.org/schema/mvc"
  xmlns:tx="http://www.springframework.org/schema/tx" 
  xsi:schemaLocation="
  http://www.springframework.org/schema/beans
  http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
  http://www.springframework.org/schema/context
  http://www.springframework.org/schema/context/spring-context-3.0.xsd
  http://www.springframework.org/schema/mvc
  http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd
  http://www.springframework.org/schema/tx
  http://www.springframework.org/schema/tx/spring-tx-3.0.xsd"&gt;
  
      &lt;context:property-placeholder location="classpath:resources/database.properties" /&gt;
      &lt;context:component-scan base-package="com.wbview" /&gt;
  
      &lt;tx:annotation-driven transaction-manager="hibernateTransactionManager"/&gt;
  
      &lt;bean class="org.springframework.web.servlet.view.UrlBasedViewResolver" id="viewResolver"&gt;  
      &lt;property name="viewClass"&gt;  
      &lt;value&gt;  
          org.springframework.web.servlet.view.tiles3.TilesView  
      &lt;/value&gt;  
       &lt;/property&gt;  
  &lt;/bean&gt;  
  &lt;bean class="org.springframework.web.servlet.view.tiles3.TilesConfigurer" id="tilesConfigurer"&gt;  
      &lt;property name="definitions"&gt;  
       &lt;list&gt;  
           &lt;value&gt;/WEB-INF/tiles.xml&lt;/value&gt;  
       &lt;/list&gt;  
        &lt;/property&gt;  
  &lt;/bean&gt;
  
  
      &lt;bean id="dataSource"
          class="org.springframework.jdbc.datasource.DriverManagerDataSource"&gt;
          &lt;property name="driverClassName" value="${database.driver}" /&gt;
          &lt;property name="url" value="${database.url}" /&gt;
          &lt;property name="username" value="${database.user}" /&gt;
          &lt;property name="password" value="${database.password}" /&gt;
      &lt;/bean&gt;
  &lt;mvc:resources mapping="/resources/**" location="/resources/" /&gt; 
  &lt;!--    &lt;mvc:resources mapping="/theme/**" location="/theme/" /&gt;
      &lt;mvc:resources mapping="/script/**" location="/script/" /&gt; 
   --&gt;
      &lt;bean id="sessionFactory"
      class="org.springframework.orm.hibernate4.LocalSessionFactoryBean"&gt;
          &lt;!-- class="org.springframework.orm.hibernate4.annotation.AnnotationSessionFactoryBean"&gt; --&gt;
          &lt;property name="dataSource" ref="dataSource" /&gt;
          &lt;property name="annotatedClasses"&gt;
              &lt;list&gt;
                  &lt;value&gt;com.wbview.model.Employee&lt;/value&gt;
                  &lt;value&gt;com.wbview.model.UL&lt;/value&gt;              
              &lt;/list&gt;         
          &lt;/property&gt;
          &lt;property name="mappingResources"&gt;
              &lt;list&gt;
                  &lt;value&gt;com/wbview/model/ul.hbm.xml&lt;/value&gt;                          
              &lt;/list&gt;         
          &lt;/property&gt;
          &lt;property name="hibernateProperties"&gt;
              &lt;props&gt;
                  &lt;prop key="hibernate.dialect"&gt;${hibernate.dialect}&lt;/prop&gt;
                  &lt;prop key="hibernate.show_sql"&gt;${hibernate.show_sql}&lt;/prop&gt;
                  &lt;prop key="hibernate.hbm2ddl.auto"&gt;${hibernate.hbm2ddl.auto}&lt;/prop&gt; 
                  &lt;prop key="maxwait"&gt;10000&lt;/prop&gt;
                  &lt;prop key="maxidle"&gt;25&lt;/prop&gt;
                  &lt;prop key="minidle"&gt;5&lt;/prop&gt;            
              &lt;/props&gt;
          &lt;/property&gt;
      &lt;/bean&gt;
  
      &lt;bean id="hibernateTransactionManager"
          class="org.springframework.orm.hibernate4.HibernateTransactionManager"&gt;
          &lt;property name="sessionFactory" ref="sessionFactory" /&gt;
      &lt;/bean&gt;
  
  &lt;/beans&gt;
  </code></pre>
  
  <p>A small part of logincontroller</p>
  
  <pre><code>@Controller
  public class LoginController {
  
      @Autowired
      private LoginService loginService;
  
  
      @RequestMapping(value = "/", method = RequestMethod.GET)
      public ModelAndView welcome1() {
          return new ModelAndView("mflogin");
      }
  
      @RequestMapping(value = "/login", method = RequestMethod.GET)
      public ModelAndView welcome() {
          return new ModelAndView("mflogin");
      }
  
      @RequestMapping(value="/validateLogin", method = RequestMethod.POST)
      public ModelAndView validateLogin(@RequestParam("userId") String userId, HttpSession session) {     
          String sessionId = session.getId();
          session.setAttribute("userId", userId);
          session.setAttribute("sessionId", sessionId);
          System.out.println("User Id : 1 : "+userId +" : 1 : "+sessionId);
          boolean loginStatus= loginService.setUserLoginEntries(userId, sessionId, "L");
          if (loginStatus) 
              return new ModelAndView("welcome");
          else
              return new ModelAndView("mflogin"); 
      }
  
  
  &lt;%@ page import="org.apache.log4j.Logger,java.util.regex.*,java.net.*" errorPage="errorPage.jsp"%&gt;
  
  &lt;%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%&gt;
  &lt;%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%&gt;
  
  &lt;style&gt; 
  #loginBox {
      /*margin: 0.7in auto;*/    
      width: 60%;
      padding: 25px;
      text-align: center;
      background-color: #F3F2EE;
      border: 3px solid #fff; 
      vertical-align: middle;   
  }
  #loginBox p {
    padding:0;
    margin:2ex 0;
  }
  &lt;/style&gt;
  &lt;script type="text/javascript" src="resources/script/login.js"&gt;&lt;/script&gt; 
  &lt;script type="text/JavaScript"&gt;
    curvyCorners.addEvent(window, 'load', initCorners);  
    //window.onload=initCorners; 
    function initCorners() {
      var settings = {
        tl: { radius: 10 },
        tr: { radius: 10 },
        bl: { radius: 10 },
        br: { radius: 10 },
        antiAlias: true
      }
  
  
      curvyCorners(settings, "#loginBox");
      break_out_of_frame();    
      //document.loginform.userId.focus(); 
      setTimeout(function(){document.getElementById('userId').focus();},300);                 
    }
  
    var activebtn = "submitbtn";
      window.document.onkeydown = function(e) {
          if (!e){ var e = window.event; }      
          // Enter is pressed     
          if (e.keyCode == 13) 
              { 
                   if(activebtn=="submitbtn"){
                       submit_form();;
                   }               
              }        
      }
  
      function greenBtn(obj){
          if(obj.value.length&gt;0){
              document.getElementById("loginBtn").innerHTML = '&lt;a class="ovalbuttongreen" href="javascript:submit_form();" tabIndex="3" style="text-decoration:none;color:black;width:80px"&gt;&lt;span&gt;Login&lt;/span&gt;&lt;/a&gt;';
          }
      }
      function clearForm(){
          document.loginform.userId.value='';
          document.loginform.pswd.value=''
      }
      function submit_form(){
          //document.loginform.userId.value='';
          //document.loginform.pswd.value=''
          alert(document.loginform.userId.value);
          document.loginform.action="validateLogin.html";
          document.loginform.submit();
      }
  &lt;/script&gt;
  &lt;form:form id="loginform" name="loginform" method="post" action="validateLogin" &gt;
  
  &lt;div class="rcorn_box2" style="background-image:url('resources/img/globe_background.jpg');"&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;
      &lt;table border="0" cellspacing="0" cellpadding="0" width="100%" align="center"&gt;          
              &lt;tr&gt;&lt;td align="center" valign="middle"&gt;
                  &lt;div id="loginBox"&gt;
                      &lt;table cellspacing="0" cellpadding="0" width="100%" align="center" border="0"&gt;
                          &lt;tr&gt;&lt;td bgcolor="#E8EAE2"&gt;
                              &lt;table cellspacing="0" cellpadding="0" width="100%"&gt;
                                  &lt;tr&gt;
                                      &lt;td bgcolor="#E8EAE2" align="left" width="15%"&gt;&lt;img src="resources/img/CitiGroupWebView_LogoV2.gif" alt="" border="0"&gt;&lt;/td&gt;
                                      &lt;td bgcolor="#E8EAE2" width="85%"&gt;
                                          &lt;I&gt;&lt;B&gt;&lt;FONT face='Garamond (W1), Century, Times New Roman ,serif' color=1D5898 size=6&gt;Login&lt;/FONT&gt;&lt;/B&gt;&lt;/I&gt;
                                      &lt;/td&gt;
                                  &lt;/tr&gt; 
                              &lt;/table&gt;                            
                          &lt;/td&gt;&lt;/tr&gt;                      
                          &lt;tr&gt;&lt;td&gt;                            
                              &lt;input id="sortorder" type="hidden" name="sortorder" value="msg"&gt; 
                              &lt;input id="sortOrderType" type="hidden" name="sortOrderType" value="asc"&gt; 
                              &lt;input id="cmd" type="hidden" name="cmd" value="validateLogin"&gt;
                              &lt;TABLE bgColor=white border=0 cellPadding=2 cellSpacing=0 WIDTH='615'&gt;
                              &lt;TR&gt;
                                  &lt;TD width=15%&gt;&amp;nbsp;&lt;/TD&gt;
                                  &lt;TD width=15%&gt;&amp;nbsp;&lt;/TD&gt;
                                  &lt;TD width=10%&gt;&amp;nbsp;&lt;/TD&gt;
                                  &lt;TD width=10%&gt;&amp;nbsp;&lt;/TD&gt;
                                  &lt;TD width=30%&gt;&amp;nbsp;&lt;/TD&gt;
                              &lt;/TR&gt;                           
                              &lt;TR&gt;
                                  &lt;TD class="CB" colspan="5"&gt;
  
                                  &lt;/TD&gt;
                              &lt;/TR&gt;                           
                              &lt;TR&gt;
                                  &lt;TD colspan=5 align="center"&gt;&amp;nbsp;&lt;/TD&gt;
                              &lt;/TR&gt;
  
                              &lt;TR&gt;
                                  &lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
                                  &lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
                                  &lt;TD align="left" nowrap&gt;User ID &amp;nbsp;&lt;/TD&gt;
                                  &lt;TD align="left"&gt;&lt;Input type="text" name='userId' id='userId' maxlength='8' style="width:100px" value='&lt;%-- &lt;% if (request.getParameter("userId")!= null) { out.println(filterInputString(request.getParameter("userId"))); }%&gt; --%&gt;'&gt;&lt;/TD&gt;
                                  &lt;TD&gt;&amp;nbsp;&lt;/TD&gt;                             
                              &lt;/TR&gt;
                              &lt;TR&gt;
                                  &lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
                                  &lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
                                  &lt;TD align="left" nowrap&gt;Password &amp;nbsp;&lt;/TD&gt;
                                  &lt;TD align="left"&gt;&lt;input type="password" name='pswd' id='pswd' maxlength='12' style="width:100px" onKeyPress="greenBtn(this);" value='&lt;%-- &lt;% if (request.getParameter("pswd")!= null &amp;&amp; sPasswordExpired.equals("Y")) { out.println(request.getParameter("pswd")); }%&gt; --%&gt;'&gt;&lt;/TD&gt;
                                  &lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
                              &lt;/TR&gt;                           
                              &lt;TR&gt;
                                  &lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
                                  &lt;TD align="left" nowrap&gt;
  
                                  &lt;/TD&gt;
                                  &lt;TD align="left" nowrap&gt;
  
                                  &lt;/TD&gt;
                                  &lt;TD align="left"&gt;
  
                                  &lt;/TD&gt;
                                  &lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
                              &lt;/TR&gt;
                              &lt;TR&gt;
                                  &lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
                                  &lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
                                  &lt;TD align="left" nowrap&gt;
                                      &lt;div id=divPwdBlock3  name=divPwdBlock3 &lt;%-- &lt;% if (sPasswordExpired.equals("N")) { %&gt; --%&gt; style="visibility: hidden"&lt;%-- &lt;% } %&gt; --%&gt;&gt;Retype Password &amp;nbsp;&lt;/div&gt;
                                  &lt;/TD&gt;
                                  &lt;TD align="left"&gt;
                                      &lt;div id=divPwdBlock4 name=divPwdBlock4 &lt;%-- &lt;% if (sPasswordExpired.equals("N")) { %&gt;  --%&gt;style="visibility: hidden"&lt;%-- &lt;% } %&gt; --%&gt;&gt;
                                          &lt;Input type=password name='retypepswd' id='retypepswd' class='TS' style="width:100px" maxlength=12 size=14 value=''&gt;
                                      &lt;/div&gt;
                                  &lt;/TD&gt;
                                  &lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
                              &lt;/TR&gt;                           
                              &lt;TR&gt;
                                  &lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
                                  &lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
                                  &lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
                                  &lt;TD align="left"&gt;
                                      &lt;div class="buttonwrapper" id="loginBtn"&gt;
                                          &lt;a class="ovalbutton" href="javascript:submit_form();" style="cursor:hand;text-decoration:none;color:black;width:80px"&gt;&lt;span&gt;Login&lt;/span&gt;&lt;/a&gt;
                                      &lt;/div&gt;
                                  &lt;/TD&gt;
                                  &lt;TD align="left"&gt;
                                      &lt;div class="buttonwrapper" id="clearBtn"&gt;
                                          &lt;a class="ovalbutton" href="javascript:clearForm();" style="cursor:hand;text-decoration:none;color:black;width:80px"&gt;&lt;span&gt;Clear&lt;/span&gt;&lt;/a&gt;
                                      &lt;/div&gt;
                                  &lt;/TD&gt;
                              &lt;/TR&gt;
                              &lt;%-- &lt;%}else{%&gt; --%&gt;
                                  &lt;tr&gt;&lt;td colspan="5" height="100px"&gt;&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;
                              &lt;%-- &lt;%}%&gt; --%&gt;
                              &lt;TR&gt;
                                  &lt;%-- &lt;% if (request.getAttribute("errMsg") == null) { %&gt; --%&gt;
                                      &lt;TD colspan=5&gt;&lt;br&gt;&lt;/TD&gt;
                                  &lt;%-- &lt;% } else { %&gt; --%&gt;
                                      &lt;TD colspan=5 class="LB"&gt;&lt;%=request.getAttribute("errMsg")%&gt;&lt;br&gt;&lt;/TD&gt;
                                  &lt;%-- &lt;% } %&gt; --%&gt;
                              &lt;/TR&gt;                           
                              &lt;TR&gt;
                                  &lt;TD colspan=5 align="center"&gt;&amp;nbsp;If you are experiencing any difficulties, please reference our &lt;a target="_blank" href="ReportServlet?cmd=sharePoint"&gt;Sharepoint Site&lt;/a&gt;
                                      &lt;br&gt;&lt;br&gt;Also visit our &lt;a target="_blank" href="ReportServlet?cmd=sharePoint"&gt;Sharepoint Site&lt;/a&gt; for access instructions, training, and request forms
                                  &lt;/TD&gt;
                              &lt;/TR&gt;
                              &lt;TR&gt;
                                  &lt;TD colspan=5 align="center"&gt;&lt;/TD&gt;
                              &lt;/TR&gt;
                              &lt;TR&gt;
                                  &lt;TD colspan=5 align="center"&gt;
                                      &lt;a target="_blank" href="https://globalconsumer.collaborationtools.consumer.citigroup.net/sites/webview/Web%20View%20Training1/AboutWebView.pdf"&gt;About Web View&lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;
                                      &lt;a target="_blank" href="https://globalconsumer.collaborationtools.consumer.citigroup.net/sites/webview/Password%20Reset/How%20to%20%20reset%20your%20Web%20View%20password.pdf"&gt;Password Reset&lt;/a&gt;
                                  &lt;/TD&gt;
                              &lt;/TR&gt;
                              &lt;TR&gt;
                              &lt;TD colspan=5 align="center"&gt;&lt;font color="#B5B6CF"&gt; 
                              &lt;p align="justify" style="padding-left:10px;padding-right:10px"&gt;Please be aware that the files you are requesting contains sensitive information and will be written to your temporary 
                              internet file cache on your workstation and is accessible offline from that location. Please clean up your temporary internet cache for security reasons.
                              &lt;/p&gt;&lt;/font&gt;&lt;/TD&gt;
                              &lt;/TR&gt;                                                       
                          &lt;/table&gt;
                              &lt;font color="#5D5D5D"&gt; 
                              &lt;p align="justify" style="padding-left:10px;padding-right:10px"&gt;You are authorized to use this System for approved business purposes only. Use for any other purpose is prohibited. All transactional records, reports, email, 
                              software and other data generated by or residing upon this System, to the extent permitted by local law, are the property of Citigroup Inc. or one of its subsidiaries
                               or their affiliates (individually or collectively ' Citigroup ') and may be used by Citigroup for any purpose authorized and permissible in your country of work. Activities on this System are monitored to the extent permitted by local law.
                              &lt;/p&gt;&lt;/font&gt;                     
                          &lt;/td&gt;&lt;/tr&gt;
                      &lt;/table&gt;
                  &lt;/div&gt;
                  &lt;/td&gt;           
              &lt;/tr&gt;           
      &lt;/table&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;
  &lt;/div&gt;
  &lt;/form:form&gt;
  </code></pre>
  
  <p>The Main Problem is when iam not including the resources  in                    mvc-dispatcher-servlet.xml i.e.                                                     
  My page is getting loaded with no images or themes or css.</p>
  
  <p>the console logs are as below</p>
  
  <pre><code>08/18/2015 22:15:19.192|;|PageNotFound|;|No mapping found for HTTP request with URI [/SpringMVCDemo/script/curvycorners.src.js] in DispatcherServlet with name 'mvc-dispatcher'
  08/18/2015 22:15:19.228|;|PageNotFound|;|No mapping found for HTTP request with URI [/SpringMVCDemo/theme/buttons.css] in DispatcherServlet with name 'mvc-dispatcher'
  08/18/2015 22:15:19.249|;|PageNotFound|;|No mapping found for HTTP request with URI [/SpringMVCDemo/img/banner_1.jpg] in DispatcherServlet with name 'mvc-dispatcher'
  08/18/2015 22:15:19.312|;|PageNotFound|;|No mapping found for HTTP request with URI [/SpringMVCDemo/theme/tab_support.css] in DispatcherServlet with name 'mvc-dispatcher'
  08/18/2015 22:15:19.328|;|PageNotFound|;|No mapping found for HTTP request with URI [/SpringMVCDemo/resources/img/fitiGroupWebView_LogoV2.gif] in DispatcherServlet with name 'mvc-dispatcher'
  08/18/2015 22:15:19.343|;|PageNotFound|;|No mapping found for HTTP request with URI [/SpringMVCDemo/img/f_cglogo11.gif] in DispatcherServlet with name 'mvc-dispatcher'
  08/18/2015 22:15:19.359|;|PageNotFound|;|No mapping found for HTTP request with URI [/SpringMVCDemo/resources/script/login.js] in DispatcherServlet with name 'mvc-dispatcher'
  08/18/2015 22:15:21.241|;|PageNotFound|;|No mapping found for HTTP request with URI [/SpringMVCDemo/img/spacer.gif] in DispatcherServlet with name 'mvc-dispatcher'
  08/18/2015 22:15:21.867|;|PageNotFound|;|No mapping found for HTTP request with URI [/SpringMVCDemo/resources/img/globe_background.jpg] in DispatcherServlet with name 'mvc-dispatcher'
  </code></pre>
  
  <p>when iam defining the resources path in the mvc-dispatcher-servlet.xml iam getting error as below </p>
  
  <pre><code>HTTP Status 404 - 
  
  
  type Status report
  
  message 
  
  description The requested resource is not available.
  
  --------------------------------------------------------------------------------
  
  Apache Tomcat/8.0.20
  </code></pre>
  
  <p>in Console as <code>08/18/2015 22:32:23.817|;|PageNotFound|;|No mapping found for HTTP request with URI [/SpringMVCDemo/] in DispatcherServlet with name 'mvc-dispatcher'</code></p>
  
  <p>I have tried with changing url-pattern </p>
  
  <pre><code>&lt;url-pattern&gt;/&lt;/url-pattern&gt;
  
  to 
  
  &lt;url-pattern&gt;/*&lt;/url-pattern&gt;
  </code></pre>
  
  <p>but no success .</p>
  
  <p>Can anyone please help me iam struck  </p>