You rather use this. This might help you..
<error-page>
<error-code>404</error-code>
<location>/exception/404.htm</location>
</error-page>
<error-page>
<exception-type>java.lang.Exception</exception-type>
<location>/exception</location>
</error-page>