Uploaded image for project: 'Log4j 2'
  1. Log4j 2
  2. LOG4J2-2488

Java 11: NoClassDefFoundError: javax/script/ScriptEngineManager

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:

      Java: 11

      Log4j: 2.11.1

      Description

      Facing

      NoClassDefFoundError: javax/script/ScriptEngineManager

      when using Java 11

      2018-10-26 23:43:27,434 main INFO Cannot initialize scripting support because this JRE does not support it. java.lang.NoClassDefFoundError: javax/script/ScriptEngineManager
       at org.apache.logging.log4j.core@2.11.1/org.apache.logging.log4j.core.script.ScriptManager.<init>(ScriptManager.java:69)
       at org.apache.logging.log4j.core@2.11.1/org.apache.logging.log4j.core.config.AbstractConfiguration.initialize(AbstractConfiguration.java:216)
       at org.apache.logging.log4j.core@2.11.1/org.apache.logging.log4j.core.config.AbstractConfiguration.start(AbstractConfiguration.java:250)
       at org.apache.logging.log4j.core@2.11.1/org.apache.logging.log4j.core.LoggerContext.setConfiguration(LoggerContext.java:547)
       at org.apache.logging.log4j.core@2.11.1/org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:619)
       at org.apache.logging.log4j.core@2.11.1/org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:636)
       at org.apache.logging.log4j.core@2.11.1/org.apache.logging.log4j.core.LoggerContext.start(LoggerContext.java:231)
       at org.apache.logging.log4j.core@2.11.1/org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:153)
       at org.apache.logging.log4j.core@2.11.1/org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:45)
       at org.apache.logging.log4j/org.apache.logging.log4j.LogManager.getContext(LogManager.java:194)
       at org.apache.logging.log4j/org.apache.logging.log4j.LogManager.getLogger(LogManager.java:581)
       at org.apache.logging.log4j/org.apache.logging.log4j.LogManager.getLogger(LogManager.java:567)
       at NettyLearning/com.ra.HelloWorld.main(HelloWorld.java:7)
      Caused by: java.lang.ClassNotFoundException: javax.script.ScriptEngineManager
       at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:583)
       at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
       at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
       ... 13 more

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              luo8828959 CasterKKK
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: