Warning message

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

EAP 6 で Provider com.sun.script.javascript.RhinoScriptEngineFactory not found エラーが発生する

Solution Verified - Updated -

Issue

  • Oracle jdk1.8u40 で JBoss EAP 6.3.3 を実行すると、server.log に以下のエラーが出力されます。
12:31:30,344 ERROR [stderr] (http-/127.0.0.1:8080-1) ScriptEngineManager providers.next(): javax.script.ScriptEngineFactory:Provider com.sun.script.javascript.RhinoScriptEngineFactory not found
  • java-script の評価は nashorn エンジンで問題なく動作していますが、このログエントリーが対処すべき問題かどうか不明です。この問題は、EAP 6.3.3 で以下のようなコードを実行すると簡単に再現できます。
  • 次の例では、"http://localhost:8080/Java8Test/" から以下の index.jsp にアクセスし、server.log に上述のエラーを取得します。
<%@ page import="javax.script.ScriptEngineManager,javax.script.ScriptEngineFactory,javax.script.ScriptEngine" %>
<%
    ScriptEngine engineByName = new ScriptEngineManager().getEngineByName("JavaScript");
%>

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.3.3
    • 6.4

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.