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

"java.lang.NoClassDefFoundError: groovy/lang/GroovyObject" after modiying logback.xml during runtime

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 0.9.22
    • Fix Version/s: 0.9.23
    • Component/s: None
    • Labels:
      None

      Description

      Not using groovy. Logback shouldn't impose dependency on groovy.

      java.lang.NoClassDefFoundError: groovy/lang/GroovyObject
      at java.lang.ClassLoader.defineClass1(Native Method) ~[na:1.5.0_22]
      at java.lang.ClassLoader.defineClass(ClassLoader.java:621) ~[na:1.5.0_22]
      at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) ~[na:1.5.0_22]
      at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1960) ~[catalina.jar:na]
      at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:931) ~[catalina.jar:na]
      at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1405) ~[catalina.jar:na]
      at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1284) ~[catalina.jar:na]
      at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320) ~[na:1.5.0_22]
      at ch.qos.logback.classic.turbo.ReconfigureOnChangeFilter.detachReconfigurationToNewThread(ReconfigureOnChangeFilter.java:134) ~[logback-classic-0.9.22.jar:na]
      at ch.qos.logback.classic.turbo.ReconfigureOnChangeFilter.decide(ReconfigureOnChangeFilter.java:114) ~[logback-classic-0.9.22.jar:na]
      at ch.qos.logback.classic.spi.TurboFilterList.getTurboFilterChainDecision(TurboFilterList.java:51) ~[logback-classic-0.9.22.jar:na]
      at ch.qos.logback.classic.LoggerContext.getTurboFilterChainDecision_0_3OrMore(LoggerContext.java:259) ~[logback-classic-0.9.22.jar:na]
      at ch.qos.logback.classic.Logger.filterAndLog_0_Or3Plus(Logger.java:413) ~[logback-classic-0.9.22.jar:na]
      at ch.qos.logback.classic.Logger.log(Logger.java:844) ~[logback-classic-0.9.22.jar:na]
      at org.apache.commons.logging.impl.SLF4JLocationAwareLog.debug(SLF4JLocationAwareLog.java:133) ~[jcl-over-slf4j-1.6.0.jar:1.1.1]
      at org.springframework.security.web.FilterChainProxy.getFilters(FilterChainProxy.java:182) ~[spring-security-web-3.0.2.RELEASE.jar:na]
      at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:135) ~[spring-security-web-3.0.2.RELEASE.jar:na]
      at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:237) ~[org.springframework.web-3.0.3.RELEASE.jar:3.0.3.RELEASE]
      at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167) ~[org.springframework.web-3.0.3.RELEASE.jar:3.0.3.RELEASE]
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215) ~[catalina.jar:na]
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) ~[catalina.jar:na]
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) ~[catalina.jar:na]
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172) [catalina.jar:na]
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) [catalina.jar:na]
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) [catalina.jar:na]
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108) [catalina.jar:na]
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174) [catalina.jar:na]
      at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:837) [tomcat-http.jar:na]
      at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:640) [tomcat-http.jar:na]
      at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1287) [tomcat-util.jar:5.1]
      at java.lang.Thread.run(Thread.java:595) [na:1.5.0_22]

        Attachments

          Activity

            People

            • Assignee:
              logback-dev Logback dev list
              Reporter:
              alvincys Alvin Chee
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: