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:

Stack Overflow | raghu nadh | 9 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Java Migration 1.6 to 1.8 run time Error

    Stack Overflow | 9 months ago | raghu nadh
    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:
  2. 0

    java.util.ConcurrentModificationException during JMETER stress test

    GitHub | 3 years ago | sergiocontrino
    org.apache.jasper.JasperException: java.util.ConcurrentModificationException
  3. 0

    I can't insert a basic HTML whitespace without getting an error. Is there any other way?

    Stack Overflow | 6 years ago | Carlos Sanchez
    org.apache.jasper.JasperException: /WEB-INF/views/entrada/list.jspx(94,67) The entity "nbsp" was referenced, but not declared.</strong></p> <pre><code>at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    i made custom tag in jstl and threw Unfamiliar exception help me

    Stack Overflow | 3 years ago | yevgnen
    org.apache.jasper.JasperException: Method "jcrypto" for function "jcrypto" not found in class "com.dabin.confirm.util.PhoneManager"
  6. 0

    JSP import cannot be resolved in Tomcat 5.5.27

    Stack Overflow | 5 years ago | rlay3
    org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred at line: 17 in the generated java file The import com.nag.ecrs.domain.model cannot be resolved </code></pre> <p>The import statement looks like this:</p> <pre><code>&lt;%@ page import="com.nag.ecrs.domain.model.ModelHelper"%&gt; </code></pre> <p>According to <a href="http://stackoverflow.com/questions/2412906/failing-import-in-on-the-fly-jsp-compilation">Failing import in on-the-fly JSP compilation</a> , it seems the compiler is tripping up because we have a package named:</p> <pre><code>com.nag.ecrs.domain.model </code></pre> <p>and a class named:</p> <pre><code>com.nag.ecrs.domain.Model </code></pre> <p>We indeed have the class com.nag.ecrs.domain.Model with the upper case 'M'. If I were to remove the import and use the fully qualified class name com.nag.ecrs.domain.model.ModelHelper, it works. However it's not a neat solution. The solution in the above link was to rename the package, which we also don't want to do.</p> <p>This is only affecting me, the page displays fine for my 2 other colleagues in their environments.</p> <p>So my question is, what is causing the JSP compiler to fail when using a package where that package name also exists as class? And how can this be fixed?</p> <p>I've tried:</p> <ul> <li>cleaning/rebuilding web app</li> <li>installing new Tomcat</li> <li>setting the allowLinking context switch in Tomcat to false</li> </ul> <p>Here's the full stack trace:</p> <pre><code>Stacktrace:

  1. treefolk 6 times, last 4 months ago
  2. Andreas Häber 1 times, last 6 months ago
  3. Justin 2 times, last 10 months ago
  4. abrazeneb 4 times, last 11 months ago
  5. andyglick 12 times, last 8 months ago
1 more registered users
74 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. 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:

    at org.apache.jasper.compiler.DefaultErrorHandler.javacError()
  2. GWT dev
    JspServlet.service
    1. org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:92)[:6.1.0.Final]
    2. org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)[:6.1.0.Final]
    3. org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:446)[:6.1.0.Final]
    4. org.apache.jasper.compiler.Compiler.compile(Compiler.java:362)[:6.1.0.Final]
    5. org.apache.jasper.compiler.Compiler.compile(Compiler.java:340)[:6.1.0.Final]
    6. org.apache.jasper.compiler.Compiler.compile(Compiler.java:327)[:6.1.0.Final]
    7. org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:607)[:6.1.0.Final]
    8. org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:312)[:6.1.0.Final]
    9. org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:326)[:6.1.0.Final]
    10. org.apache.jasper.servlet.JspServlet.service(JspServlet.java:253)[:6.1.0.Final]
    10 frames
  3. JavaServlet
    HttpServlet.service
    1. javax.servlet.http.HttpServlet.service(HttpServlet.java:847)[servlet-api.jar:6.0.0.20100216-M2]
    1 frame
  4. Glassfish Core
    ApplicationDispatcher.include
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:324)[:6.1.0.Final]
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242)[:6.1.0.Final]
    3. org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:734)[:6.1.0.Final]
    4. org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:639)[:6.1.0.Final]
    5. org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:576)[:6.1.0.Final]
    5 frames
  5. GWT dev
    PageContextImpl.include
    1. org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:968)[:6.1.0.Final]
    2. org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:621)[:6.1.0.Final]
    2 frames
  6. struts
    InsertTag.doInclude
    1. org.apache.struts.tiles.TilesUtilImpl.doInclude(TilesUtilImpl.java:137)[struts.jar:1.1]
    2. org.apache.struts.tiles.TilesUtil.doInclude(TilesUtil.java:177)[struts.jar:1.1]
    3. org.apache.struts.taglib.tiles.InsertTag.doInclude(InsertTag.java:756)[struts.jar:1.1]
    3 frames