赞
踩
- 15:28:21,780 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - debug attribute not set
- 15:28:21,781 |-INFO in ch.qos.logback.core.joran.action.ShutdownHookAction - About to instantiate shutdown hook of type [ch.qos.logback.core.hook.DelayingShutdownHook]
- 15:28:21,781 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [com.aliyun.openservices.log.logback.LoghubAppender]
- 15:28:21,781 |-ERROR in ch.qos.logback.core.joran.action.AppenderAction - Could not create an Appender of type [com.aliyun.openservices.log.logback.LoghubAppender]. ch.qos.logback.core.util.DynamicClassLoadingException: Failed to instantiate type com.aliyun.openservices.log.logback.LoghubAppender
- at ch.qos.logback.core.util.DynamicClassLoadingException: Failed to instantiate type com.aliyun.openservices.log.logback.LoghubAppender
- at at ch.qos.logback.core.util.OptionHelper.instantiateByClassNameAndParameter(OptionHelper.java:68)
- at at ch.qos.logback.core.util.OptionHelper.instantiateByClassName(OptionHelper.java:44)
- at at ch.qos.logback.core.util.OptionHelper.instantiateByClassName(OptionHelper.java:33)
- at at ch.qos.logback.core.joran.action.AppenderAction.begin(AppenderAction.java:52)
- at at ch.qos.logback.core.joran.spi.Interpreter.callBeginAction(Interpreter.java:269)
- at at ch.qos.logback.core.joran.spi.Interpreter.startElement(Interpreter.java:145)
- at at ch.qos.logback.core.joran.spi.Interpreter.startElement(Interpreter.java:128)
- at at ch.qos.logback.core.joran.spi.EventPlayer.play(EventPlayer.java:50)
- at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:165)
- at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:152)
- at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:110)
- at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:53)
- at at org.springframework.boot.logging.logback.LogbackLoggingSystem.configureByResourceUrl(LogbackLoggingSystem.java:188)
- at at org.springframework.boot.logging.logback.LogbackLoggingSystem.loadConfiguration(LogbackLoggingSystem.java:165)
- at at org.springframework.boot.logging.logback.LogbackLoggingSystem.reinitialize(LogbackLoggingSystem.java:232)
- at at org.springframework.boot.logging.AbstractLoggingSystem.initializeWithConventions(AbstractLoggingSystem.java:73)
- at at org.springframework.boot.logging.AbstractLoggingSystem.initialize(AbstractLoggingSystem.java:60)
- at at org.springframework.boot.logging.logback.LogbackLoggingSystem.initialize(LogbackLoggingSystem.java:132)
- at at org.springframework.boot.context.logging.LoggingApplicationListener.initializeSystem(LoggingApplicationListener.java:313)
- at at org.springframework.boot.context.logging.LoggingApplicationListener.initialize(LoggingApplicationListener.java:282)
- at at org.springframework.boot.context.logging.LoggingApplicationListener.onApplicationEnvironmentPreparedEvent(LoggingApplicationListener.java:240)
- at at org.springframework.boot.context.logging.LoggingApplicationListener.onApplicationEvent(LoggingApplicationListener.java:216)
- at at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:176)
- at at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:169)
- at at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:143)
- at at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:131)
- at at org.springframework.boot.context.event.EventPublishingRunListener.environmentPrepared(EventPublishingRunListener.java:85)
- at at org.springframework.boot.SpringApplicationRunListeners.lambda$environmentPrepared$2(SpringApplicationRunListeners.java:66)
- at at java.util.ArrayList.forEach(ArrayList.java:1257)
- at at org.springframework.boot.SpringApplicationRunListeners.doWithListeners(SpringApplicationRunListeners.java:120)
- at at org.springframework.boot.SpringApplicationRunListeners.doWithListeners(SpringApplicationRunListeners.java:114)
- at at org.springframework.boot.SpringApplicationRunListeners.environmentPrepared(SpringApplicationRunListeners.java:65)
- at at org.springframework.boot.SpringApplication.prepareEnvironment(SpringApplication.java:339)
- at at org.springframework.boot.SpringApplication.run(SpringApplication.java:297)
- at at org.springframework.boot.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:164)
- at at org.springframework.cloud.bootstrap.BootstrapApplicationListener.bootstrapServiceContext(BootstrapApplicationListener.java:195)
- at at org.springframework.cloud.bootstrap.BootstrapApplicationListener.onApplicationEvent(BootstrapApplicationListener.java:114)
- at at org.springframework.cloud.bootstrap.BootstrapApplicationListener.onApplicationEvent(BootstrapApplicationListener.java:77)
- at at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:176)
- at at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:169)
- at at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:143)
- at at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:131)
- at at org.springframework.boot.context.event.EventPublishingRunListener.environmentPrepared(EventPublishingRunListener.java:85)
- at at org.springframework.boot.SpringApplicationRunListeners.lambda$environmentPrepared$2(SpringApplicationRunListeners.java:66)
- at at java.util.ArrayList.forEach(ArrayList.java:1257)
- at at org.springframework.boot.SpringApplicationRunListeners.doWithListeners(SpringApplicationRunListeners.java:120)
- at at org.springframework.boot.SpringApplicationRunListeners.doWithListeners(SpringApplicationRunListeners.java:114)
- at at org.springframework.boot.SpringApplicationRunListeners.environmentPrepared(SpringApplicationRunListeners.java:65)
- at at org.springframework.boot.SpringApplication.prepareEnvironment(SpringApplication.java:339)
- at at org.springframework.boot.SpringApplication.run(SpringApplication.java:297)
- at at org.springframework.boot.SpringApplication.run(SpringApplication.java:1312)
- at at org.springframework.boot.SpringApplication.run(SpringApplication.java:1301)
- at at com.bohe.auth.BoHeAuthApplication.main(BoHeAuthApplication.java:19)
- Caused by: java.lang.ClassNotFoundException: com.aliyun.openservices.log.logback.LoghubAppender
- at at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
- at at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
- at at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
- at at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
- at at ch.qos.logback.core.util.OptionHelper.instantiateByClassNameAndParameter(OptionHelper.java:55)
- at ... 52 common frames omitted
删除 logback.xml 项目可以运行起来。
如上错误 可能 原因:
1、有xml文件,但没有pom文件,会报错。
2、yml文件里配置了xml文件,但后边有空格
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。