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,
1478N/Ajava.util.EnumSet,
1478N/Ajava.util.List,
1478N/Ajava.util.Map.Entry,
1478N/Ajava.util.SortedSet,
1478N/Ajava.util.TreeMap,
1478N/A
1478N/Aorg.opensolaris.opengrok.Info,
1478N/Aorg.opensolaris.opengrok.configuration.Project,
1478N/Aorg.opensolaris.opengrok.search.QueryBuilder,
1478N/Aorg.opensolaris.opengrok.web.Prefix,
1478N/Aorg.opensolaris.opengrok.web.PageConfig,
1478N/Aorg.opensolaris.opengrok.web.Util,
1478N/Aorg.opensolaris.opengrok.web.WebappListener"
1478N/A%><%
1186N/A/* ---------------------- enoent.jsp start --------------------- */
1186N/A{
1281N/A cfg = PageConfig.get(request);
1281N/A cfg.setTitle("File not found");
1186N/A
1281N/A String context = request.getContextPath();
1470N/A cfg.getConfig().setUrlPrefix(context + Prefix.SEARCH_R + '?');
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 }
1186N/A%><%@
1186N/A
1186N/Ainclude file="httpheader.jspf"
0N/A
1364N/A%><body class="yui3-skin-sam">
1186N/A<div id="page">
1281N/A <div id="whole_header">
1281N/A <div id="header"><%@
1186N/A
1186N/Ainclude file="pageheader.jspf"
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">Error: File not found!</h3>
1281N/A <p>The requested resource is not available. <%= configError %></p>
1186N/A<%
0N/A}
1186N/A/* ---------------------- enoent.jsp end --------------------- */
1186N/A%><%@
1281N/A
1186N/Ainclude file="foot.jspf"
1186N/A
1186N/A%>