[jboss-svn-commits] JBL Code SVN: r30735 - in labs/jbossesb/branches/JBESB_4_7_CP/product/contract-web/src/main/webapp: WEB-INF and 1 other directory.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Wed Dec 16 15:51:28 EST 2009
Author: dward
Date: 2009-12-16 15:51:28 -0500 (Wed, 16 Dec 2009)
New Revision: 30735
Added:
labs/jbossesb/branches/JBESB_4_7_CP/product/contract-web/src/main/webapp/genericError.jsp
Modified:
labs/jbossesb/branches/JBESB_4_7_CP/product/contract-web/src/main/webapp/WEB-INF/web.xml
Log:
Fix for JBESB-3062 ( https://jira.jboss.org/jira/browse/JBESB-3062 )
Modified: labs/jbossesb/branches/JBESB_4_7_CP/product/contract-web/src/main/webapp/WEB-INF/web.xml
===================================================================
--- labs/jbossesb/branches/JBESB_4_7_CP/product/contract-web/src/main/webapp/WEB-INF/web.xml 2009-12-16 20:35:52 UTC (rev 30734)
+++ labs/jbossesb/branches/JBESB_4_7_CP/product/contract-web/src/main/webapp/WEB-INF/web.xml 2009-12-16 20:51:28 UTC (rev 30735)
@@ -3,5 +3,10 @@
"http://java.sun.com/dtd/web-app_2_3.dtd" >
<web-app>
- <display-name>Archetype Created Web Application</display-name>
+ <display-name>JBoss ESB - Service List and Contract Output</display-name>
+ <!-- Display a generic error page when HTTP Status 500 exceptions occur. -->
+ <error-page>
+ <error-code>500</error-code>
+ <location>/genericError.jsp</location>
+ </error-page>
</web-app>
Added: labs/jbossesb/branches/JBESB_4_7_CP/product/contract-web/src/main/webapp/genericError.jsp
===================================================================
--- labs/jbossesb/branches/JBESB_4_7_CP/product/contract-web/src/main/webapp/genericError.jsp (rev 0)
+++ labs/jbossesb/branches/JBESB_4_7_CP/product/contract-web/src/main/webapp/genericError.jsp 2009-12-16 20:51:28 UTC (rev 30735)
@@ -0,0 +1,38 @@
+<%-- A simple error page. --%>
+
+<%@ page import="org.apache.catalina.util.ServerInfo,
+ org.apache.catalina.valves.Constants,
+ org.apache.catalina.util.StringManager" %>
+<%@ page isErrorPage="true" %>
+
+<html>
+ <head>
+ <style>
+ <!--H1 {font-family:Tahoma, Arial, sans-serif; color:white;
+ background-color:#525D76; font-size:22px;}
+ H3 {font-family:Tahoma, Arial, sans-serif; color:white;
+ background-color:#525D76; font-size:14px;}
+ HR {color:#525D76;}
+ .errorText {font-family:Tahoma, Arial, sans-serif; font-size:16px; } -->
+ </style>
+ <title>
+ <%
+ StringManager sm = StringManager.getManager(Constants.Package);
+ out.println(ServerInfo.getServerInfo() + " - "
+ + sm.getString("errorReportValve.errorReport"));
+ %>
+ </title>
+ </head>
+ <body>
+ <h1>
+ <%
+ out.println(sm.getString("errorReportValve.statusHeader",
+ "" + pageContext.getErrorData().getStatusCode(), ""));
+ %>
+ </h1>
+ <hr size="1" noshade="noshade">
+ <span class="errorText">An error has occurred.</span>
+ <hr size="1" noshade="noshade">
+ <h3><%= ServerInfo.getServerInfo() %></h3>
+ </body>
+</html>
Property changes on: labs/jbossesb/branches/JBESB_4_7_CP/product/contract-web/src/main/webapp/genericError.jsp
___________________________________________________________________
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
More information about the jboss-svn-commits
mailing list