Tomcat's nashorn JAR is causing problems with Java 8
Issue
Tomcat is failing at startup with the following message
Sep 20, 2018 4:38:17 PM org.apache.catalina.startup.ContextConfig processAnnotationsJar
SEVERE: Unable to process Jar entry [jdk/nashorn/internal/objects/NativeURIError.class] from Jar [jar:file:/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.181-3.b13.el7_5.x86_64/jre/lib/ext/nashorn.jar!/] for annotations
org.apache.tomcat.util.bcel.classfile.ClassFormatException: Invalid byte tag in constant pool: 15
Environment
- Red Hat Enterprise Linux (RHEL)
- 7.x
- Red Hat JBoss Web Server (JWS)
- 3.x
- Apache Tomcat
- 7.x
- OpenJDK Runtime Environment
- 1.8.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.