title: Servlet Filter url-mapping /* is not working on 404 errors
body: <p>I'm using Resin Server &amp; Apache 2.2 with virtual hosting.
  Here I'm facing a big challenge in calling a concrete filter. 
  I'm having a generic Filter class to process all the incoming request.</p>
  
  <p>Ex: www.example.com/hello this hello is not calling the below filter instead it throwing file not found error(404).</p>
  
  <p>If "hello" is having a proper servlet mapping then the below filter is working.</p>
  
  <p><strong>Web.xml :</strong></p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;filter&gt;
    &lt;filter-name&gt;CorpFilter&lt;/filter-name&gt;
    &lt;filter-class&gt;com.filter.CorpFilter&lt;/filter-class&gt;
  &lt;/filter&gt;
  &lt;filter-mapping&gt;
      &lt;filter-name&gt;CorpFilter&lt;/filter-name&gt;
      &lt;url-pattern&gt;/*&lt;/url-pattern&gt;
  &lt;/filter-mapping&gt;
  </code></pre>
  
  <p><strong>Apache Log :</strong></p>
  
  <blockquote>
    <p>[Fri Jan 04 22:05:07 2013] [error] [client xxx.xxx.xxx.xxx]  File does
    not exist: /home/xxxx/public_html/hello</p>
  </blockquote>
  
  <p>Why the servlet filter is not being called and throwing 404 error?
  Servlet filter is initializing properly.</p>
  
  <p>Thanks,</p>