Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
atlas
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dataplatform
atlas
Commits
d8b86833
Commit
d8b86833
authored
Jul 27, 2017
by
apoorvnaik
Committed by
Madhan Neethiraj
Jul 28, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-1998: Default error page for 404, 500 and Throwable from Jetty
Signed-off-by:
Madhan Neethiraj
<
madhan@apache.org
>
parent
8931d475
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
70 additions
and
0 deletions
+70
-0
web.xml
webapp/src/main/webapp/WEB-INF/web.xml
+12
-0
error.jsp
webapp/src/main/webapp/error.jsp
+58
-0
No files found.
webapp/src/main/webapp/WEB-INF/web.xml
View file @
d8b86833
...
@@ -83,5 +83,17 @@
...
@@ -83,5 +83,17 @@
</cookie-config>
</cookie-config>
</session-config>
</session-config>
<error-page>
<exception-type>
java.lang.Throwable
</exception-type>
<location>
/error.jsp
</location>
</error-page>
<error-page>
<error-code>
404
</error-code>
<location>
/error.jsp
</location>
</error-page>
<error-page>
<error-code>
500
</error-code>
<location>
/error.jsp
</location>
</error-page>
</web-app>
</web-app>
webapp/src/main/webapp/error.jsp
0 → 100644
View file @
d8b86833
<!doctype html>
<!--
* 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.
-->
<!--[if gt IE 8]>
<script type="text/javascript">
function Redirect() {
window.location.assign("login.jsp");
}
Redirect();
</script>
<![endif]-->
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!--[if gt IE 7]>
<script src="js/external_lib/es5-shim.min.js"></script>
<script src="js/external_lib/respond.min.js"></script>
<![endif]-->
<html
lang=
"en"
>
<head>
<meta
charset=
"utf-8"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
>
<title>
Atlas
</title>
<link
href=
'https://fonts.googleapis.com/css?family=Raleway:400,400italic,700,700italic'
rel=
'stylesheet'
type=
'text/css'
>
<link
href=
"js/libs/font-awesome/css/font-awesome.min.css"
rel=
"stylesheet"
>
<link
rel=
"stylesheet"
href=
"js/libs/bootstrap/css/bootstrap.min.css"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"css/bootstrap-sidebar.css"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"css/style.css"
>
</head>
<body>
<div
id=
"wrapper"
>
<!-- Page Content Begin -->
<div
id=
"page-content-wrapper"
>
<div
class=
"page-title clearfix"
>
<h3>
Looking for something?
</h3>
<p>
We're sorry. The web address you're looking for is not a functioning page in Apache Atlas. Please try navigating from
<a
href=
"index.html"
>
Apache Atlas Home
</a></p>
</div>
</div>
<!-- Page Content End -->
</div>
</body>
</html>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment