解决LoggerFactory is not a Logback LoggerContext but Logback is on the classpath
2016-11-23 17:21
711 查看
ERROR StatusLogger No log4j2 configuration file found. Using default configuration: logging only errors to the console. Exception in thread "main" java.lang.IllegalArgumentException: LoggerFactory is not a Logback LoggerContext but Logback is on the classpath. Either remove Logback or the competing implementation (class org.apache.logging.slf4j.Log4jLoggerFactory loaded from file:/Users/JieHuang/.m2/repository/org/apache/logging/log4j/log4j-slf4j-impl/2.6.2/log4j-slf4j-impl-2.6.2.jar). If you are using WebLogic you will need to add 'org.slf4j' to prefer-application-packages in WEB-INF/weblogic.xml Object of class [org.apache.logging.slf4j.Log4jLoggerFactory] must be an instance of class ch.qos.logback.classic.LoggerContext
因为引用了log4j2同时还引用了logback
相关文章推荐
- 安装springboot时遇到 LoggerFactory is not a Logback LoggerContext but Logback is on the classpath.问题
- 解决com.sun.tools.javac.Main is not on the classpath / Unable to find a javac compiler 的问题
- 解决com.sun.tools.javac.Main is not on the classpath的问题
- unable to find javac compiler;com.sun.tools.javac.Mainisnotontheclasspath的问题的解决
- com.sun.tools.javac.Main is not on the classpath.错误解决方法
- weblogic 配置中the jdbc driver is not on the classpath解决
- 解决com.sun.tools.javac.Main is not on the classpath的问题
- 解决com.sun.tools.javac.Main is not on the classpath的问题
- ant 解决com.sun.tools.javac.Main is not on the classpath的问题
- ant 解决com.sun.tools.javac.Main is not on the classpath的问题
- ant报错: 解决com.sun.tools.javac.Main is not on the classpath的问题
- 解决com.sun.tools.javac.Main is not on the classpath的问题
- Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath.Perhaps JAVA_HOME
- jdk重装后com.sun.tools.javac.Main is not on the classpath的问题 .
- The project: nameXXX which is referenced by the classpath, does not exist解决方法?
- Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath.Perhaps JAVA_HOME does not point to the JDK
- 解决Eclipse下启动tomcat报错:/bin/bootstrap.jar which is referenced by the classpath, does not exist.
- Logback (3) | Could not find Janino library on the class path. Skipping conditional processing.
- ant中com.sun.tools.javac.Main is not on the classpath问题的解决方案
- eclipse中设置.abc--xyz触发提示输入时,提示This compilation unit is not on the build path of java project 异常如何解决?