如何解决运行SoapUI(我的是5.2.1)命令行testrunner. bat时“SLF4J:加载类“org.slf4j.iml.StticLoggerBinder”失败的问题?
注意:此问题已在Maven、Eclipse等的许多地方得到解决,但在SoapUI中没有。例如:
SLF4J:加载类“org. slf4j.iml.StticLoggerBinder”失败。在Maven项目中
如http://www.slf4j.org/codes.html所述,问题是类路径中缺少以下一个(并且只有一个):slf4j-nop. jar、slf4j-简单.jar、slf4j-log4j12.jar、slf4j-jdk14.jar或logback-经典.jar。
我发现添加,例如slf4j-简单. jar到[SoapUI-Base]/bin/ext不起作用,即使它显然加载了它:
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-简单. jar,更具体地说,将slf4j-simple-1.6.1.jar(与SoapUI 5.2.1中使用的SLF4J版本兼容)放入[SoapUI-Base]/lib。
希望这有帮助。
这是帮助我的解决方案。
slf4j
包
SmartBear\SoapUI-5.2.1\lib
文件slf4j-api
slf4j-api
和slf4j-nope
SmartBear\SoapUI-5.2.1\lib
文件中
现在一切正常。