You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by bh...@apache.org on 2015/05/18 23:12:27 UTC

git commit: updated refs/heads/custom-error-page to f2fc87c

Repository: cloudstack
Updated Branches:
  refs/heads/custom-error-page [created] f2fc87c6d


ui: add custom error handling page

Signed-off-by: Rohit Yadav <ro...@shapeblue.com>


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/f2fc87c6
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/f2fc87c6
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/f2fc87c6

Branch: refs/heads/custom-error-page
Commit: f2fc87c6d5d109929e5afbff0e30cbe34a28421e
Parents: bc636de
Author: Rohit Yadav <ro...@shapeblue.com>
Authored: Mon May 18 22:09:11 2015 +0100
Committer: Rohit Yadav <ro...@shapeblue.com>
Committed: Mon May 18 22:12:04 2015 +0100

----------------------------------------------------------------------
 client/WEB-INF/web.xml |  6 ++++++
 ui/error.jsp           | 12 ++++++++++++
 2 files changed, 18 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/f2fc87c6/client/WEB-INF/web.xml
----------------------------------------------------------------------
diff --git a/client/WEB-INF/web.xml b/client/WEB-INF/web.xml
index 7ccfc31..a384f06 100644
--- a/client/WEB-INF/web.xml
+++ b/client/WEB-INF/web.xml
@@ -77,4 +77,10 @@
         <url-pattern>*.html</url-pattern>
         <url-pattern>*.js</url-pattern>
     </servlet-mapping>
+
+    <error-page>
+      <exception-type>java.lang.Exception</exception-type>
+      <location>/error.jsp</location>
+    </error-page>
+
 </web-app>

http://git-wip-us.apache.org/repos/asf/cloudstack/blob/f2fc87c6/ui/error.jsp
----------------------------------------------------------------------
diff --git a/ui/error.jsp b/ui/error.jsp
new file mode 100644
index 0000000..88fdfa1
--- /dev/null
+++ b/ui/error.jsp
@@ -0,0 +1,12 @@
+<!doctype html>
+<html>
+    <head>
+        <meta charset="utf-8">
+        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+        <title>Apache CloudStack</title>
+        <link rel="shortcut icon" href="images/cloud.ico" />
+    </head>
+    <body>
+        <p>Oops, looks like CloudStack hit an error. Ask your CloudStack Administrator to look into it.</p>
+    </body>
+</html>