brokenContext.jsp 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <%--
  2. Licensed to Jasig under one or more contributor license
  3. agreements. See the NOTICE file distributed with this work
  4. for additional information regarding copyright ownership.
  5. Jasig licenses this file to you under the Apache License,
  6. Version 2.0 (the "License"); you may not use this file
  7. except in compliance with the License. You may obtain a
  8. copy of the License at the following location:
  9. http://www.apache.org/licenses/LICENSE-2.0
  10. Unless required by applicable law or agreed to in writing,
  11. software distributed under the License is distributed on an
  12. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  13. KIND, either express or implied. See the License for the
  14. specific language governing permissions and limitations
  15. under the License.
  16. --%>
  17. <jsp:directive.include file="default/ui/includes/top.jsp" />
  18. <div id="welcome">
  19. <h2>CAS is Unavailable</h2>
  20. <p>
  21. There was a fatal error initializing the CAS application context. This is almost always because of an error in the Spring bean configuration files.
  22. Are the files valid XML? Do the beans they refer to all exist?<br /><br />
  23. Before placing CAS in production, you should change this page to present a UI appropriate for the case where the CAS
  24. web application is fundamentally broken. Perhaps "Sorry, CAS is currently unavailable." with some links to your user support information.
  25. </p>
  26. <c:if test="${not empty applicationScope.exceptionCaughtByServlet and empty applicationScope.exceptionCaughtByListener}">
  27. <p>
  28. The Throwable representing the fatal error has been logged by the <em>SafeDispatcherServlet</em>
  29. via Commons Logging, via ServletContext logging, and to System.err.
  30. </p>
  31. </c:if>
  32. <c:if test="${empty applicationScope.exceptionCaughtByServlet and not empty applicationScope.exceptionCaughtByListener}">
  33. <p>
  34. The Throwable representing the fatal error has been logged by the SafeContextLoaderListener
  35. via Commons Logging, via ServletContext logging, and to System.err.
  36. </p>
  37. </c:if>
  38. <!-- Render information about the throwables themselves -->
  39. <c:if test="${not empty applicationScope.exceptionCaughtByListener}">
  40. <p>
  41. The Throwable encountered at context listener initialization was: <br/> <br/>
  42. <c:out value="${applicationScope.exceptionCaughtByListener}"/>
  43. </p>
  44. </c:if>
  45. <c:if test="${not empty applicationScope.exceptionCaughtByServlet}">
  46. <p>
  47. The Throwable encountered at dispatcher servlet initialization was: <br/> <br/>
  48. <c:out value="${applicationScope.exceptionCaughtByServlet}"/>
  49. </p>
  50. </c:if>
  51. </div>
  52. <jsp:directive.include file="default/ui/includes/bottom.jsp" />