error.jsp revision 1281
5c099afa7c9361afc2f4477fec0e3018588d7840Allan FosterCDDL HEADER START
5c099afa7c9361afc2f4477fec0e3018588d7840Allan FosterThe contents of this file are subject to the terms of the
5c099afa7c9361afc2f4477fec0e3018588d7840Allan FosterCommon Development and Distribution License (the "License").
5c099afa7c9361afc2f4477fec0e3018588d7840Allan FosterYou may not use this file except in compliance with the License.
5c099afa7c9361afc2f4477fec0e3018588d7840Allan FosterSee LICENSE.txt included in this distribution for the specific
5c099afa7c9361afc2f4477fec0e3018588d7840Allan Fosterlanguage governing permissions and limitations under the License.
5c099afa7c9361afc2f4477fec0e3018588d7840Allan FosterWhen distributing Covered Code, include this CDDL HEADER in each
5c099afa7c9361afc2f4477fec0e3018588d7840Allan Fosterfile and include the License file at LICENSE.txt.
5c099afa7c9361afc2f4477fec0e3018588d7840Allan FosterIf applicable, add the following below this CDDL HEADER, with the
5c099afa7c9361afc2f4477fec0e3018588d7840Allan Fosterfields enclosed by brackets "[]" replaced with your own identifying
5c099afa7c9361afc2f4477fec0e3018588d7840Allan Fosterinformation: Portions Copyright [yyyy] [name of copyright owner]
5c099afa7c9361afc2f4477fec0e3018588d7840Allan FosterCDDL HEADER END
5c099afa7c9361afc2f4477fec0e3018588d7840Allan FosterCopyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
5c099afa7c9361afc2f4477fec0e3018588d7840Allan FosterPortions Copyright 2011 Jens Elkner.
5c099afa7c9361afc2f4477fec0e3018588d7840Allan Foster--%><%@ page session="false" isErrorPage="true" import="
5c099afa7c9361afc2f4477fec0e3018588d7840Allan Foster/* ---------------------- error.jsp start --------------------- */
5c099afa7c9361afc2f4477fec0e3018588d7840Allan Foster cfg = PageConfig.get(request);
5c099afa7c9361afc2f4477fec0e3018588d7840Allan Foster String context = request.getContextPath();
5c099afa7c9361afc2f4477fec0e3018588d7840Allan Foster String configError = "";
5c099afa7c9361afc2f4477fec0e3018588d7840Allan Foster if (cfg.getSourceRootPath().isEmpty()) {
5c099afa7c9361afc2f4477fec0e3018588d7840Allan Foster configError = "CONFIGURATION parameter has not been configured in "
5c099afa7c9361afc2f4477fec0e3018588d7840Allan Foster + "web.xml! Please configure your webapp.";
5c099afa7c9361afc2f4477fec0e3018588d7840Allan Foster } else if (!cfg.getEnv().getSourceRootFile().isDirectory()) {
5c099afa7c9361afc2f4477fec0e3018588d7840Allan Foster configError = "The source root specified in your configuration does "
5c099afa7c9361afc2f4477fec0e3018588d7840Allan Foster + "not point to a valid directory! Please configure your webapp.";
5c099afa7c9361afc2f4477fec0e3018588d7840Allan Foster<div id="page">
5c099afa7c9361afc2f4477fec0e3018588d7840Allan Foster <div id="whole_header">
5c099afa7c9361afc2f4477fec0e3018588d7840Allan Foster <div id="header">
5c099afa7c9361afc2f4477fec0e3018588d7840Allan Foster <div id="Masthead"></div>
5c099afa7c9361afc2f4477fec0e3018588d7840Allan Foster <div id="sbar"><%@
5c099afa7c9361afc2f4477fec0e3018588d7840Allan Foster <h3 class="error">There was an error!</h3>
5c099afa7c9361afc2f4477fec0e3018588d7840Allan Foster <p class="error"><%= configError %></p><%
5c099afa7c9361afc2f4477fec0e3018588d7840Allan Foster if (exception != null) {
5c099afa7c9361afc2f4477fec0e3018588d7840Allan Foster <p class="error"><%= exception.getMessage() %></p>
5c099afa7c9361afc2f4477fec0e3018588d7840Allan Foster StringWriter wrt = new StringWriter();
5c099afa7c9361afc2f4477fec0e3018588d7840Allan Foster PrintWriter prt = new PrintWriter(wrt);
5c099afa7c9361afc2f4477fec0e3018588d7840Allan Foster %><p class="error">Unknown Error</p><%
5c099afa7c9361afc2f4477fec0e3018588d7840Allan Foster/* ---------------------- error.jsp end --------------------- */