You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description The server encountered an internal error that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: Unable to compile class for JSP:
An error occurred at line: 326 in the jsp file: /tomcat-memshell-scanner.jsp
'<>' operator is not allowed for source level below 1.7
323: return;
324: }
325: out.write("");
326: List newListeners = new ArrayList<>();
327: for (Object o : listeners) {
328: if (o instanceof ServletRequestListener) {
329: newListeners.add((ServletRequestListener) o);
note The full stack trace of the root cause is available in the Apache Tomcat/7.0.76 logs.
`
jdk环境:
openjdk version "1.8.0_382"
OpenJDK Runtime Environment (build 1.8.0_382-b05)
OpenJDK 64-Bit Server VM (build 25.382-b05, mixed mode)
The text was updated successfully, but these errors were encountered:
报错如下:
`
type Exception report
message Unable to compile class for JSP:
description The server encountered an internal error that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: Unable to compile class for JSP:
An error occurred at line: 326 in the jsp file: /tomcat-memshell-scanner.jsp
'<>' operator is not allowed for source level below 1.7
323: return;
324: }
325: out.write("");
326: List newListeners = new ArrayList<>();
327: for (Object o : listeners) {
328: if (o instanceof ServletRequestListener) {
329: newListeners.add((ServletRequestListener) o);
Stacktrace:
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:103)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:366)
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:494)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:379)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:354)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:341)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:662)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:364)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)
javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
note The full stack trace of the root cause is available in the Apache Tomcat/7.0.76 logs.
`
jdk环境:
openjdk version "1.8.0_382"
OpenJDK Runtime Environment (build 1.8.0_382-b05)
OpenJDK 64-Bit Server VM (build 25.382-b05, mixed mode)
The text was updated successfully, but these errors were encountered: