Uploaded image for project: 'logback'
  1. logback
  2. LOGBACK-490

java.lang.NoClassDefFoundError: org/codehaus/janino/ExpressionEvaluator if use ch.qos.logback.core.filter.EvaluatorFilter

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 0.9.18
    • logback-classic
    • None
    • windows7 enterprise

    Description

      After using filter with class ch.qos.logback.core.filter.EvaluatorFilter rised an exception without janino.jar is on the classpath, but janino is not mentioned in the documentation and examples.
      Failed to instantiate [ch.qos.logback.classic.LoggerContext]
      Reported exception:
      java.lang.NoClassDefFoundError: org/codehaus/janino/ExpressionEvaluator
      at ch.qos.logback.core.boolex.JaninoEventEvaluatorBase.start(JaninoEventEvaluatorBase.java:58)
      at ch.qos.logback.core.joran.action.NestedComplexPropertyIA.end(NestedComplexPropertyIA.java:168)
      at ch.qos.logback.core.joran.spi.Interpreter.callEndAction(Interpreter.java:311)
      at ch.qos.logback.core.joran.spi.Interpreter.endElement(Interpreter.java:191)
      at ch.qos.logback.core.joran.spi.Interpreter.endElement(Interpreter.java:178)
      at ch.qos.logback.core.joran.spi.EventPlayer.play(EventPlayer.java:52)
      at ch.qos.logback.core.joran.spi.Interpreter.play(Interpreter.java:328)
      at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:126)
      at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:93)
      at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:52)
      at ch.qos.logback.classic.util.ContextInitializer.configureByResource(ContextInitializer.java:60)
      at ch.qos.logback.classic.util.ContextInitializer.autoConfig(ContextInitializer.java:121)
      at org.slf4j.impl.StaticLoggerBinder.init(StaticLoggerBinder.java:89)
      at org.slf4j.impl.StaticLoggerBinder.<clinit>(StaticLoggerBinder.java:60)
      at org.slf4j.LoggerFactory.getSingleton(LoggerFactory.java:230)
      at org.slf4j.LoggerFactory.bind(LoggerFactory.java:121)
      at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:112)
      at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:275)
      at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:248)
      at test.Ex1.<clinit>(Ex1.java:16)
      at java.lang.Class.forName0(Native Method)
      at java.lang.Class.forName(Class.java:169)
      at com.intellij.rt.execution.application.AppMain.main(AppMain.java:107)
      Caused by: java.lang.ClassNotFoundException: org.codehaus.janino.ExpressionEvaluator
      at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:303)
      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
      at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:316)
      ... 23 more

      ch.qos.logback.core.boolex.JaninoEventEvaluatorBase has link on org.codehaus.janino.ExpressionEvaluator

      Attachments

        Activity

          People

            ceki Ceki Gülcü
            dm.smirnov Dmitry Smirnov
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: