The java.util.Map $ Entry type could not be resolved. Mac OS vs Debian problem?

I am developing a simple web application in Java, but since I changed my computer from win7 to mac os, I cannot deploy my application. Before the SO change, my compiled code / war from intellij was deployed to debian without issue. Now I am getting this (anonymous) error:

An error occurred at line: [1] in the generated java file: [/var/lib/tomcat8/work/Catalina/localhost/chat/org/apache/jsp/index_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:199)
    org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:438)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:361)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:336)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:323)
    org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:564)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:357)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:405)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:349)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
    org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)

      

In both machines, I have JDK8 and Tomcat8 installed. The Debian processor is ARMv6, the raspberry pi. My Mac OS is x64 since mid 2012. I am already browsing the website, trying to update Tomca8, compile it to java7 and deploy to a Tomcat7 instance, driving it crazy! I think it might be a cross platform issue or something to do with class compilations, but I can't seem to find something!

Any help is greatly appreciated, thanks

+3


source to share


2 answers


After a lot of research and testing, I was unable to resolve this issue. My solution (not a real solution) to continue development has replaced all 8 versions (jdk and tomcat) with version 7, both JDK and server (Tomcat). It is important to note that to use OpenJDK and NOT Oracle JDK . I know this seems contradictory, but in the end it seems that OpenJDK is installing the necessary and correct compilers. I have not tested OpenJDK version 8 because my project only requires version 7, but for someone with the same problem it is worth trying OpenJDK 8.



Hope this helps someone and if anyone has any suggestion for a real solution, just pass it by.

+1


source


For me the solution was to use the more recent ecj jar, ecj-4.4.2.jar version



0


source







All Articles