title: Web application on tomcat sending response as text/html instead of text/css as request is for css loading & page not loading properly
body: <p>I have put static files outside of war file(Not in Apache2) and accessing by putting context entry in server.xml file &amp; all in ubuntu environment(VM) 
  Like below:</p>
  
  <pre><code>&lt;Context path="/my_app" docBase="my_app.war"&gt; 
              &lt;Resources className="org.apache.catalina.webresources.StandardRoot"&gt;
                &lt;PostResources className="org.apache.catalina.webresources.DirResourceSet"
                                   base="/opt/tomcat/datacom/virtualwebserver/"
                                   webAppMount="/"&gt;
                &lt;/PostResources&gt;
              &lt;/Resources&gt;
   &lt;/Context&gt;
  </code></pre>
  
  <p>Note:Tomcat web.xml has a mime-type entry for text/CSS already</p>
  
  <p>My Web Application web.xml contains below entries:</p>
  
  <pre><code>&lt;welcome-file-list&gt;
  
          &lt;welcome-file&gt;/jsp/login/welcome.jsp&lt;/welcome-file&gt;
  
      &lt;/welcome-file-list&gt;
      &lt;mime-mapping&gt;
          &lt;extension&gt;js&lt;/extension&gt;
          &lt;mime-type&gt;application/javascript&lt;/mime-type&gt;
      &lt;/mime-mapping&gt;
      &lt;mime-mapping&gt;
          &lt;extension&gt;css&lt;/extension&gt;
          &lt;mime-type&gt;text/css&lt;/mime-type&gt;
      &lt;/mime-mapping&gt;
      &lt;mime-mapping&gt;
          &lt;extension&gt;jpg&lt;/extension&gt;
          &lt;mime-type&gt;image/jpeg&lt;/mime-type&gt;
      &lt;/mime-mapping&gt;
  
      &lt;filter&gt;
          &lt;filter-name&gt;requestLog&lt;/filter-name&gt;
          &lt;filter-class&gt;com.dci.db4.filter.RequestLog&lt;/filter-class&gt;
      &lt;/filter&gt;
  
      &lt;filter&gt;
        &lt;filter-name&gt;struts2&lt;/filter-name&gt;
         &lt;filter-class&gt;org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter&lt;/filter-class&gt;
      &lt;/filter&gt;
  </code></pre>