error.jsp revision 1470
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox UserCDDL HEADER START
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox UserThe contents of this file are subject to the terms of the
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox UserCommon Development and Distribution License (the "License").
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox UserYou may not use this file except in compliance with the License.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsSee LICENSE.txt included in this distribution for the specific
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewslanguage governing permissions and limitations under the License.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsWhen distributing Covered Code, include this CDDL HEADER in each
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox Userfile and include the License file at LICENSE.txt.
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntIf applicable, add the following below this CDDL HEADER, with the
cd32f419a8a5432fbb139f56ee73cbf68b9350ccTinderbox Userfields enclosed by brackets "[]" replaced with your own identifying
cd32f419a8a5432fbb139f56ee73cbf68b9350ccTinderbox Userinformation: Portions Copyright [yyyy] [name of copyright owner]
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsCDDL HEADER END
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsCopyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsPortions Copyright 2011 Jens Elkner.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews--%><%@ page session="false" isErrorPage="true" import="
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews/* ---------------------- error.jsp start --------------------- */
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews cfg = PageConfig.get(request);
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews String context = request.getContextPath();
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User String configError = "";
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews if (cfg.getSourceRootPath().isEmpty()) {
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User configError = "CONFIGURATION parameter has not been configured in "
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews + "web.xml! Please configure your webapp.";
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User } else if (!cfg.getConfig().getSourceRootFile().isDirectory()) {
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews configError = "The source root specified in your configuration does "
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User + "not point to a valid directory! Please configure your webapp.";
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews<body class="yui3-skin-sam">
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews<div id="page">
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews <div id="whole_header">
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt <div id="header">
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews <div id="Masthead"></div>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews <div id="sbar"><%@
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews <h3 class="error">There was an error!</h3>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews <p class="error"><%= configError %></p><%
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User if (exception != null) {
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt <p class="error"><%= exception.getMessage() %></p>
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt StringWriter wrt = new StringWriter();
d8620c7234281056fdfd2ee40cf16636b8281092Tinderbox User PrintWriter prt = new PrintWriter(wrt);
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User %><p class="error">Unknown Error</p><%
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews/* ---------------------- error.jsp end --------------------- */