当前位置:   article > 正文

logback配置错误项目无法启动_logback-classic升级到1.2.9服务无法启动

logback-classic升级到1.2.9服务无法启动
  1. 15:28:21,780 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - debug attribute not set
  2. 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]
  3. 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]
  4. 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
  5. at ch.qos.logback.core.util.DynamicClassLoadingException: Failed to instantiate type com.aliyun.openservices.log.logback.LoghubAppender
  6. at at ch.qos.logback.core.util.OptionHelper.instantiateByClassNameAndParameter(OptionHelper.java:68)
  7. at at ch.qos.logback.core.util.OptionHelper.instantiateByClassName(OptionHelper.java:44)
  8. at at ch.qos.logback.core.util.OptionHelper.instantiateByClassName(OptionHelper.java:33)
  9. at at ch.qos.logback.core.joran.action.AppenderAction.begin(AppenderAction.java:52)
  10. at at ch.qos.logback.core.joran.spi.Interpreter.callBeginAction(Interpreter.java:269)
  11. at at ch.qos.logback.core.joran.spi.Interpreter.startElement(Interpreter.java:145)
  12. at at ch.qos.logback.core.joran.spi.Interpreter.startElement(Interpreter.java:128)
  13. at at ch.qos.logback.core.joran.spi.EventPlayer.play(EventPlayer.java:50)
  14. at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:165)
  15. at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:152)
  16. at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:110)
  17. at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:53)
  18. at at org.springframework.boot.logging.logback.LogbackLoggingSystem.configureByResourceUrl(LogbackLoggingSystem.java:188)
  19. at at org.springframework.boot.logging.logback.LogbackLoggingSystem.loadConfiguration(LogbackLoggingSystem.java:165)
  20. at at org.springframework.boot.logging.logback.LogbackLoggingSystem.reinitialize(LogbackLoggingSystem.java:232)
  21. at at org.springframework.boot.logging.AbstractLoggingSystem.initializeWithConventions(AbstractLoggingSystem.java:73)
  22. at at org.springframework.boot.logging.AbstractLoggingSystem.initialize(AbstractLoggingSystem.java:60)
  23. at at org.springframework.boot.logging.logback.LogbackLoggingSystem.initialize(LogbackLoggingSystem.java:132)
  24. at at org.springframework.boot.context.logging.LoggingApplicationListener.initializeSystem(LoggingApplicationListener.java:313)
  25. at at org.springframework.boot.context.logging.LoggingApplicationListener.initialize(LoggingApplicationListener.java:282)
  26. at at org.springframework.boot.context.logging.LoggingApplicationListener.onApplicationEnvironmentPreparedEvent(LoggingApplicationListener.java:240)
  27. at at org.springframework.boot.context.logging.LoggingApplicationListener.onApplicationEvent(LoggingApplicationListener.java:216)
  28. at at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:176)
  29. at at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:169)
  30. at at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:143)
  31. at at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:131)
  32. at at org.springframework.boot.context.event.EventPublishingRunListener.environmentPrepared(EventPublishingRunListener.java:85)
  33. at at org.springframework.boot.SpringApplicationRunListeners.lambda$environmentPrepared$2(SpringApplicationRunListeners.java:66)
  34. at at java.util.ArrayList.forEach(ArrayList.java:1257)
  35. at at org.springframework.boot.SpringApplicationRunListeners.doWithListeners(SpringApplicationRunListeners.java:120)
  36. at at org.springframework.boot.SpringApplicationRunListeners.doWithListeners(SpringApplicationRunListeners.java:114)
  37. at at org.springframework.boot.SpringApplicationRunListeners.environmentPrepared(SpringApplicationRunListeners.java:65)
  38. at at org.springframework.boot.SpringApplication.prepareEnvironment(SpringApplication.java:339)
  39. at at org.springframework.boot.SpringApplication.run(SpringApplication.java:297)
  40. at at org.springframework.boot.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:164)
  41. at at org.springframework.cloud.bootstrap.BootstrapApplicationListener.bootstrapServiceContext(BootstrapApplicationListener.java:195)
  42. at at org.springframework.cloud.bootstrap.BootstrapApplicationListener.onApplicationEvent(BootstrapApplicationListener.java:114)
  43. at at org.springframework.cloud.bootstrap.BootstrapApplicationListener.onApplicationEvent(BootstrapApplicationListener.java:77)
  44. at at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:176)
  45. at at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:169)
  46. at at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:143)
  47. at at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:131)
  48. at at org.springframework.boot.context.event.EventPublishingRunListener.environmentPrepared(EventPublishingRunListener.java:85)
  49. at at org.springframework.boot.SpringApplicationRunListeners.lambda$environmentPrepared$2(SpringApplicationRunListeners.java:66)
  50. at at java.util.ArrayList.forEach(ArrayList.java:1257)
  51. at at org.springframework.boot.SpringApplicationRunListeners.doWithListeners(SpringApplicationRunListeners.java:120)
  52. at at org.springframework.boot.SpringApplicationRunListeners.doWithListeners(SpringApplicationRunListeners.java:114)
  53. at at org.springframework.boot.SpringApplicationRunListeners.environmentPrepared(SpringApplicationRunListeners.java:65)
  54. at at org.springframework.boot.SpringApplication.prepareEnvironment(SpringApplication.java:339)
  55. at at org.springframework.boot.SpringApplication.run(SpringApplication.java:297)
  56. at at org.springframework.boot.SpringApplication.run(SpringApplication.java:1312)
  57. at at org.springframework.boot.SpringApplication.run(SpringApplication.java:1301)
  58. at at com.bohe.auth.BoHeAuthApplication.main(BoHeAuthApplication.java:19)
  59. Caused by: java.lang.ClassNotFoundException: com.aliyun.openservices.log.logback.LoghubAppender
  60. at at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
  61. at at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
  62. at at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
  63. at at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
  64. at at ch.qos.logback.core.util.OptionHelper.instantiateByClassNameAndParameter(OptionHelper.java:55)
  65. at ... 52 common frames omitted

删除 logback.xml 项目可以运行起来。

如上错误 可能 原因:
1、有xml文件,但没有pom文件,会报错。
2、yml文件里配置了xml文件,但后边有空格

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/很楠不爱3/article/detail/312829?site
推荐阅读
相关标签
  

闽ICP备14008679号