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 ?










share|improve this question



















  • 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














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 ?










share|improve this question



















  • 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












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 ?










share|improve this question















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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












  • 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

















active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















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



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes















 

draft saved


draft discarded















































 


draft saved


draft discarded














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














































































Popular posts from this blog

Use pre created SQLite database for Android project in kotlin

Darth Vader #20

Ondo