1*0d40e9d0SAdam Hornáček<%-- 2*0d40e9d0SAdam HornáčekCDDL HEADER START 3*0d40e9d0SAdam Hornáček 4*0d40e9d0SAdam HornáčekThe contents of this file are subject to the terms of the 5*0d40e9d0SAdam HornáčekCommon Development and Distribution License (the "License"). 6*0d40e9d0SAdam HornáčekYou may not use this file except in compliance with the License. 7*0d40e9d0SAdam Hornáček 8*0d40e9d0SAdam HornáčekSee LICENSE.txt included in this distribution for the specific 9*0d40e9d0SAdam Hornáčeklanguage governing permissions and limitations under the License. 10*0d40e9d0SAdam Hornáček 11*0d40e9d0SAdam HornáčekWhen distributing Covered Code, include this CDDL HEADER in each 12*0d40e9d0SAdam Hornáčekfile and include the License file at LICENSE.txt. 13*0d40e9d0SAdam HornáčekIf applicable, add the following below this CDDL HEADER, with the 14*0d40e9d0SAdam Hornáčekfields enclosed by brackets "[]" replaced with your own identifying 15*0d40e9d0SAdam Hornáčekinformation: Portions Copyright [yyyy] [name of copyright owner] 16*0d40e9d0SAdam Hornáček 17*0d40e9d0SAdam HornáčekCDDL HEADER END 18*0d40e9d0SAdam Hornáček 19*0d40e9d0SAdam HornáčekCopyright (c) 2005, 2017, Oracle and/or its affiliates. All rights reserved. 20*0d40e9d0SAdam HornáčekPortions Copyright 2011 Jens Elkner. 21*0d40e9d0SAdam Hornáček 22*0d40e9d0SAdam Hornáček--%><%@page session="false" errorPage="error.jsp" isErrorPage="true" import=" 23*0d40e9d0SAdam Hornáčekorg.opensolaris.opengrok.web.Prefix, 24*0d40e9d0SAdam Hornáčekorg.opensolaris.opengrok.configuration.RuntimeEnvironment" 25*0d40e9d0SAdam Hornáček %><% 26*0d40e9d0SAdam Hornáček/* ---------------------- enoent.jsp start --------------------- */ 27*0d40e9d0SAdam Hornáček{ 28*0d40e9d0SAdam Hornáček PageConfig cfg = PageConfig.get(request); 29*0d40e9d0SAdam Hornáček cfg.checkSourceRootExistence(); 30*0d40e9d0SAdam Hornáček cfg.setTitle("File not found"); 31*0d40e9d0SAdam Hornáček 32*0d40e9d0SAdam Hornáček String context = request.getContextPath(); 33*0d40e9d0SAdam Hornáček cfg.getEnv().setUrlPrefix(context + Prefix.SEARCH_R + "?"); 34*0d40e9d0SAdam Hornáček} 35*0d40e9d0SAdam Hornáček%><%@ 36*0d40e9d0SAdam Hornáček 37*0d40e9d0SAdam Hornáčekinclude file="httpheader.jspf" 38*0d40e9d0SAdam Hornáček 39*0d40e9d0SAdam Hornáček%><body> 40*0d40e9d0SAdam Hornáček<div id="page"> 41*0d40e9d0SAdam Hornáček <div id="whole_header"> 42*0d40e9d0SAdam Hornáček <div id="header"><%@ 43*0d40e9d0SAdam Hornáček 44*0d40e9d0SAdam Hornáčekinclude file="pageheader.jspf" 45*0d40e9d0SAdam Hornáček 46*0d40e9d0SAdam Hornáček %></div> 47*0d40e9d0SAdam Hornáček <div id="Masthead">Error: file not found</div> 48*0d40e9d0SAdam Hornáček <div id="sbar"><%@ 49*0d40e9d0SAdam Hornáček 50*0d40e9d0SAdam Hornáčekinclude file="menu.jspf" 51*0d40e9d0SAdam Hornáček 52*0d40e9d0SAdam Hornáček %></div> 53*0d40e9d0SAdam Hornáček </div> 54*0d40e9d0SAdam Hornáček<% 55*0d40e9d0SAdam Hornáček{ 56*0d40e9d0SAdam Hornáček PageConfig cfg = PageConfig.get(request); 57*0d40e9d0SAdam Hornáček String configError = ""; 58*0d40e9d0SAdam Hornáček if (!cfg.hasHistory()) { 59*0d40e9d0SAdam Hornáček configError = "Resource lacks history info. Was remote SCM side up when indexing occurred? " 60*0d40e9d0SAdam Hornáček + "Cleanup history cache dir(or just the .gz for the file or db record) and rerun indexer making sure remote side will respond during indexing."; 61*0d40e9d0SAdam Hornáček } 62*0d40e9d0SAdam Hornáček%> 63*0d40e9d0SAdam Hornáček <h3 class="error">Error: File not found!</h3> 64*0d40e9d0SAdam Hornáček <p>The requested resource is not available. </p> 65*0d40e9d0SAdam Hornáček <p> <%= configError %> </p> 66*0d40e9d0SAdam Hornáček<% 67*0d40e9d0SAdam Hornáček} 68*0d40e9d0SAdam Hornáček/* ---------------------- enoent.jsp end --------------------- */ 69*0d40e9d0SAdam Hornáček%><%@ 70*0d40e9d0SAdam Hornáček 71*0d40e9d0SAdam Hornáčekinclude file="foot.jspf" 72*0d40e9d0SAdam Hornáček 73*0d40e9d0SAdam Hornáček%>