相关疑难解决方法(0)

Eclipse RCP插件中的多个slf4j绑定

我有一个简单的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://www.slf4j.org/codes.html#multiple_bindings for an explanation.
Run Code Online (Sandbox Code Playgroud)

两个URL都解析为捆绑中完全相同的jar

libs/slf4j-log4j12.jar!/org/slf4j/impl/StaticLoggerBinder.class
Run Code Online (Sandbox Code Playgroud)
  • 我该如何解决这个问题?
  • 怎么捆绑罐加载罐子两次(":1"和":4")?

java osgi eclipse-rcp slf4j

8
推荐指数
2
解决办法
9482
查看次数

标签 统计

eclipse-rcp ×1

java ×1

osgi ×1

slf4j ×1