Reputation: 85
when i start compiling any page jsp i have this erroe: type Rapport exception
Message Unable to compile class for JSP:
description The server encountered an internal error that prevented it from fulfilling the request .
exception
org.apache.jasper.JasperException: Unable to compile class for JSP :
An error occurred at line: [1] in the generated java file: [C:\Users\Poste3\work\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\work\Catalina\localhost\SimulateurCredit\org\apache\jsp\VueCredit_jsp.java]
The type java.util.Map$Entry cannot be resolved. It is indirectly referenced from required .class files
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:468)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:378)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:353)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:340)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:646)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:357)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)
Web.controleurServlet.doGet(controleurServlet.java:23)
javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)
Note :The complete trace of the mother cause of this error is available in the log files for Apache Tomcat / 7.0.47 .
VueCredit.jsp Code :
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Simulateur Credit</title>
</head>
<body>
Test Credit
</body>
</html>
Upvotes: 1
Views: 877
Reputation: 85
i ve mad a stupid move lol, im using a version of tomcat 7.0.35 and JDK 8 so it s not compatible so I can also confirm that apache-tomcat-7.0.50 or 8.0.0 DOES have support for JDK8. thanks guys for help i preciate .
Upvotes: 1