我找不到用于此问题的任何特定线程,很抱歉,如果以前曾有人问过这个问题。
我对JSP相当陌生,我在生产中看到以下异常,无法在本地复制。我检查了文件user-management-setup
是否存在。
stackTrace[0]="org.apache.jasper.JasperException: An exception
occurred processing JSP page [/WEB-
INF/jsp/app/generic/admin/instance/settings/user-management.jsp] at
line [1061]1058: <div id="appHelp">1059: <%-- Don't XSS escape
include tags. These attributes aren't rendered on the page and will
break1060: if any part of the "page"
attribute has special characters --%>1061: <jsp:include
page="/app/${app.name}/${instance.id}/setup/help/user-management-
setup"/>1062: 1063: </div>1064: Stacktrace: at
org.apache.jasper.servlet.JspServletWrapper.handleJspException
(JspServletWrapper.java:584) at
org.apache.jasper.servlet.JspServletWrapper.service
(JspServletWrapper.java:466) at
org.apache.jasper.servlet.JspServlet.serviceJspFile
(JspServlet.java:386) at
org.apache.jasper.servlet.JspServlet.service (JspServlet.java:330) at
javax.servlet.http.HttpServlet.service (HttpServlet.java:742) at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
(ApplicationFilterChain.java:231) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
引起问题的JSP代码:
<div class="help-wrap">
<div id="appHelp">
<%-- Don't XSS escape include tags. These attributes aren't rendered on the page and will break if any part of the "page" attribute has special characters --%>
<jsp:include page="/app/${app.name}/${instance.id}/setup/help/user-management-setup"/>
</div>
</div>
还验证了,当app.name
和instance.id
无效或文件不存在时,我收到了与{{1]不同的另一个错误(类似-未找到资源...)。 }}