Unable to compile class for JSP with Tomcat 8.5,Java 8 and Eclipse Photon 4.8.0
up vote
0
down vote
favorite
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 ?
eclipse jsp tomcat8.5
add a comment |
up vote
0
down vote
favorite
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 ?
eclipse jsp tomcat8.5
1
Can you please paste the error text as part of the question?
– SebaGra
yesterday
Is Java 8 being used to run both Eclipse and Tomcat, or is Tomcat using a newer version?
– nitind
yesterday
Possible duplicate of Compilation error: org.eclipse.jdt.internal.compiler.classfmt.ClassFormatException
– Avijit Barua
21 hours ago
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
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 ?
eclipse jsp tomcat8.5
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 ?
eclipse jsp tomcat8.5
eclipse jsp tomcat8.5
edited yesterday
barbsan
2,042320
2,042320
asked yesterday
Tejas Gundecha
62
62
1
Can you please paste the error text as part of the question?
– SebaGra
yesterday
Is Java 8 being used to run both Eclipse and Tomcat, or is Tomcat using a newer version?
– nitind
yesterday
Possible duplicate of Compilation error: org.eclipse.jdt.internal.compiler.classfmt.ClassFormatException
– Avijit Barua
21 hours ago
add a comment |
1
Can you please paste the error text as part of the question?
– SebaGra
yesterday
Is Java 8 being used to run both Eclipse and Tomcat, or is Tomcat using a newer version?
– nitind
yesterday
Possible duplicate of Compilation error: org.eclipse.jdt.internal.compiler.classfmt.ClassFormatException
– Avijit Barua
21 hours ago
1
1
Can you please paste the error text as part of the question?
– SebaGra
yesterday
Can you please paste the error text as part of the question?
– SebaGra
yesterday
Is Java 8 being used to run both Eclipse and Tomcat, or is Tomcat using a newer version?
– nitind
yesterday
Is Java 8 being used to run both Eclipse and Tomcat, or is Tomcat using a newer version?
– nitind
yesterday
Possible duplicate of Compilation error: org.eclipse.jdt.internal.compiler.classfmt.ClassFormatException
– Avijit Barua
21 hours ago
Possible duplicate of Compilation error: org.eclipse.jdt.internal.compiler.classfmt.ClassFormatException
– Avijit Barua
21 hours ago
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53224407%2funable-to-compile-class-for-jsp-with-tomcat-8-5-java-8-and-eclipse-photon-4-8-0%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
1
Can you please paste the error text as part of the question?
– SebaGra
yesterday
Is Java 8 being used to run both Eclipse and Tomcat, or is Tomcat using a newer version?
– nitind
yesterday
Possible duplicate of Compilation error: org.eclipse.jdt.internal.compiler.classfmt.ClassFormatException
– Avijit Barua
21 hours ago