error.jsp revision 9ec7787531611654e8f50932473aa48963eaba55
12N/A<%--
12N/ACDDL HEADER START
12N/A
12N/AThe contents of this file are subject to the terms of the
12N/ACommon Development and Distribution License (the "License").
12N/AYou may not use this file except in compliance with the License.
12N/A
12N/ASee LICENSE.txt included in this distribution for the specific
12N/Alanguage governing permissions and limitations under the License.
12N/A
12N/AWhen distributing Covered Code, include this CDDL HEADER in each
12N/Afile and include the License file at LICENSE.txt.
12N/AIf applicable, add the following below this CDDL HEADER, with the
12N/Afields enclosed by brackets "[]" replaced with your own identifying
12N/Ainformation: Portions Copyright [yyyy] [name of copyright owner]
12N/A
12N/ACDDL HEADER END
12N/A
12N/ACopyright 2005 Sun Microsystems, Inc. All rights reserved.
12N/AUse is subject to license terms.
12N/A
12N/Aident "%Z%%M% %I% %E% SMI"
12N/A
12N/A--%><%@ page import = "javax.servlet.*,
12N/Ajava.lang.Integer,
12N/Ajavax.servlet.http.*,
12N/Ajava.util.Hashtable,
12N/Ajava.util.Vector,
12N/Ajava.util.Date,
12N/Ajava.util.ArrayList,
12N/Ajava.lang.*,
12N/Ajava.io.*,
30N/Ajava.io.StringReader,
30N/Aorg.apache.lucene.spell.*,
12N/Aorg.apache.lucene.analysis.*,
12N/Aorg.apache.lucene.document.*,
12N/Aorg.apache.lucene.index.*,
12N/Aorg.apache.lucene.search.*,
12N/Aorg.apache.lucene.queryParser.*,
12N/Aorg.opensolaris.opengrok.configuration.*"
12N/A%><%@ page session="false" %><%@ page isErrorPage="true" %><%
30N/AString context = request.getContextPath();
30N/ARuntimeEnvironment env = RuntimeEnvironment.getInstance();
29N/Aenv.register();
29N/AString rawSource = env.getSourceRootPath();
29N/AString configError = "";
29N/Aif ("".equals(rawSource)) {
59N/A configError = "SRC_ROOT parameter has not been configured in web.xml! Please configure your webapp.";
29N/A} else {
29N/A if (!env.getSourceRootFile().isDirectory()) {
59N/A configError = "SRC_ROOT parameter in web.xml does not point to a valid directory! Please configure your webapp.";
59N/A }
59N/A}
12N/A%><?xml version="1.0" encoding="iso-8859-1"?>
12N/A<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
59N/A<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US">
12N/A<head>
12N/A <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
12N/A <title>Error!</title>
12N/A <link rel="icon" href="<%=context%>/img/icon.png" type="image/png"/>
12N/A <link rel="stylesheet" type="text/css" href="<%=context%>/style.css"/>
12N/A <link rel="stylesheet" type="text/css" href="<%=context%>/print.css" media="print" />
33N/A <link rel="alternate stylesheet" type="text/css" media="all" title="Paper White" href="<%=context%>/print.css"/>
33N/A</head>
34N/A<body>
33N/A<div id="page">
33N/A <div id="header">
59N/A <%= getServletContext().getInitParameter("HEADER") %>
33N/A </div>
33N/A<div id="Masthead"></div>
33N/A<div id="bar"><a id="home" href="<%=context%>">Home</a> | <input id="search" name="q" class="q"/> <input type="submit" value="Search" class="submit"/> </div>
59N/A<h3 class="error">There was an error!</h3>
46N/A<%=configError%><%
33N/Aexception.printStackTrace();
33N/A%>
33N/A<%=exception.getMessage()%>
22N/A<%@include file="foot.jsp"%>
59N/A