1281N/A<%--
0N/ACDDL HEADER START
0N/A
0N/AThe contents of this file are subject to the terms of the
1281N/ACommon Development and Distribution License (the "License").
0N/AYou may not use this file except in compliance with the License.
0N/A
0N/ASee LICENSE.txt included in this distribution for the specific
0N/Alanguage governing permissions and limitations under the License.
0N/A
0N/AWhen distributing Covered Code, include this CDDL HEADER in each
0N/Afile and include the License file at LICENSE.txt.
0N/AIf applicable, add the following below this CDDL HEADER, with the
0N/Afields enclosed by brackets "[]" replaced with your own identifying
0N/Ainformation: Portions Copyright [yyyy] [name of copyright owner]
0N/A
0N/ACDDL HEADER END
0N/A
1105N/ACopyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
1186N/APortions Copyright 2011 Jens Elkner.
0N/A
1186N/A--%><%@ page session="false" isErrorPage="true" import="
1478N/Ajava.util.ArrayList,
1186N/Ajava.io.PrintWriter,
1186N/Ajava.io.StringWriter,
1478N/Ajava.util.EnumSet,
1478N/Ajava.util.List,
1478N/Ajava.util.Map.Entry,
1478N/Ajava.util.SortedSet,
1478N/Ajava.util.TreeMap,
1186N/A
1478N/Aorg.opensolaris.opengrok.Info,
1478N/Aorg.opensolaris.opengrok.configuration.Project,
1478N/Aorg.opensolaris.opengrok.search.QueryBuilder,
1478N/Aorg.opensolaris.opengrok.web.PageConfig,
1478N/Aorg.opensolaris.opengrok.web.Prefix,
1478N/Aorg.opensolaris.opengrok.web.Util,
1478N/Aorg.opensolaris.opengrok.web.WebappListener"
1186N/A%><%
1186N/A/* ---------------------- error.jsp start --------------------- */
1186N/A{
1281N/A cfg = PageConfig.get(request);
1281N/A cfg.setTitle("Error!");
1186N/A
1281N/A String context = request.getContextPath();
1281N/A String configError = "";
1281N/A if (cfg.getSourceRootPath().isEmpty()) {
1281N/A configError = "CONFIGURATION parameter has not been configured in "
1281N/A + "web.xml! Please configure your webapp.";
1470N/A } else if (!cfg.getConfig().getSourceRootFile().isDirectory()) {
1281N/A configError = "The source root specified in your configuration does "
1281N/A + "not point to a valid directory! Please configure your webapp.";
1281N/A }
1281N/A%><%@
1186N/A
1281N/Ainclude file="httpheader.jspf"
1186N/A
1186N/A%>
1364N/A<body class="yui3-skin-sam">
0N/A<div id="page">
1281N/A <div id="whole_header">
1281N/A <div id="header">
1186N/A<%@
1281N/A
1186N/Ainclude file="pageheader.jspf"
1186N/A
1186N/A%>
1281N/A </div>
1281N/A <div id="Masthead"></div>
1281N/A <div id="sbar"><%@
1186N/A
1186N/Ainclude file="menu.jspf"
1186N/A
1281N/A %></div>
1281N/A </div>
1281N/A <h3 class="error">There was an error!</h3>
1281N/A <p class="error"><%= configError %></p><%
1281N/A if (exception != null) {
0N/A%>
1281N/A <p class="error"><%= exception.getMessage() %></p>
1281N/A <pre><%
1281N/A StringWriter wrt = new StringWriter();
1281N/A PrintWriter prt = new PrintWriter(wrt);
1281N/A exception.printStackTrace(prt);
1281N/A prt.close();
1281N/A out.write(Util.htmlize(wrt.toString()));
1281N/A %></pre><%
1281N/A } else {
1281N/A %><p class="error">Unknown Error</p><%
1281N/A }
1186N/A}
1186N/A/* ---------------------- error.jsp end --------------------- */
1186N/A%><%@
1186N/A
1186N/Ainclude file="foot.jspf"
1186N/A
1186N/A%>