如何解决运行SoapUI(我的是5.2.1)命令行testrunner.bat时'SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder"'的问题?
注意:此问题已在 Maven、Eclipse 等的许多地方得到解答,但 SoapUI 没有。例如:
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". in a Maven Project
最佳答案
问题,如 http://www.slf4j.org/codes.html 中所述是类路径中缺少以下一项(且仅一项):slf4j-nop.jar、slf4j-simple.jar、slf4j-log4j12.jar、slf4j-jdk14.jar 或 logback-classic.jar。
我发现添加,例如[SoapUI-Base]/bin/ext 的 slf4j-simple.jar 没有工作,即使它显然加载了它:
13:02:26,203 INFO [SoapUI] Adding [C:\Program Files\SmartBear\SoapUI-5.2.1\bin\ext\slf4j-simple-1.6.1.jar] to extensions classpath
13:02:26,983 INFO [DefaultSoapUICore] initialized soapui-settings from [C:\Users\XXX\soapui-settings.xml]
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
有效的方法是将 slf4j-simple.jar,更具体地说,slf4j-simple-1.6.1.jar(与 SoapUI 5.2.1 中使用的 SLF4J 版本兼容)放入 [SoapUI-Base]/lib .
希望这对您有所帮助。
关于java - SoapUI SLF4J : Failed to load class “org.slf4j.impl.StaticLoggerBinder” ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35131382/