Abdou (1) [Avatar] Offline
#1
Hello,
in the chapter one page 10 from this book , when i run the run.bat , and the server was started , the link http://localhost:8081/inmemory/ gave me this error

///////////////////////////////////////////////////////////////////////////////////////


HTTP Status 500 - Unable to compile class for JSP:

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: 1 in the generated java file
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:102)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:331)
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:46smilie
org.apache.jasper.compiler.Compiler.compile(Compiler.java:37smilie
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:72smilie
note The full stack trace of the root cause is available in the Apache Tomcat/7.0.35 logs.

Apache Tomcat/7.0.35

///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////




thx you for your answers
477117 (1) [Avatar] Offline
#2
I solved this the following way: I copied a jre1.7 into the server folder, then changed the run.bat file to use that java.