Warning message

This translation is outdated. For the most up-to-date information, please refer to the English version.

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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.