Hello all,
Now, it works fine in our server. I just changed <h:head> --> <head>, ...
This is web.xml and custom-error-page.xhtml source file:
<pre><code>
<error-page>
<location>/custom-error-page.xhtml</location>
</error-page>
</code></pre>
and custom-error-page.xhtml:
<pre><code>
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:f="http://xmlns.jcp.org/jsf/core"
xmlns:h="http://xmlns.jcp.org/jsf/html"
xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
xmlns:p="http://primefaces.org/ui"
xmlns:pe="http://primefaces.org/ui/extensions"
xmlns:pm="http://primefaces.org/mobile"
xmlns:c="http://xmlns.jcp.org/jsp/jstl/core">
<head>
<title>System error</title>
<link rel="stylesheet" type="text/css" href="#{resource['layouts/styles/ivy-common.css']}" />
</head>
<body>
<div class="navbar navbar-inverse">
<div class="container" id="headerdiv">
<div class="navbar-header">
<a class="navbar-brand" href="http://developer.axonivy.com"
id="navbar-ivy-title">Axon.ivy</a>
</div>
</div>
</div>
<h1 class="bg-danger">
Error <small>(Http Status Code #{errorPage.getStatusCode()})</small>
</h1>
<c:if test="#{errorPage.isIvyException()}">
<h4 class="list-group-item-heading">Error Id</h4>
<p>#{errorPage.exceptionId}</p>
</c:if>
<c:if test="#{errorPage.hasException()}">
<h4 class="list-group-item-heading">#{errorPage.exceptionType.simpleName}</h4>
<pre><code><strong>#{errorPage.message}</strong></code></pre>
</c:if>
<c:if test="#{errorPage.showDetails}">
<c:if test="#{!errorPage.causedBy.isEmpty()}">
<h4 class="list-group-item-heading">Caused by</h4>
<ui:repeat value="#{errorPage.causedBy}"
var="causedBy">
<pre><code>#{causedBy.class.simpleName}: #{causedBy.message}</code></pre>
</ui:repeat>
</c:if>
<h4 class="list-group-item-heading">Request Uri</h4>
<p>#{errorPage.getRequestUri()}</p>
<br/>
<h4 class="list-group-item-heading">Servlet</h4>
<p>#{errorPage.getServletName()}</p>
<br/>
<h4 class="list-group-item-heading">Application</h4>
<p>#{errorPage.applicationName}</p>
<br/>
<c:if test="#{!errorPage.threadLocalValues.isEmpty()}">
<h4 class="list-group-item-heading">Thread local values</h4>
<ui:repeat value="#{errorPage.threadLocalValues}"
var="threadLocal">
<p>#{threadLocal.key}: #{threadLocal.value}</p>
</ui:repeat>
</c:if>
<br/>
<h4 class="list-group-item-heading">Stack-Trace</h4>
<pre><code>#{errorPage.getStackTrace()}</code></pre>
</c:if>
<c:if test="#{not empty errorPage.errorReportUrl}">
<br/>
<p:button target="_blank" value="Open Error Report" icon="ui-icon-notice" href="#{errorPage.errorReportUrl}"/>
<br/><br/>
</c:if>
</body>
</html>
</code></pre>
Regards,