title: Custom <error-page> is being ignored (only for certain paths)
body: <p>For some reason my </p>
  
  <pre><code>&lt;error-page&gt;
      &lt;error-code&gt;404&lt;/error-code&gt;
      &lt;location&gt;/error/error.html&lt;/location&gt;
  &lt;/error-page&gt;
  </code></pre>
  
  <p>which is defined in <em>tomcat\conf\web.xml</em> is being ignored when I'm trying to access the following path</p>
  
  <p><em>WebAppName/javax.faces.resource/anyFileName.jsf</em></p>
  
  <p>I know that its cause of the <em>javax.faces.resource</em> prefix and the <em>.jsf</em> suffix combined together...</p>
  
  <p>cause if I change one of them I do get the custom error page</p>
  
  <p>I do know that its not a common path to pick, but still I wonder how can I make it use my custom <code>error-page</code></p>
  
  <p>b.t.w , I'm using <em>myfaces 2.0.11</em></p>
  
  <hr>
  
  <p>One way could be </p>
  
  <p>1) Create a custom filter</p>
  
  <p>2) Get path of the requested resource</p>
  
  <p>3) Check if path exists <code>file.exists()</code></p>
  
  <p>4) If not exist call <code>response.sendError(404, "Cannot find " + path);</code> otherwise call <code>chain.doFilter(req, res);</code></p>
  
  <p>But I don't like this approach at all, it's an <em>OverKill</em> IMO...</p>
  
  <p>So still wonder if there is a better way...</p>