title: New Servlet 3.0 global error page feature does not work on Tomcat 7
body: <p>The Servlet 3.0 specification states that a global error message can be listed in the <code>web.xml</code> to encompass all server errors.</p>
  
  <p>Example:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;error-page&gt;
      &lt;location&gt;/error.jsp&lt;/location&gt;
  &lt;/error-page&gt;
  </code></pre>
  
  <p>Old Method:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;error-page&gt;
      &lt;error-code&gt;401&lt;/error-code&gt;
      &lt;location&gt;/error.jsp&lt;/location&gt;
  &lt;/error-page&gt;
  </code></pre>
  
  <p>When adding this new method to my <code>web.xml</code> in Tomcat 7, it does not work. How is this caused and how can I solve it?</p>