LoggerFactory is not a Logback LoggerContext but Logback is on the classpath. Either remove Logback

2019-06-26 22:19:57.408642475 java.lang.IllegalArgumentException: LoggerFactory is not a Logback LoggerContext but Logback is on the classpath. Either remove Logback or the competing implementation (class org.owasp.dependencycheck.maven.slf4j.MavenLoggerFactory loaded from jar:file:/home/admin/samaritan/libs/dependency-check-maven-1.4.3.jar!/). If you are using WebLogic you will need to add 'org.slf4j' to prefer-application-packages in WEB-INF/weblogic.xml: org.owasp.dependencycheck.maven.slf4j.MavenLoggerFactory
2019-06-26 22:19:57.408701383 	at org.springframework.util.Assert.instanceCheckFailed(Assert.java:637)
2019-06-26 22:19:57.408712505 	at org.springframework.util.Assert.isInstanceOf(Assert.java:537)
2019-06-26 22:19:57.408744865 	at org.springframework.boot.logging.logback.LogbackLoggingSystem.getLoggerContext(LogbackLoggingSystem.java:274)
2019-06-26 22:19:57.408753781 	at org.springframework.boot.logging.logback.LogbackLoggingSystem.beforeInitialize(LogbackLoggingSystem.java:99)
2019-06-26 22:19:57.408809318 	at org.springframework.boot.context.logging.LoggingApplicationListener.onApplicationStartingEvent(LoggingApplicationListener.java:191)
2019-06-26 22:19:57.408845346 	at org.springframework.boot.context.logging.LoggingApplicationListener.onApplicationEvent(LoggingApplicationListener.java:170)
2019-06-26 22:19:57.408859094 	at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172)
2019-06-26 22:19:57.408868002 	at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165)
2019-06-26 22:19:57.408877348 	at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139)
2019-06-26 22:19:57.408923926 	at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:127)
2019-06-26 22:19:57.408936068 	at org.springframework.boot.context.event.EventPublishingRunListener.starting(EventPublishingRunListener.java:68)
2019-06-26 22:19:57.408946296 	at org.springframework.boot.SpringApplicationRunListeners.starting(SpringApplicationRunListeners.java:48)
2019-06-26 22:19:57.408981384 	at org.springframework.boot.SpringApplication.run(SpringApplication.java:313)
2019-06-26 22:19:57.409035943 	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1246)
2019-06-26 22:19:57.409047754 	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1234)
2019-06-26 22:19:57.409076731 	at cn.fraudmetrix.samaritan.AppMain.main(AppMain.java:132)
2019-06-26 22:19:57.409085632 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2019-06-26 22:19:57.409148074 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
2019-06-26 22:19:57.409170711 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
2019-06-26 22:19:57.409186039 	at java.lang.reflect.Method.invoke(Method.java:498)
2019-06-26 22:19:57.409200844 	at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48)
2019-06-26 22:19:57.409213367 	at org.springframework.boot.loader.Launcher.launch(Launcher.java:87)
2019-06-26 22:19:57.409228141 	at org.springframework.boot.loader.Launcher.launch(Launcher.java:50)
2019-06-26 22:19:57.409275075 	at org.springframework.boot.loader.PropertiesLauncher.main(PropertiesLauncher.java:587)
2019-06-26 22:19:57.409392972 Exception in thread "main" java.lang.reflect.InvocationTargetException
2019-06-26 22:19:57.409511976 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2019-06-26 22:19:57.409539209 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
0001-01-01 08:00:00.000000000 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
2019-06-26 22:19:57.409599381 	at java.lang.reflect.Method.invoke(Method.java:498)
2019-06-26 22:19:57.409612149 	at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48)
2019-06-26 22:19:57.409625139 	at org.springframework.boot.loader.Launcher.launch(Launcher.java:87)
2019-06-26 22:19:57.409638204 	at org.springframework.boot.loader.Launcher.launch(Launcher.java:50)
0001-01-01 08:00:00.000000000 	at org.springframework.boot.loader.PropertiesLauncher.main(PropertiesLauncher.java:587)
2019-06-26 22:19:57.409742319 Caused by: java.lang.IllegalArgumentException: LoggerFactory is not a Logback LoggerContext but Logback is on the classpath. Either remove Logback or the competing implementation (class org.owasp.dependencycheck.maven.slf4j.MavenLoggerFactory loaded from jar:file:/home/admin/samaritan/libs/dependency-check-maven-1.4.3.jar!/). If you are using WebLogic you will need to add 'org.slf4j' to prefer-application-packages in WEB-INF/weblogic.xml: org.owasp.dependencycheck.maven.slf4j.MavenLoggerFactory
2019-06-26 22:19:57.409758932 	at org.springframework.util.Assert.instanceCheckFailed(Assert.java:637)
2019-06-26 22:19:57.409766766 	at org.springframework.util.Assert.isInstanceOf(Assert.java:537)
2019-06-26 22:19:57.409783572 	at org.springframework.boot.logging.logback.LogbackLoggingSystem.getLoggerContext(LogbackLoggingSystem.java:274)
2019-06-26 22:19:57.409805326 	at org.springframework.boot.logging.logback.LogbackLoggingSystem.beforeInitialize(LogbackLoggingSystem.java:99)
2019-06-26 22:19:57.409815018 	at org.springframework.boot.context.logging.LoggingApplicationListener.onApplicationStartingEvent(LoggingApplicationListener.java:191)
2019-06-26 22:19:57.409866736 	at org.springframework.boot.context.logging.LoggingApplicationListener.onApplicationEvent(LoggingApplicationListener.java:170)
2019-06-26 22:19:57.409875858 	at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172)
2019-06-26 22:19:57.409897243 	at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165)
0001-01-01 08:00:00.000000000 	at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139)
2019-06-26 22:19:57.409999701 	at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:127)
0001-01-01 08:00:00.000000000 	at org.springframework.boot.context.event.EventPublishingRunListener.starting(EventPublishingRunListener.java:68)
2019-06-26 22:19:57.410027481 	at org.springframework.boot.SpringApplicationRunListeners.starting(SpringApplicationRunListeners.java:48)
2019-06-26 22:19:57.410039955 	at org.springframework.boot.SpringApplication.run(SpringApplication.java:313)
2019-06-26 22:19:57.410054098 	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1246)
2019-06-26 22:19:57.410073967 	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1234)
0001-01-01 08:00:00.000000000 	at cn.fraudmetrix.samaritan.AppMain.main(AppMain.java:132)
2019-06-26 22:19:57.410092094 	... 8 more

移除掉dependency-check-maven-1.4.3.jar!即可
上一篇:ABAP Modification browser SE95


下一篇:spring接口为@ModelAttribute param