LoggerFactory is not a Logback LoggerContext but Logback is on the classpath. Either remove Logback or the competing implementation
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!即可
LoggerFactory is not a Logback LoggerContext but Logback is on the classpath. Either remove Logback or the competing implementation的更多相关文章
- springboot项目maven报错 LoggerFactory is not a Logback LoggerContext but Logback is on the classpath. Either remove Logback
完整信息如下 SLF4J: Class path contains multiple SLF4J bindings.SLF4J: Found binding in [jar:file:/D:/deve ...
- SpringBoot LoggerFactory is not a Logback LoggerContext but Logback is on the classpath
SpringBoot 在启动项目的时候一起错误: SLF4J: Class path contains multiple SLF4J bindings.SLF4J: Found binding in ...
- 解决LoggerFactory is not a Logback LoggerContext but Logback is on the classpath
因为引用了log4j2同时还引用了logback
- 安装springboot时遇到 LoggerFactory is not a Logback LoggerContext but Logback is on the classpath.问题
将工程外部jar包删除slf4j就可以运行.
- logback和log4j比较,前者是后者改良,logback配置详解(转)
一.logback的介绍 Logback是由log4j创始人设计的另一个开源日志组件,官方网站: http://logback.qos.ch.它当前分为下面下个模块: logback-core:其它两 ...
- 2018/2/16 解析Logback的AppenderBase源码,并举一反三的实现Logback扩展功能的思路,以及它的实际业务应用场景
在学习Logback的过程中,知道了它有一个可以将日志往第三方数据源写的功能,这个功能的实现就是这个AppenderBase类,不禁想看看它的源码. 下面是AppenderBase类的所有子类(也就是 ...
- 启动Spring boot项目报错:java.lang.IllegalArgumentException: LoggerFactory is not a Logback
java.lang.IllegalArgumentException: LoggerFactory is not a Logback LoggerContext but Logback is on t ...
- 使用canal分析binlog(一) 入门
canal介绍 canal是应阿里巴巴存在杭州和美国的双机房部署,存在跨机房同步的业务需求而提出的.早期,阿里巴巴B2B公司因为存在杭州和美国双机房部署,存在跨机房同步的业务需求.不过早期的数据库同步 ...
- SSM迁移到Springboot记录
日志问题 Exception in thread "main" java.lang.IllegalArgumentException: LoggerFactory is not a ...
随机推荐
- SQL Server判断对象是否存在
1 判断数据库是否存在 if exists (select * from sys.databases where name = ’数据库名’) drop database [数据库名] if exis ...
- shell脚本双引号、大括号、if语句注意事项
1.双引号的问题 变量用双引号括起来的意义 如果变量不用双引号括起来,比如echo $a,那么隐含的意义就是,把$a变量的字符串,按照空格.制表符.换行符等符号来分割开.然后把这些分割后的每一项再按 ...
- Django 插件之 Xadmin实现富文本编辑器
此文为前一篇文章的续写: Django 插件之 Xadmin Ueditor 介绍 UEditor 是由百度 web 前端研发部开发所见即所得富文本 web 编辑器,具有轻量,可定制,注重用户体验等特 ...
- python 爬虫实例(二)
环境: OS:Window10 python:3.7 描述 打开下面的网址,之后抓取其中的图片 https://music.163.com/#/artist/album?id=101988&l ...
- Ubuntu16.04安装qt
5.11官方下载网站: http://download.qt.io/official_releases/qt/5.11/5.11.1/ 可以直接下载linux系统下的.run安装包: 安装方式:htt ...
- 【剑指offer】面试题 42. 连续子数组的最大和
面试题 42. 连续子数组的最大和 NowCoder 题目描述 输入一个整型数组,数组里有正数也有负数.数组中一个或连续的多个整数组成一个子数组.求所有子数组的和的最大值. 示例: 输入: [-2,1 ...
- java微服务的统一配置中心
为了更好的管理应用的配置,也为了不用每次更改配置都重启应用,我们可以使用配置中心 关于eureka的服务注册和rabbitMQ的安装使用(自动更新配置需要用到rabbitMQ)这里不赘述,只关注配置中 ...
- python 之 并发编程(开启子进程的两种方式,进程对象的属性)
第九章并发编程 同一个程序执行多次是多个进程 import time import os print('爹是:',os.getppid()) #父进程PID,(pycharm) print('me ...
- PAT(B) 1083 是否存在相等的差(Java)统计
题目链接:1083 是否存在相等的差 (20 point(s)) 题目描述 给定 N 张卡片,正面分别写上 1.2.--.N,然后全部翻面,洗牌,在背面分别写上 1.2.--.N.将每张牌的正反两面数 ...
- WUSTOJ 1339: 土豪fcbruce(Java)
题目链接:1339: 土豪fcbruce Description 10年后,就职于Google的fcbruce赞助了武汉科技大学好多钱,学校因此决定扩建.第一步是新建宿舍楼,为了整洁美观,fcbruc ...