Add some error to deal with uncaught exceptions and 404 errors
[java-idp.git] / resources / WEB-INF / web.xml
index 058e5a6..b7065ab 100644 (file)
         <servlet-name>UsernamePasswordAuthHandler</servlet-name>
         <url-pattern>/Authn/UserPassword</url-pattern>
     </servlet-mapping>
+    
+    <error-page>
+        <exception-type>java.lang.Exception</exception-type>
+        <location>/idp-error.jsp</location>
+    </error-page>
+    
+    <error-page>
+        <error-code>404</error-code>
+        <location>/idp-404.jsp</location>
+    </error-page>
 
 <!-- Uncomment to use container managed authentication -->
 <!--
         <realm-name>IdP Password Authentication</realm-name>
         <form-login-config>
             <form-login-page>/login.jsp</form-login-page>
-            <form-error-page>/error.jsp</form-error-page>
+            <form-error-page>/login-error.jsp</form-error-page>
         </form-login-config>
     </login-config>
 -->