<%-- /** * Copyright (c) 2000-present Liferay, Inc. All rights reserved. * * The contents of this file are subject to the terms of the Liferay Enterprise * Subscription License ("License"). You may not use this file except in * compliance with the License. You can obtain a copy of the License by * contacting Liferay, Inc. See the License for the specific language governing * permissions and limitations under the License, including but not limited to * distribution rights of the Software. * * * */ --%> <%@ include file="/html/common/init.jsp" %> <%@ page isErrorPage="true" %> <% String userId = request.getRemoteUser(); String currentURL = PortalUtil.getCurrentURL(request); if (exception instanceof PrincipalException) { _log.warn("User ID " + userId); _log.warn("Current URL " + currentURL); _log.warn("Referer " + request.getHeader("Referer")); _log.warn("Remote address " + request.getRemoteAddr()); _log.warn(exception, exception); } else { _log.error("User ID " + userId); _log.error("Current URL " + currentURL); _log.error("Referer " + request.getHeader("Referer")); _log.error("Remote address " + request.getRemoteAddr()); _log.error(exception, exception); } String message = exception.getMessage(); %>



<%= HtmlUtil.escape(message) %>

<%! private static Log _log = LogFactoryUtil.getLog("portal_web.docroot.html.common.error_jsp"); %>