title: Tomcat 7 with Java 8 on Raspberry Pi
body: <p><strong>UPDATE</strong> tomcat8 seems to work in this scenario as I could open the /manager/ page as required. While this does not solve the original problem state here I advise you to use tomcat8 from debian backports in this scenario!</p>
  
  <p>Raspbian delivers the current Java 8 in version </p>
  
  <pre><code>root@raspberrypi:/etc/apt# java -version
  java version "1.8.0"
  Java(TM) SE Runtime Environment (build 1.8.0-b132)
  Java HotSpot(TM) Client VM (build 25.0-b70, mixed mode)
  </code></pre>
  
  <p>after installing tomcat 7 i reverted to the tomcat7 version provided by debian backports which is</p>
  
  <pre><code>root@raspberrypi:/etc/apt# dpkg -l |grep tomcat
  ii  libtomcat7-java                       7.0.56-1~bpo70+2                        all          Servlet and JSP engine -- core libraries
  ii  tomcat7                               7.0.56-1~bpo70+2                        all          Servlet and JSP engine
  ii  tomcat7-admin                         7.0.56-1~bpo70+2                        all          Servlet and JSP engine -- admin web applications
  ii  tomcat7-common                        7.0.56-1~bpo70+2                        all          Servlet and JSP engine -- common files
  </code></pre>
  
  <p>which according to <a href="https://stackoverflow.com/questions/19243458/tomcat7-not-compiling-jsp-examples">tomcat7 not compiling jsp examples</a> should work. This, however, is not the case as the manager page leaves me with the following error:</p>
  
  <pre><code>org.apache.jasper.JasperException: Unable to compile class for JSP: 
  
  An error occurred at line: [1] in the generated java file: [/var/lib/tomcat7/work/Catalina/localhost/manager/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:366)
      org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:477)
      org.apache.jasper.compiler.Compiler.compile(Compiler.java:379)
      org.apache.jasper.compiler.Compiler.compile(Compiler.java:354)
      org.apache.jasper.compiler.Compiler.compile(Compiler.java:341)
      org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:657)
      org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:357)
      org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)
      org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
      org.apache.catalina.filters.CsrfPreventionFilter.doFilter(CsrfPreventionFilter.java:213)
      org.apache.catalina.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:108)
  </code></pre>
  
  <p>Does anybody know what the actual problem here could be?</p>