Translated message

A translation of this page exists in English.

JSP コンパイルが、最新の Java 1.8 を使用してる RHEL 6 tomcat では有効ではない

Solution Unverified - Updated -

Issue

  • JSP コンパイルは、最新の openjdk Java 1.8 アップデート (java-1.8.0-openjdk-headless-1.8.0.91-0.b14.el6_7+) を使用している RHEL 6 tomcat では有効ではありません。コンパイルが失敗し、以下の例外が発生します。
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:
    at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:92)
    at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
    at org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:439)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:334)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:312)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:299)

Environment

  • Red Hat Enterprise Linux (RHEL) 6.x
    • Tomcat 6

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content