Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

slf4j warning about the same binding being duplicate

SLF4J complains about multiple bindings, but those look exactly the same:

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.

Is there any way to get rid of this warning? What could be the reason of it?

like image 780
Andrey Adamovich Avatar asked Jan 20 '23 10:01

Andrey Adamovich


1 Answers

There is currently discussion going on bug 138 which seem to me identical to the issue you reported. According to the discussion, "the problem was, actually, in multiple classpaths in manifests - if there was more than EJB jar with binding listed WLS was providing a full list of those. Even if the class was the same. This goes with the ClassLoader behavior in WLS.". If you want to really remove this warning (though not fatal), there is a attachment in the bug, you could probably patch slf4j with it.

like image 146
Jasonw Avatar answered Feb 04 '23 15:02

Jasonw