title: Can't get Tomcat to serve some static files while using Spring MVC
body: <p>I'm using Tomcat 7 and want to serve a simple login screen and afterwards direct the user to a Spring MVC / EXT-JS based portal. In the web.xml I defined access to the spring area like this:</p>
  
  <pre><code>&lt;servlet&gt;
      &lt;servlet-name&gt;portal-web&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/portal-web-servlet-app-ctx.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;portal-web&lt;/servlet-name&gt;
      &lt;url-pattern&gt;/portal/*&lt;/url-pattern&gt;
  &lt;/servlet-mapping&gt;
  </code></pre>
  
  <p>And this part works fine (URLs to /portal/* are directed correctly). However my static login page is now not served and /index.html and /css/*.css calls return a 404 error. I tried adding the following to my web.xml:</p>
  
  <pre><code>&lt;welcome-file-list&gt;
      &lt;welcome-file&gt;index.html&lt;/welcome-file&gt;
  &lt;/welcome-file-list&gt;
  </code></pre>
  
  <p>And that did give me access to /index.html, but the css files are still not accessible.</p>
  
  <p>Here is my project layout:</p>
  
  <pre><code>-src
      -main
          +extjs
          +java
          -resources
              hibernate.cfg.xml
              log4j2.xml
          -webapp
              -css
                  first.css
                  second.css
              +WEB-INF
              index.html
  </code></pre>
  
  <p>Why isn't tomcat serving the static files under webapp/css?</p>
  
  <p>Thanks!</p>