ch.qos.logback.core.joran.spi.ActionException: ch.qos.logback.core.util.DynamicClassLoadingException: Failed to instantiate type br.com.tecsinapse.monitoring.logging.SmartSMTPAppender

QOS.ch JIRA | Janario Oliveira | 2 years ago
  1. 0

    After I replace the wildfly logmanager to logback as a module I've added a custom project appender and it fails as ClassNotFoundException logback.xml <appender name="EMAIL" class="br.com.tecsinapse.monitoring.logging.SmartSMTPAppender"> As I've seen OptionHelper instantiate* should also try to instantiate from thread class loader context exception: 03:16:44,495 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [br.com.tecsinapse.monitoring.logging.SmartSMTPAppender] 03:16:44,495 |-ERROR in ch.qos.logback.core.joran.action.AppenderAction - Could not create an Appender of type [br.com.tecsinapse.monitoring.logging.SmartSMTPAppender]. ch.qos.logback.core.util.DynamicClassLoadingException: Failed to instantiate type br.com.tecsinapse.monitoring.logging.SmartSMTPAppender at ch.qos.logback.core.util.DynamicClassLoadingException: Failed to instantiate type br.com.tecsinapse.monitoring.logging.SmartSMTPAppender at at ch.qos.logback.core.util.OptionHelper.instantiateByClassNameAndParameter(OptionHelper.java:73) at at ch.qos.logback.core.util.OptionHelper.instantiateByClassName(OptionHelper.java:48) 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:275) at at ch.qos.logback.core.joran.spi.Interpreter.startElement(Interpreter.java:147) at at ch.qos.logback.core.joran.spi.Interpreter.startElement(Interpreter.java:129) at at ch.qos.logback.core.joran.spi.EventPlayer.play(EventPlayer.java:50) at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:149) at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:135) at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:99) at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:49) at at ch.qos.logback.classic.util.ContextInitializer.configureByResource(ContextInitializer.java:77) at at me.janario.logback.deployment.LogbackContextSelector.lambda$getLoggerContext$0(LogbackContextSelector.java:81) at at me.janario.logback.deployment.LogbackContextSelector$$Lambda$1/1479140596.apply(Unknown Source) at at java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1688) at at me.janario.logback.deployment.LogbackContextSelector.getLoggerContext(LogbackContextSelector.java:65) at at org.slf4j.impl.StaticLoggerBinder.getLoggerFactory(StaticLoggerBinder.java:111) at at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:315) at at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:277) at at org.jboss.logging.Slf4jLoggerProvider.getLogger(Slf4jLoggerProvider.java:29) at at org.jboss.logging.Logger.getLogger(Logger.java:2163) at at org.jboss.logging.Logger$1.run(Logger.java:2263) at at java.security.AccessController.doPrivileged(Native Method) at at org.jboss.logging.Logger.getMessageLogger(Logger.java:2227) at at org.jboss.logging.Logger.getMessageLogger(Logger.java:2214) at at org.hibernate.validator.internal.util.logging.LoggerFactory.make(LoggerFactory.java:29) at at org.hibernate.validator.internal.cdi.ValidationExtension.<clinit>(ValidationExtension.java:87) at at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at at java.lang.reflect.Constructor.newInstance(Constructor.java:422) at at java.lang.Class.newInstance(Class.java:442) at at org.jboss.as.weld.deployment.WeldPortableExtensions.tryRegisterExtension(WeldPortableExtensions.java:54) at at org.jboss.as.weld.deployment.processors.WeldPortableExtensionProcessor.loadAttachments(WeldPortableExtensionProcessor.java:121) at at org.jboss.as.weld.deployment.processors.WeldPortableExtensionProcessor.deploy(WeldPortableExtensionProcessor.java:81) at at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:159) at at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948) at at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881) at at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.ClassNotFoundException: br.com.tecsinapse.monitoring.logging.SmartSMTPAppender from [Module "ch.qos.logback:main" from local module loader @131ef10 (finder: local module finder @55b0dcab (roots: /home/janario/Programs/Java/servers/wildfly/wildfly-8.2.0.Final-tec-log/modules,/home/janario/Programs/Java/servers/wildfly/wildfly-8.2.0.Final-tec-log/modules/system/layers/tecsinapse,/home/janario/Programs/Java/servers/wildfly/wildfly-8.2.0.Final-tec-log/modules/system/layers/logback,/home/janario/Programs/Java/servers/wildfly/wildfly-8.2.0.Final-tec-log/modules/system/layers/base))] at at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:213) at at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:459) at at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:408) at at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:389) at at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:134) at at ch.qos.logback.core.util.OptionHelper.instantiateByClassNameAndParameter(OptionHelper.java:60) at ... 41 common frames omitted 03:16:44,496 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@7:88 - ActionException in Action for tag [appender] ch.qos.logback.core.joran.spi.ActionException: ch.qos.logback.core.util.DynamicClassLoadingException: Failed to instantiate type br.com.tecsinapse.monitoring.logging.SmartSMTPAppender at ch.qos.logback.core.joran.spi.ActionException: ch.qos.logback.core.util.DynamicClassLoadingException: Failed to instantiate type br.com.tecsinapse.monitoring.logging.SmartSMTPAppender 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:275) at at ch.qos.logback.core.joran.spi.Interpreter.startElement(Interpreter.java:147) at at ch.qos.logback.core.joran.spi.Interpreter.startElement(Interpreter.java:129) at at ch.qos.logback.core.joran.spi.EventPlayer.play(EventPlayer.java:50) at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:149) at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:135) at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:99) at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:49) at at ch.qos.logback.classic.util.ContextInitializer.configureByResource(ContextInitializer.java:77) at at me.janario.logback.deployment.LogbackContextSelector.lambda$getLoggerContext$0(LogbackContextSelector.java:81) at at me.janario.logback.deployment.LogbackContextSelector$$Lambda$1/1479140596.apply(Unknown Source) at at java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1688) at at me.janario.logback.deployment.LogbackContextSelector.getLoggerContext(LogbackContextSelector.java:65) at at org.slf4j.impl.StaticLoggerBinder.getLoggerFactory(StaticLoggerBinder.java:111) at at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:315) at at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:277) at at org.jboss.logging.Slf4jLoggerProvider.getLogger(Slf4jLoggerProvider.java:29) at at org.jboss.logging.Logger.getLogger(Logger.java:2163) at at org.jboss.logging.Logger$1.run(Logger.java:2263) at at java.security.AccessController.doPrivileged(Native Method) at at org.jboss.logging.Logger.getMessageLogger(Logger.java:2227) at at org.jboss.logging.Logger.getMessageLogger(Logger.java:2214) at at org.hibernate.validator.internal.util.logging.LoggerFactory.make(LoggerFactory.java:29) at at org.hibernate.validator.internal.cdi.ValidationExtension.<clinit>(ValidationExtension.java:87) at at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at at java.lang.reflect.Constructor.newInstance(Constructor.java:422) at at java.lang.Class.newInstance(Class.java:442) at at org.jboss.as.weld.deployment.WeldPortableExtensions.tryRegisterExtension(WeldPortableExtensions.java:54) at at org.jboss.as.weld.deployment.processors.WeldPortableExtensionProcessor.loadAttachments(WeldPortableExtensionProcessor.java:121) at at org.jboss.as.weld.deployment.processors.WeldPortableExtensionProcessor.deploy(WeldPortableExtensionProcessor.java:81) at at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:159) at at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948) at at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881) at at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at at java.lang.Thread.run(Thread.java:745) Caused by: ch.qos.logback.core.util.DynamicClassLoadingException: Failed to instantiate type br.com.tecsinapse.monitoring.logging.SmartSMTPAppender at at ch.qos.logback.core.util.OptionHelper.instantiateByClassNameAndParameter(OptionHelper.java:73) at at ch.qos.logback.core.util.OptionHelper.instantiateByClassName(OptionHelper.java:48) 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 ... 38 common frames omitted Caused by: java.lang.ClassNotFoundException: br.com.tecsinapse.monitoring.logging.SmartSMTPAppender from [Module "ch.qos.logback:main" from local module loader @131ef10 (finder: local module finder @55b0dcab (roots: /home/janario/Programs/Java/servers/wildfly/wildfly-8.2.0.Final-tec-log/modules,/home/janario/Programs/Java/servers/wildfly/wildfly-8.2.0.Final-tec-log/modules/system/layers/tecsinapse,/home/janario/Programs/Java/servers/wildfly/wildfly-8.2.0.Final-tec-log/modules/system/layers/logback,/home/janario/Programs/Java/servers/wildfly/wildfly-8.2.0.Final-tec-log/modules/system/layers/base))] at at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:213) at at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:459) at at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:408) at at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:389) at at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:134) at at ch.qos.logback.core.util.OptionHelper.instantiateByClassNameAndParameter(OptionHelper.java:60) at ... 41 common frames omitted

    QOS.ch JIRA | 2 years ago | Janario Oliveira
    ch.qos.logback.core.joran.spi.ActionException: ch.qos.logback.core.util.DynamicClassLoadingException: Failed to instantiate type br.com.tecsinapse.monitoring.logging.SmartSMTPAppender
  2. 0

    After I replace the wildfly logmanager to logback as a module I've added a custom project appender and it fails as ClassNotFoundException logback.xml <appender name="EMAIL" class="br.com.tecsinapse.monitoring.logging.SmartSMTPAppender"> As I've seen OptionHelper instantiate* should also try to instantiate from thread class loader context exception: 03:16:44,495 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [br.com.tecsinapse.monitoring.logging.SmartSMTPAppender] 03:16:44,495 |-ERROR in ch.qos.logback.core.joran.action.AppenderAction - Could not create an Appender of type [br.com.tecsinapse.monitoring.logging.SmartSMTPAppender]. ch.qos.logback.core.util.DynamicClassLoadingException: Failed to instantiate type br.com.tecsinapse.monitoring.logging.SmartSMTPAppender at ch.qos.logback.core.util.DynamicClassLoadingException: Failed to instantiate type br.com.tecsinapse.monitoring.logging.SmartSMTPAppender at at ch.qos.logback.core.util.OptionHelper.instantiateByClassNameAndParameter(OptionHelper.java:73) at at ch.qos.logback.core.util.OptionHelper.instantiateByClassName(OptionHelper.java:48) 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:275) at at ch.qos.logback.core.joran.spi.Interpreter.startElement(Interpreter.java:147) at at ch.qos.logback.core.joran.spi.Interpreter.startElement(Interpreter.java:129) at at ch.qos.logback.core.joran.spi.EventPlayer.play(EventPlayer.java:50) at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:149) at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:135) at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:99) at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:49) at at ch.qos.logback.classic.util.ContextInitializer.configureByResource(ContextInitializer.java:77) at at me.janario.logback.deployment.LogbackContextSelector.lambda$getLoggerContext$0(LogbackContextSelector.java:81) at at me.janario.logback.deployment.LogbackContextSelector$$Lambda$1/1479140596.apply(Unknown Source) at at java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1688) at at me.janario.logback.deployment.LogbackContextSelector.getLoggerContext(LogbackContextSelector.java:65) at at org.slf4j.impl.StaticLoggerBinder.getLoggerFactory(StaticLoggerBinder.java:111) at at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:315) at at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:277) at at org.jboss.logging.Slf4jLoggerProvider.getLogger(Slf4jLoggerProvider.java:29) at at org.jboss.logging.Logger.getLogger(Logger.java:2163) at at org.jboss.logging.Logger$1.run(Logger.java:2263) at at java.security.AccessController.doPrivileged(Native Method) at at org.jboss.logging.Logger.getMessageLogger(Logger.java:2227) at at org.jboss.logging.Logger.getMessageLogger(Logger.java:2214) at at org.hibernate.validator.internal.util.logging.LoggerFactory.make(LoggerFactory.java:29) at at org.hibernate.validator.internal.cdi.ValidationExtension.<clinit>(ValidationExtension.java:87) at at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at at java.lang.reflect.Constructor.newInstance(Constructor.java:422) at at java.lang.Class.newInstance(Class.java:442) at at org.jboss.as.weld.deployment.WeldPortableExtensions.tryRegisterExtension(WeldPortableExtensions.java:54) at at org.jboss.as.weld.deployment.processors.WeldPortableExtensionProcessor.loadAttachments(WeldPortableExtensionProcessor.java:121) at at org.jboss.as.weld.deployment.processors.WeldPortableExtensionProcessor.deploy(WeldPortableExtensionProcessor.java:81) at at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:159) at at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948) at at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881) at at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.ClassNotFoundException: br.com.tecsinapse.monitoring.logging.SmartSMTPAppender from [Module "ch.qos.logback:main" from local module loader @131ef10 (finder: local module finder @55b0dcab (roots: /home/janario/Programs/Java/servers/wildfly/wildfly-8.2.0.Final-tec-log/modules,/home/janario/Programs/Java/servers/wildfly/wildfly-8.2.0.Final-tec-log/modules/system/layers/tecsinapse,/home/janario/Programs/Java/servers/wildfly/wildfly-8.2.0.Final-tec-log/modules/system/layers/logback,/home/janario/Programs/Java/servers/wildfly/wildfly-8.2.0.Final-tec-log/modules/system/layers/base))] at at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:213) at at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:459) at at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:408) at at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:389) at at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:134) at at ch.qos.logback.core.util.OptionHelper.instantiateByClassNameAndParameter(OptionHelper.java:60) at ... 41 common frames omitted 03:16:44,496 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@7:88 - ActionException in Action for tag [appender] ch.qos.logback.core.joran.spi.ActionException: ch.qos.logback.core.util.DynamicClassLoadingException: Failed to instantiate type br.com.tecsinapse.monitoring.logging.SmartSMTPAppender at ch.qos.logback.core.joran.spi.ActionException: ch.qos.logback.core.util.DynamicClassLoadingException: Failed to instantiate type br.com.tecsinapse.monitoring.logging.SmartSMTPAppender 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:275) at at ch.qos.logback.core.joran.spi.Interpreter.startElement(Interpreter.java:147) at at ch.qos.logback.core.joran.spi.Interpreter.startElement(Interpreter.java:129) at at ch.qos.logback.core.joran.spi.EventPlayer.play(EventPlayer.java:50) at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:149) at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:135) at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:99) at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:49) at at ch.qos.logback.classic.util.ContextInitializer.configureByResource(ContextInitializer.java:77) at at me.janario.logback.deployment.LogbackContextSelector.lambda$getLoggerContext$0(LogbackContextSelector.java:81) at at me.janario.logback.deployment.LogbackContextSelector$$Lambda$1/1479140596.apply(Unknown Source) at at java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1688) at at me.janario.logback.deployment.LogbackContextSelector.getLoggerContext(LogbackContextSelector.java:65) at at org.slf4j.impl.StaticLoggerBinder.getLoggerFactory(StaticLoggerBinder.java:111) at at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:315) at at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:277) at at org.jboss.logging.Slf4jLoggerProvider.getLogger(Slf4jLoggerProvider.java:29) at at org.jboss.logging.Logger.getLogger(Logger.java:2163) at at org.jboss.logging.Logger$1.run(Logger.java:2263) at at java.security.AccessController.doPrivileged(Native Method) at at org.jboss.logging.Logger.getMessageLogger(Logger.java:2227) at at org.jboss.logging.Logger.getMessageLogger(Logger.java:2214) at at org.hibernate.validator.internal.util.logging.LoggerFactory.make(LoggerFactory.java:29) at at org.hibernate.validator.internal.cdi.ValidationExtension.<clinit>(ValidationExtension.java:87) at at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at at java.lang.reflect.Constructor.newInstance(Constructor.java:422) at at java.lang.Class.newInstance(Class.java:442) at at org.jboss.as.weld.deployment.WeldPortableExtensions.tryRegisterExtension(WeldPortableExtensions.java:54) at at org.jboss.as.weld.deployment.processors.WeldPortableExtensionProcessor.loadAttachments(WeldPortableExtensionProcessor.java:121) at at org.jboss.as.weld.deployment.processors.WeldPortableExtensionProcessor.deploy(WeldPortableExtensionProcessor.java:81) at at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:159) at at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948) at at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881) at at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at at java.lang.Thread.run(Thread.java:745) Caused by: ch.qos.logback.core.util.DynamicClassLoadingException: Failed to instantiate type br.com.tecsinapse.monitoring.logging.SmartSMTPAppender at at ch.qos.logback.core.util.OptionHelper.instantiateByClassNameAndParameter(OptionHelper.java:73) at at ch.qos.logback.core.util.OptionHelper.instantiateByClassName(OptionHelper.java:48) 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 ... 38 common frames omitted Caused by: java.lang.ClassNotFoundException: br.com.tecsinapse.monitoring.logging.SmartSMTPAppender from [Module "ch.qos.logback:main" from local module loader @131ef10 (finder: local module finder @55b0dcab (roots: /home/janario/Programs/Java/servers/wildfly/wildfly-8.2.0.Final-tec-log/modules,/home/janario/Programs/Java/servers/wildfly/wildfly-8.2.0.Final-tec-log/modules/system/layers/tecsinapse,/home/janario/Programs/Java/servers/wildfly/wildfly-8.2.0.Final-tec-log/modules/system/layers/logback,/home/janario/Programs/Java/servers/wildfly/wildfly-8.2.0.Final-tec-log/modules/system/layers/base))] at at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:213) at at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:459) at at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:408) at at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:389) at at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:134) at at ch.qos.logback.core.util.OptionHelper.instantiateByClassNameAndParameter(OptionHelper.java:60) at ... 41 common frames omitted

    QOS.ch JIRA | 2 years ago | Janario Oliveira
    ch.qos.logback.core.joran.spi.ActionException: ch.qos.logback.core.util.DynamicClassLoadingException: Failed to instantiate type br.com.tecsinapse.monitoring.logging.SmartSMTPAppender
  3. 0

    Perf4j integration with PlayFramework ,unresolvable jar issues

    Stack Overflow | 2 years ago | user2160919
    ch.qos.logback.core.joran.spi.ActionException: ch.qos.logback.core.util.DynamicClassLoadingException: Failed to instantiate type org.perf4j.log4j.GraphingStatisticsAppender
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Custom logback appender throws

    Stack Overflow | 3 years ago | Matthias B
    ch.qos.logback.core.joran.spi.ActionException: ch.qos.logback.core.util.IncompatibleClassException
  6. 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.joran.spi.ActionException: ch.qos.logback.core.util.DynamicClassLoadingException: Failed to instantiate type com.yammer.metrics.logback.InstrumentedAppender

    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. ch.qos.logback.core.joran.spi.ActionException

      ch.qos.logback.core.util.DynamicClassLoadingException: Failed to instantiate type br.com.tecsinapse.monitoring.logging.SmartSMTPAppender

      at ch.qos.logback.core.joran.action.AppenderAction.begin()
    2. Logback Core Module
      GenericConfigurator.doConfigure
      1. ch.qos.logback.core.joran.action.AppenderAction.begin(AppenderAction.java:82)
      2. ch.qos.logback.core.joran.spi.Interpreter.callBeginAction(Interpreter.java:275)
      3. ch.qos.logback.core.joran.spi.Interpreter.startElement(Interpreter.java:147)
      4. ch.qos.logback.core.joran.spi.Interpreter.startElement(Interpreter.java:129)
      5. ch.qos.logback.core.joran.spi.EventPlayer.play(EventPlayer.java:50)
      6. ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:149)
      7. ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:135)
      8. ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:99)
      9. ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:49)
      9 frames
    3. Logback Classic Module
      ContextInitializer.configureByResource
      1. ch.qos.logback.classic.util.ContextInitializer.configureByResource(ContextInitializer.java:77)
      1 frame
    4. me.janario.logback
      LogbackContextSelector.lambda$getLoggerContext$0
      1. me.janario.logback.deployment.LogbackContextSelector.lambda$getLoggerContext$0(LogbackContextSelector.java:81)
      1 frame