Add some error to deal with uncaught exceptions and 404 errors
authorlajoie <lajoie@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Sat, 12 Jan 2008 11:04:10 +0000 (11:04 +0000)
committerlajoie <lajoie@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Sat, 12 Jan 2008 11:04:10 +0000 (11:04 +0000)
git-svn-id: https://subversion.switch.ch/svn/shibboleth/java-idp/trunk@2570 ab3bd59b-922f-494d-bb5f-6f0a3c29deca

resources/WEB-INF/web.xml
resources/webpages/idp-404.jsp [new file with mode: 0644]
resources/webpages/idp-exception.jsp [new file with mode: 0644]
resources/webpages/login-error.jsp [moved from resources/webpages/error.jsp with 100% similarity]

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>
 -->
diff --git a/resources/webpages/idp-404.jsp b/resources/webpages/idp-404.jsp
new file mode 100644 (file)
index 0000000..cf9f54d
--- /dev/null
@@ -0,0 +1,10 @@
+<html>
+
+<body>
+       <img src="<%= request.getContextPath() %>/images/logo.jpg" />
+       <h3>ERROR</h3>
+       Error Message: Invalid identity provider profile URL.
+       
+</body>
+
+</html>
\ No newline at end of file
diff --git a/resources/webpages/idp-exception.jsp b/resources/webpages/idp-exception.jsp
new file mode 100644 (file)
index 0000000..d199d7b
--- /dev/null
@@ -0,0 +1,10 @@
+<html>
+
+<body>
+       <img src="<%= request.getContextPath() %>/images/logo.jpg" />
+       <h3>ERROR</h3>
+       Error Message: The identity provider encountered an internal error.
+       
+</body>
+
+</html>
\ No newline at end of file