Bug 1338903

Summary: java-1.8.0-openjdk problem with tomcat6
Product: Red Hat Enterprise Linux 6 Reporter: Martin Juricek <mjuricek>
Component: java-1.8.0-openjdkAssignee: Elliott Baron <ebaron>
Status: CLOSED DUPLICATE QA Contact: BaseOS QE - Apps <qe-baseos-apps>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.8CC: jvanek, mnovacek, sidney
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-08-16 21:53:38 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:

Description Martin Juricek 2016-05-23 15:29:58 UTC
Description of problem:
java-1.8.0-openjdk-1.8.0.91-1.b14.el6 doesn't work properly with tomcat6 server. jsp pages fail to display, exception is thrown instead.
Older version (java-1.8.0-openjdk-1.8.0.45-35.b13.el6 from rhel-6.7 seems to work fine).


Version-Release number of selected component (if applicable):
java-1.8.0-openjdk-1.8.0.91-1.b14.el6.x86_64
tomcat6-6.0.24-95.el6.noarch
tomcat6-webapps-6.0.24-95.el6.noarch


How reproducible:
100%

Steps to Reproduce:
1. Install and start tomcat6 
2. Try to access a .jsp page on the tomcat6


Actual results:
HTTP Status 500, exception stacktrace is thrown

Expected results:
Page correctly displayed


Additional info:

### tomcat6 is running: 
[root@virt-242 ~]# service tomcat6 status
tomcat6 (pid 2842) is running...[  OK  ]

[root@virt-242 ~]# ps aux | grep tomcat
tomcat    2842  0.5  9.5 2280348 97132 ?       Sl   16:39   0:13 /usr/lib/jvm/jre/bin/java -Djavax.sql.DataSource.Factory=org.apache.commons.dbcp.BasicDataSourceFactory -classpath :/usr/share/tomcat6/bin/bootstrap.jar:/usr/share/tomcat6/bin/tomcat-juli.jar:/usr/share/java/commons-daemon.jar -Dcatalina.base=/usr/share/tomcat6 -Dcatalina.home=/usr/share/tomcat6 -Djava.endorsed.dirs= -Djava.io.tmpdir=/var/cache/tomcat6/temp -Djava.util.logging.config.file=/usr/share/tomcat6/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager org.apache.catalina.startup.Bootstrap start


### getting of index.jsp page fails:

# curl http://virt-242.cluster-qe.lab.eng.brq.redhat.com:8080/index.jsp

<html><head><title>Apache Tomcat/6.0.24 - Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP Status 500 - </h1><HR size="1" noshade="noshade"><p><b>type</b> Exception report</p><p><b>message</b> <u></u></p><p><b>description</b> <u>The server encountered an internal error () that prevented it from fulfilling this request.</u></p><p><b>exception</b> <pre>org.apache.jasper.JasperException: Unable to compile class for JSP: 

An error occurred at line: 1 in the generated java file
The type java.io.ObjectInputStream cannot be resolved. It is indirectly referenced from required .class files

Stacktrace:
        org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:92)
        org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
        org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:439)
        org.apache.jasper.compiler.Compiler.compile(Compiler.java:334)
        org.apache.jasper.compiler.Compiler.compile(Compiler.java:312)
        org.apache.jasper.compiler.Compiler.compile(Compiler.java:299)
        org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:589)
        org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
        org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
        org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:723)

Comment 5 Elliott Baron 2016-08-16 21:53:38 UTC
This appears to be a known issue with JSP compilation with Tomcat on RHEL 6. The current version of ECJ in RHEL 6, which is used by Tomcat to compile JSPs, does not properly support Java 8. We are attempting to upgrade ECJ to a newer version that fully supports Java 8 and should resolve these JSP compilation failures [1].

[1] https://bugzilla.redhat.com/show_bug.cgi?id=1336481

*** This bug has been marked as a duplicate of bug 1223609 ***