slf4j警告有关相同的绑定是重复的

And*_*ich 4 java logging weblogic slf4j

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 [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: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
Run Code Online (Sandbox Code Playgroud)

有没有办法摆脱这个警告?可能是什么原因呢?

Jas*_*onw 5

目前有关于错误138的讨论在我看来与您报告的问题相同.根据讨论,"问题实际上是在清单中的多个类路径中 - 如果有超过EJB jar的绑定列表WLS提供了完整的列表.即使类是相同的.这与ClassLoader一起使用WLS中的行为." 如果你想真正删除这个警告(虽然不是致命的),bug中有一个附件,你可以用它修补slf4j.