我在Maven中创建了一个简单的测试项目,因为我刚开始使用它并试图学习它。我正准备设置一个.jar文件,但当我在项目中运行构建并进行清理时,我总是收到以下错误: SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/C:/Users/Aaron/Downloads/Eclipse%20Installer/eclipse/plugins/org.eclipse.m2e.maven.runtime.slf4j.simple_1.16.0.20200610-1735/jars/s
如何在使用selenium-server-4.0.0-alpha-5.jar和gerrit-acceptance-framework-3.1.4.jar时解决类路径包含多个SLF4J绑定的错误
错误堆栈跟踪:
[RemoteTestNG] detected TestNG version 7.2.0
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/C:/Users/DELL/Desktop/selenium/selenium-server-4.0.0-alpha-5.ja
我在其他问题中看到,这个警告的解决方案通常是将slf4j从导致这种冲突的依赖项中排除在外,但我无法在我的项目中发现问题。
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/Applications/Eclipse.app/Contents/Eclipse/plugins/org.eclipse.m2e.maven.runtime.slf4j.simple_1.16.0.20200610-1735/jars/slf4j-simple-1.7.5.jar!/org/slf4j
我创建了一个包含所有依赖项的jar文件,并使用slf4j + logback实现了日志记录。因此,我为所有记录器定义了一个logback.xml文件。然而,当我运行jar时,它给了我这样的消息:
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for f
我有一个简单的Eclipse插件,它在激活时给出了以下错误:
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [bundleresource://103.fwk8918249:1/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [bundleresource://103.fwk8918249:4/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http:/
我的java项目与不同的SLF4J版本存在依赖关系。如何抑制恼人的警告?
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:xyz234/lib/slf4j-
log4j12-1.5.8.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:xyz123/.m2/repository/org/slf4j/slf4j-log4j12
/1.6.0/slf4j-log4j
当我尝试运行Hibernate时,我在控制台中收到以下消息。
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
但是hibernate运行得很好。我的项目有什么问题吗?我使用Eclipse(Helios),Hibe
log4j:WARN No appenders could be found for logger (org.jboss.logging).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for
more info.
我是降向导微服务大楼的一名菜鸟。在不使用SLF4j的情况下运行向导应用程序时会收到此警告,而且我不知道在哪里生成日志。
<dependency>
我有这样一个带有IntelliJ-Idea IDE的应用程序,它有一个Springboot配置错误,并给出了以下建议: The following method did not exist:
org.springframework.context.ConfigurableApplicationContext.setApplicationStartup(Lorg/springframework/core/metrics/ApplicationStartup;)V
The method's class, org.springframework.context.Configurable
Eclipse在我的Ubuntu12.10自动关闭。它发生了很多次。当我从终端执行eclipse时,它给了我以下消息。
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
[debug] execute contex
当我运行我的Web服务器时,我得到了以下信息:
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/C:/Users/Stefan/.m2/repository/org/slf4j/slf4j-log4j12/1.6.4/slf4j-log4j12-1.6.4.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/C:/Users/Stefan/.m2/reposit
我的类路径中有两个jar文件,它与slf4j有依赖关系。这会在我的Java程序中产生警告消息:
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/usr/lib/slf4j-log4j12-1.7.6.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/usr/lib/myprogram.jar!/org/slf4j/impl/StaticLoggerBi
SLF4J抱怨多个绑定,但这些绑定看起来完全一样:
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [zip:C:/bea_domains/my_service_domain/servers/AdminServer/tmp/_WL_user/my-shared-app-lib/obaz3z/APP-INF/lib/slf4j-log4j12-1.6.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in
我已经在第三天犯了这个错误,我无法解决。有些事情我无法把握,不管我做什么,错误仍然存在。
我正在读一本书,名为“詹金斯,一个权威的指南”(),我被困在第二章。基本上是一个如何使用Jenkins与Javadoc,JUnit和Cobertura插件为Jenkins的例子。在进入Cobertura插件部分之前,一切都是正常的,在这里我得到了下一个错误:
[ERROR] SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/C:/Windows/System32/config/sys
我以前只和log4j合作过。现在我正在寻找一个新的项目,并注意到它使用slf4j 1.7.2。据我所知,它只是一个API规范,它为符合它的各种实现提供了一个简化的接口(AKA ),比如。然而,我注意到commons-logging并没有出现在API站点的列表中,但是它的jar在这个应用程序的类路径中。当我从类路径中删除它以检查它是否是使用的执行时,我确认它确实是:
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) log
这或多或少是一个“常见”的问题,然而,我还没有找到一个好的答案。所以,再一次,警告如下:
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/home/eualin/.m2/repository/org/slf4j/slf4j-jcl/1.6.0/slf4j-jcl-1.6.0.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/home/eualin/.m2/re