Bug 1104217

Summary: JDK8 JasperException: Unable to compile class for JSP. type java.util.Map$Entry cannot be resolved
Product: [JBoss] JBoss Enterprise Web Server 2 Reporter: Emil Cervenan <ecervena>
Component: tomcat6, tomcat7Assignee: David Knox <dknox>
Status: CLOSED CURRENTRELEASE QA Contact: Libor Fuka <lfuka>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 2.1.0CC: jclere, jdoyle, lcosti, majoshi, myarboro, pslavice, rhatlapa, rmarwaha, rsvoboda
Target Milestone: ---   
Target Release: 3.0.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
The following exception was displayed when JSP page was accessed with `java.util.HashMap` reference: ---- JDK8 JasperException: Unable to compile class for JSP. type java.util.Map$Entry ---- This issue was related to JDK 8. The `HashMap` implementation had changed and jasper works with `HashMap$Entry` subclass which is not present in the JDK 8 HashMap. This issue is resolved in this release of JBoss Web Server 3, JSP pages with `java.util.HashMap` references should compile successfully.
Story Points: ---
Clone Of:
: 1223609 (view as bug list) Environment:
Last Closed: 2015-04-02 15:19:16 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1223609    

Description Emil Cervenan 2014-06-03 14:24:23 UTC
Same problem as https://bugzilla.redhat.com/show_bug.cgi?id=1080026.

Steps to reproduce:
Deploy archive attached to referenced issue and open in browser.

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:467)
	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:657)
	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:727)
	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)

Comment 2 Richa 2015-04-02 15:19:16 UTC
Resolved in JWS 3.0