title: Missing static resources from Spring MVC
body: <p>I have a Spring MVC 4.x application which has several static resources defined in the application context XML file as:</p>
  
  <pre><code>&lt;mvc:resources mapping="/css/**" location="classpath:/css/" /&gt;
  &lt;mvc:resources mapping="/images/**" location="classpath:/images/" /&gt;
  &lt;mvc:resources mapping="/js/**" location="classpath:/js/" /&gt;
  &lt;mvc:resources mapping="/static/**" location="classpath:/static/" /&gt;
  &lt;mvc:resources mapping="/static2/**" location="/static/" /&gt;
  </code></pre>
  
  <p>These files are stored in the "/webapp/static/" directory and in the "/resources/static/" directory (see mappings for <code>static2/</code> and <code>static/</code> respectively. There are some files in a "js" and "css" subdirectory which are accessible but the files I added recently are returning 404 errors when I try to access them via a local Tomcat server controlled via Netbeans.</p>
  
  <p>I've tried many changes to my spring configuration and looked at the solutions in:</p>
  
  <ul>
  <li><a href="https://stackoverflow.com/questions/1483063/spring-mvc-3-and-handling-static-content-am-i-missing-something">Spring MVC 3 Handling Static Content</a></li>
  <li><a href="https://stackoverflow.com/questions/14544854/spring-mvc-static-resource-mapping">Spring MVC Static Resource Handling</a></li>
  <li><a href="https://stackoverflow.com/questions/8195213/spring-3-mvc-resources-and-tag-mvcresources/8195414#8195414">Spring 3 MVC Resources and tag <code>&lt;mvc: resources /&gt;</code></a></li>
  <li><a href="https://stackoverflow.com/questions/25440502/spring-mvc-not-loading-static-resources-from-webapp">Spring MVC not loading static resources from webapp</a></li>
  <li><a href="https://stackoverflow.com/questions/15479213/how-to-serve-html-files-with-spring">How to serve .html files with Spring</a></li>
  <li><a href="https://stackoverflow.com/questions/27697878/spring-mvc-resource-mapping">Spring MVC Resource Mapping</a></li>
  </ul>
  
  <p>The farthest I've gotten is to be able to load an html file loaded in the root of the "resources/static/" directory, but am not able to get any files from "resources/static/vendor" to load in the web browser.</p>