Author: jukka Date: Thu Jan 10 04:05:38 2008 New Revision: 610765 URL: http://svn.apache.org/viewvc?rev=610765&view=rev Log: JCR-1289: Error reporting page for jackrabbit-webapp Added: jackrabbit/trunk/jackrabbit-webapp/src/main/webapp/error/repository.jsp jackrabbit/trunk/jackrabbit-webapp/src/main/webapp/troubleshooting.jsp Modified: jackrabbit/trunk/jackrabbit-webapp/src/main/webapp/WEB-INF/web.xml jackrabbit/trunk/jackrabbit-webapp/src/main/webapp/css/default.css jackrabbit/trunk/jackrabbit-webapp/src/main/webapp/header.jsp Modified: jackrabbit/trunk/jackrabbit-webapp/src/main/webapp/WEB-INF/web.xml URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-webapp/src/main/webapp/WEB-INF/web.xml?rev=610765&r1=610764&r2=610765&view=diff ============================================================================== --- jackrabbit/trunk/jackrabbit-webapp/src/main/webapp/WEB-INF/web.xml (original) +++ jackrabbit/trunk/jackrabbit-webapp/src/main/webapp/WEB-INF/web.xml Thu Jan 10 04:05:38 2008 @@ -335,5 +335,9 @@ org.apache.jackrabbit.j2ee.JcrApiNotFoundException /error/classpath.jsp + + javax.jcr.RepositoryException + /error/repository.jsp + Modified: jackrabbit/trunk/jackrabbit-webapp/src/main/webapp/css/default.css URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-webapp/src/main/webapp/css/default.css?rev=610765&r1=610764&r2=610765&view=diff ============================================================================== --- jackrabbit/trunk/jackrabbit-webapp/src/main/webapp/css/default.css (original) +++ jackrabbit/trunk/jackrabbit-webapp/src/main/webapp/css/default.css Thu Jan 10 04:05:38 2008 @@ -70,10 +70,9 @@ h1, h2, h3 { color: #869900; } pre { background: #E0E0E0; - margin-left: 2em; - margin-right: 2em; padding: 1em; - border: 1px dotted black; } + border: 1px dotted black; + overflow: auto; } td { font-size: small; } Added: jackrabbit/trunk/jackrabbit-webapp/src/main/webapp/error/repository.jsp URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-webapp/src/main/webapp/error/repository.jsp?rev=610765&view=auto ============================================================================== --- jackrabbit/trunk/jackrabbit-webapp/src/main/webapp/error/repository.jsp (added) +++ jackrabbit/trunk/jackrabbit-webapp/src/main/webapp/error/repository.jsp Thu Jan 10 04:05:38 2008 @@ -0,0 +1,35 @@ +<%-- + Licensed to the Apache Software Foundation (ASF) under one or more + contributor license agreements. See the NOTICE file distributed with + this work for additional information regarding copyright ownership. + The ASF licenses this file to You under the Apache License, Version 2.0 + (the "License"); you may not use this file except in compliance with + the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--%><%@ page isErrorPage="true" %><% +request.setAttribute("title", "Repository Error"); +%> +

+ The content repository operation failed with the following + <%= exception.getClass().getSimpleName() %> error: +

+
<%= exception.getMessage() %>
+

+ See the + troubleshooting page + for ideas on how to resolve this issue. +

+ +

Exception stack trace

+

+ Below is the full exception stack trace associated with this error: +

+
<% exception.printStackTrace(new java.io.PrintWriter(out)); %>
+ Modified: jackrabbit/trunk/jackrabbit-webapp/src/main/webapp/header.jsp URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-webapp/src/main/webapp/header.jsp?rev=610765&r1=610764&r2=610765&view=diff ============================================================================== --- jackrabbit/trunk/jackrabbit-webapp/src/main/webapp/header.jsp (original) +++ jackrabbit/trunk/jackrabbit-webapp/src/main/webapp/header.jsp Thu Jan 10 04:05:38 2008 @@ -44,11 +44,12 @@