我在Linux服务器上安装了Tomcat 8.0.26和jdk1.7.0_60。 然后我启动了服务器,我试图访问tomcat管理器,但我收到以下错误: org.apache.jasper.JasperException:无法为JSP编译类。
我试图访问JSP tomcat示例但是同样的错误......
以下是我收到的例外情况:
org.apache.jasper.JasperException: Unable to compile class for JSP:
An error occurred at line: [29] in the generated java file: [/webapps/apache-tomcat8-dev/work/Catalina/localhost/ROOT/org/apache/jsp/index_jsp.java]
Type mismatch: cannot convert from HashSet<?> to Set<String>
An error occurred at line: [29] in the generated java file: [/webapps/apache-tomcat8-dev/work/Catalina/localhost/ROOT/org/apache/jsp/index_jsp.java]
Cannot instantiate the type HashSet<?>
An error occurred at line: [29] in the generated java file: [/webapps/apache-tomcat8-dev/work/Catalina/localhost/ROOT/org/apache/jsp/index_jsp.java]
Syntax error on token "<", ? expected after this token
Stacktrace:
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:102)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:198)
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:450)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:361)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:336)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:323)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:585)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:363)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:396)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:340)
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
你能帮我找到根本原因吗?
提前感谢您的帮助