Unable to compile class for JSP with Tomcat 8.5,Java 8 and Eclipse Photon 4.8.0

556 Views Asked by At

I am using Java 8, Tomcat 8.5 and Eclipse Photon 4.8.0

When I run tomcat server and hit JSP page it gives following error:

SEVERE: Compilation error org.eclipse.jdt.internal.compiler.classfmt.ClassFormatException SEVERE: Servlet.service() for servlet [jsp] in context with path [/SpringMVC] threw exception [Unable to compile class for JSP: An error occurred in the generated java file: The type java.util.Map$Entry cannot be resolved. It is indirectly referenced from required .class files The type java.io.ObjectInputStream cannot be resolved. with root cause org.apache.jasper.JasperException: Unable to compile class for JSP:

I have tried changing compilance to 1.7 in Java but issue still exists.

Could you please help ?

0

There are 0 best solutions below