ch.qos.logback.core.util.DynamicClassLoadingException

If you like a tip written by other Samebug users, mark is as helpful! Marks help our algorithm provide you better solutions and also help other users.
tip

This means you're missing a class that Java needs for this program. Check if you're not missing the jsr305-1.3.7.jar from your classpath, it's the jar that contains the class javax.annotation.Nullable.

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • 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}
    via by Peter Lynch,
  • Nexus will not load
    via by Mike London,
  • CXF Web Service Tutorial
    via by Unknown author,
    • ch.qos.logback.core.util.DynamicClassLoadingException: Failed to instantiate type com.yammer.metrics.logback.InstrumentedAppender at ch.qos.logback.core.util.OptionHelper.instantiateByClassNameAndParameter(OptionHelper.java:74) at ch.qos.logback.core.util.OptionHelper.instantiateByClassName(OptionHelper.java:49) at ch.qos.logback.core.util.OptionHelper.instantiateByClassName(OptionHelper.java:35) at ch.qos.logback.core.joran.action.AppenderAction.begin(AppenderAction.java:54) at ch.qos.logback.core.joran.spi.Interpreter.callBeginAction(Interpreter.java:276) at ch.qos.logback.core.joran.spi.Interpreter.startElement(Interpreter.java:148) at ch.qos.logback.core.joran.spi.Interpreter.startElement(Interpreter.java:130) at ch.qos.logback.core.joran.spi.EventPlayer.play(EventPlayer.java:50) at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:157) at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:143) at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:106) at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:83) at org.sonatype.nexus.log.internal.LogbackLogManager.reconfigure(LogbackLogManager.java:466) at org.sonatype.nexus.log.internal.LogbackLogManager.configure(LogbackLogManager.java:317) at org.sonatype.nexus.web.LogConfigListener.configureLogManager(LogConfigListener.java:59) at org.sonatype.nexus.web.LogConfigListener.contextInitialized(LogConfigListener.java:43) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4797) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5291) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633) at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:977) at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1655) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.ClassNotFoundException: com.yammer.metrics.logback.InstrumentedAppender at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1714) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559) at ch.qos.logback.core.util.OptionHelper.instantiateByClassNameAndParameter(OptionHelper.java:61) ... 29 more

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    444 more bugmates