ch.qos.logback.core.util.DynamicClassLoadingException: Failed to instantiate type com.yammer.metrics.logback.InstrumentedAppender

Sonatype JIRA | Peter Lynch | 3 years ago
  1. 0

    If metrics-logback-2.2.0.jar is not added to WEB-INF/lib of the war, or possible the tomcat common classloader, then startup completely fails on Tomcat 7 since classes required by logback-nexus.xml configuration cannot be loaded. metrics-logback jar is included in jetty bundle. {noformat} 13:41:19,653 |-ERROR in ch.qos.logback.core.joran.action.AppenderAction - Could not create an Appender of type [com.yammer.metrics.logback.InstrumentedAppender]. ch.qos.logback.core.util.DynamicClassLoadingException: Failed to instantiate type com.yammer.metrics.logback.InstrumentedAppender at ch.qos.logback.core.util.DynamicClassLoadingException: Failed to instantiate type com.yammer.metrics.logback.InstrumentedAppender at at ch.qos.logback.core.util.OptionHelper.instantiateByClassNameAndParameter(OptionHelper.java:74) at at ch.qos.logback.core.util.OptionHelper.instantiateByClassName(OptionHelper.java:49) at at ch.qos.logback.core.util.OptionHelper.instantiateByClassName(OptionHelper.java:35) at at ch.qos.logback.core.joran.action.AppenderAction.begin(AppenderAction.java:54) at at ch.qos.logback.core.joran.spi.Interpreter.callBeginAction(Interpreter.java:276) at at ch.qos.logback.core.joran.spi.Interpreter.startElement(Interpreter.java:148) at at ch.qos.logback.core.joran.spi.Interpreter.startElement(Interpreter.java:130) at at ch.qos.logback.core.joran.spi.EventPlayer.play(EventPlayer.java:50) at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:157) at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:143) at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:106) at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:83) at at org.sonatype.nexus.log.internal.LogbackLogManager.reconfigure(LogbackLogManager.java:466) at at org.sonatype.nexus.log.internal.LogbackLogManager.configure(LogbackLogManager.java:317) at at org.sonatype.nexus.web.LogConfigListener.configureLogManager(LogConfigListener.java:59) at at org.sonatype.nexus.web.LogConfigListener.contextInitialized(LogConfigListener.java:43) at at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4797) at at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5291) at at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901) at at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877) at at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633) at at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:977) at at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1655) at at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at at java.util.concurrent.FutureTask.run(Unknown Source) at at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at at java.lang.Thread.run(Unknown Source) Caused by: java.lang.ClassNotFoundException: com.yammer.metrics.logback.InstrumentedAppender at at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1714) at at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559) at at ch.qos.logback.core.util.OptionHelper.instantiateByClassNameAndParameter(OptionHelper.java:61) at ... 29 common frames omitted 13:41:19,653 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@38:85 - ActionException in Action for tag [appender] ch.qos.logback.core.joran.spi.ActionException: ch.qos.logback.core.util.DynamicClassLoadingException: Failed to instantiate type com.yammer.metrics.logback.InstrumentedAppender at ch.qos.logback.core.joran.spi.ActionException: ch.qos.logback.core.util.DynamicClassLoadingException: Failed to instantiate type com.yammer.metrics.logback.InstrumentedAppender at at ch.qos.logback.core.joran.action.AppenderAction.begin(AppenderAction.java:82) at at ch.qos.logback.core.joran.spi.Interpreter.callBeginAction(Interpreter.java:276) at at ch.qos.logback.core.joran.spi.Interpreter.startElement(Interpreter.java:148) at at ch.qos.logback.core.joran.spi.Interpreter.startElement(Interpreter.java:130) at at ch.qos.logback.core.joran.spi.EventPlayer.play(EventPlayer.java:50) at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:157) at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:143) at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:106) at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:83) at at org.sonatype.nexus.log.internal.LogbackLogManager.reconfigure(LogbackLogManager.java:466) at at org.sonatype.nexus.log.internal.LogbackLogManager.configure(LogbackLogManager.java:317) at at org.sonatype.nexus.web.LogConfigListener.configureLogManager(LogConfigListener.java:59) at at org.sonatype.nexus.web.LogConfigListener.contextInitialized(LogConfigListener.java:43) at at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4797) at at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5291) at at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901) at at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877) at at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633) at at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:977) at at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1655) at at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at at java.util.concurrent.FutureTask.run(Unknown Source) at at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at at java.lang.Thread.run(Unknown Source) {noformat}

    Sonatype JIRA | 3 years ago | Peter Lynch
    ch.qos.logback.core.util.DynamicClassLoadingException: Failed to instantiate type com.yammer.metrics.logback.InstrumentedAppender
  2. 0

    Re: Upgrade from 4.5.2 to 4.7 Vmware broken for me

    cloudstack-users | 11 months ago | Rohit Yadav
    java.lang.ClassNotFoundException: com.cloud.hypervisor.vmware.resource.VmwareResource
  3. 0

    about errors while starting or stopping tomcat

    Stack Overflow | 3 years ago | Tejash Raval Prajapati
    java.lang.NoClassDefFoundError: com/mchange/v2/resourcepool/BasicResourcePool$AsyncTestIdleResourceTask
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    org.apache.jasper.runtime.TldScanner Not found

    Stack Overflow | 1 year ago | Renu Thakur
    java.lang.ClassNotFoundException: org.apache.jasper.runtime.TldScanner
  6. 0

    java.lang.NoClassDefFoundError: com/sun/istack/localization/Localizable?

    Stack Overflow | 3 years ago | Sayed Jabnoun
    java.lang.NoClassDefFoundError: com/sun/istack/localization/Localizable
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.ClassNotFoundException

    com.yammer.metrics.logback.InstrumentedAppender

    at org.apache.catalina.loader.WebappClassLoader.loadClass()
  2. Glassfish Core
    WebappClassLoader.loadClass
    1. org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1714)
    2. org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559)
    2 frames
  3. Logback Core Module
    GenericConfigurator.doConfigure
    1. ch.qos.logback.core.util.OptionHelper.instantiateByClassNameAndParameter(OptionHelper.java:61)
    2. ch.qos.logback.core.util.OptionHelper.instantiateByClassName(OptionHelper.java:49)
    3. ch.qos.logback.core.util.OptionHelper.instantiateByClassName(OptionHelper.java:35)
    4. ch.qos.logback.core.joran.action.AppenderAction.begin(AppenderAction.java:54)
    5. ch.qos.logback.core.joran.spi.Interpreter.callBeginAction(Interpreter.java:276)
    6. ch.qos.logback.core.joran.spi.Interpreter.startElement(Interpreter.java:148)
    7. ch.qos.logback.core.joran.spi.Interpreter.startElement(Interpreter.java:130)
    8. ch.qos.logback.core.joran.spi.EventPlayer.play(EventPlayer.java:50)
    9. ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:157)
    10. ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:143)
    11. ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:106)
    12. ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:83)
    12 frames
  4. ${project.groupId}:${project.artifactId}
    LogConfigListener.contextInitialized
    1. org.sonatype.nexus.log.internal.LogbackLogManager.reconfigure(LogbackLogManager.java:466)
    2. org.sonatype.nexus.log.internal.LogbackLogManager.configure(LogbackLogManager.java:317)
    3. org.sonatype.nexus.web.LogConfigListener.configureLogManager(LogConfigListener.java:59)
    4. org.sonatype.nexus.web.LogConfigListener.contextInitialized(LogConfigListener.java:43)
    4 frames
  5. Glassfish Core
    HostConfig$DeployWar.run
    1. org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4797)
    2. org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5291)
    3. org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    4. org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
    5. org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
    6. org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
    7. org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:977)
    8. org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1655)
    8 frames
  6. Java RT
    Thread.run
    1. java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
    2. java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
    3. java.util.concurrent.FutureTask.run(Unknown Source)
    4. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
    5. java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    6. java.lang.Thread.run(Unknown Source)
    6 frames