title: Unable to compile class for JSP: The type java.util.Map$Entry cannot be resolved. It is indirectly referenced from required .class files
body: <p>I can't get tomcat7 to compile jsps. It till run the example servlets just fine and the service is up and running. I am running oracle java 8.</p>
  
  <p>Can anyone point me in the right direction?</p>
  
  <p>Here is the stacktrace:</p>
  
  <pre><code>type Exception report
  
  message Unable to compile class for JSP:
  
  description The server encountered an internal error that prevented it from fulfilling this request.
  
  exception
  
  org.apache.jasper.JasperException: Unable to compile class for JSP: 
  
  An error occurred at line: 1 in the generated java file
  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:102)
      org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:331)
      org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:468)
      org.apache.jasper.compiler.Compiler.compile(Compiler.java:378)
      org.apache.jasper.compiler.Compiler.compile(Compiler.java:353)
      org.apache.jasper.compiler.Compiler.compile(Compiler.java:340)
      org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:646)
      org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:357)
      org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
      org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
  note The full stack trace of the root cause is available in the Apache Tomcat/7.0.35 logs.
  </code></pre>
  
  <hr>
  
  <p>The code looks like this and it's the sample code from tomcat7 so my guess is that it's correct. </p>
  
  <pre><code>&lt;%@ taglib prefix="mytag" uri="/WEB-INF/jsp2/jsp2-example-taglib.tld" %&gt;
  &lt;html&gt;
  &lt;head&gt;
    &lt;title&gt;JSP 2.0 Examples - Hello World SimpleTag Handler&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;h1&gt;JSP 2.0 Examples - Hello World SimpleTag Handler&lt;/h1&gt;
  &lt;hr&gt;
  &lt;p&gt;This tag handler simply echos "Hello, World!"  It's an example of
  a very basic SimpleTag handler with no body.&lt;/p&gt;
  &lt;br&gt;
  &lt;b&gt;&lt;u&gt;Result:&lt;/u&gt;&lt;/b&gt;
  &lt;mytag:helloWorld/&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>