我们正在tomcat上使用jasperreports服务器并获得以下异常
2018-07-30 16:18:39,116 ERROR RenderViewExceptionInterceptor,http-nio-9080-exec-1:55 - Internal server error occurred. Please contact your system administrator.
org.apache.jasper.JasperException: /WEB-INF/jsp/modules/system/500.jsp (line: 33, column: 37) No tag "message" defined in tag library imported with prefix "spring"
at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:41)
at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:275)
at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:91)
at org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:1220)
at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1460)
at org.apache.jasper.compiler.Parser.parseBody(Parser.java:1673)
at org.apache.jasper.compiler.Parser.parseOptionalBody(Parser.java:1006)
at org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:1281)
at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1460)
at org.apache.jasper.compiler.Parser.parseBody(Parser.java:1673)
at org.apache.jasper.compiler.Parser.parseOptionalBody(Parser.java:1006)
at org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:1281)
at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1460)
at org.apache.jasper.compiler.Parser.parse(Parser.java:139)
at org.apache.jasper.compiler.ParserController.doParse(ParserController.java:227)
at org.apache.jasper.compiler.ParserController.parse(ParserController.java:100)
at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:201)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:358)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:338)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:325)
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:580)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:363)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:396)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:340)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:43)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
================================================ ========
bash-3.2# cat -v 500.jsp
<%--
~ Copyright M-CM-( 2005 - 2018 TIBCO Software Inc.
~ http://www.jaspersoft.com.
~
~ This program is free software: you can redistribute it and/or modify
~ it under the terms of the GNU Affero General Public License as published by
~ the Free Software Foundation, either version 3 of the License, or
~ (at your option) any later version.
~
~ This program is distributed in the hope that it will be useful,
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
~ GNU Affero General Public License for more details.
~
~ You should have received a copy of the GNU Affero General Public License
~ along with this program. If not, see <https://www.gnu.org/licenses/>.
--%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="t" uri="http://tiles.apache.org/tags-tiles" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib uri="http://www.opensymphony.com/sitemesh/page" prefix="page" %>
<%@ taglib prefix="authz" uri="http://www.springframework.org/security/tags" %>
<c:set var="isAuthorized" value="false"/>
<c:set var="anonymousClass" value="anonymous"/>
<authz:authorize ifNotGranted="ROLE_ANONYMOUS">
<c:set var="isAuthorized" value="true"/>
<c:set var="anonymousClass" value=""/>
</authz:authorize>
<t:insertTemplate template="/WEB-INF/jsp/templates/page.jsp">
<t:putAttribute name="pageTitle"><spring:message code="error.500.title"/></t:putAttribute>
<t:putAttribute name="pageClass">${anonymousClass}</t:putAttribute>
<t:putAttribute name="moduleName" value="system/systemErrorMain"/>
<t:putAttribute name="headerContent">
<c:if test="${isAuthorized == false}">
<meta content="true" name="noMenu">
</c:if>
</t:putAttribute>
<t:putAttribute name="bodyID" value="systemError"/>
<t:putAttribute name="bodyClass">oneColumn</t:putAttribute>
<t:putAttribute name="bodyContent">
<t:insertTemplate template="/WEB-INF/jsp/templates/container.jsp">
<t:putAttribute name="containerClass" value="column decorated primary"/>
<t:putAttribute name="containerTitle"><spring:message code="error.500.title"/></t:putAttribute>
<t:putAttribute name="bodyID" value="errorPageContent"/>
<t:putAttribute name="bodyContent">
<t:insertTemplate template="/WEB-INF/jsp/templates/nothingToDisplay.jsp">
<t:putAttribute name="bodyContent">
<p class="message"><spring:message code="error.500.message"/></p>
<c:if test="${systemErrorDetails != null}">
<p class="message"><spring:message code="error.500.messageDetailsTitle"/>: ${systemErrorDetails}</p>
</c:if>
</t:putAttribute>
</t:insertTemplate>
</t:putAttribute>
</t:insertTemplate>
</t:putAttribute>`enter code here`
</t:insertTemplate>