提问者:小点点

SoapUI SLF4J:加载类“org. slf4j.iml.StticLoggerBinder”失败


如何解决运行SoapUI(我的是5.2.1)命令行testrunner. bat时“SLF4J:加载类“org.slf4j.iml.StticLoggerBinder”失败的问题?

注意:此问题已在Maven、Eclipse等的许多地方得到解决,但在SoapUI中没有。例如:

SLF4J:加载类“org. slf4j.iml.StticLoggerBinder”失败。在Maven项目中


共2个答案

匿名用户

如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。

希望这有帮助。

匿名用户

这是帮助我的解决方案。

  1. 我从http://www.slf4j.org/download.html下载了最后一个slf4j
  2. SmartBear\SoapUI-5.2.1\lib文件slf4j-api
  3. 中删除
  4. 从包slf4j-apislf4j-nope
  5. 插入到SmartBear\SoapUI-5.2.1\lib文件中

现在一切正常。