java - Websphere Multiple slf4j logback bindings work around -


i running application on websphere v8.5.5.0 , attempting use logback logging framework.

when try start application, greeted error similar this one:

[10/03/14 13:19:00:900 est] 00000097 systemerr     r   slf4j: class path contains multiple slf4j bindings. [10/03/14 13:19:00:900 est] 00000097 systemerr     r   slf4j: found binding in [bundleresource://266.fwk1755217229:1/org/slf4j/impl/staticloggerbinder.class] [10/03/14 13:19:00:900 est] 00000097 systemerr     r   slf4j: found binding in    [wsjar:file:/c:/program%20files%20(x86)/ibm/websphere/appserver_1/profiles/appsrv01/installedapps/aussydcvtlj007node02cell/myapp.ear/lib/logback-classic-1.1.1.jar!/org/slf4j/impl/staticloggerbinder.class] [10/03/14 13:19:00:900 est] 00000097 systemerr     r   slf4j: see http://www.slf4j.org/codes.html#multiple_bindings explanation. [10/03/14 13:19:01:313 est] 00000097 systemerr     r   slf4j: actual binding of type [ch.qos.logback.classic.util.contextselectorstaticbinder] 

as answer explains, ibm libraries contain implementation of logback-classic library on classpath already. want stay date latest logback wondering whether show me how manually choose binding use (without using parent-last classloader!).

actually error messages see in case known bug of ibm websphere application server v8.5.5.0. issue using slf4j internally implementation supposed unknown (and unusable) applications. unfortunately, these error messages see have not been blocked framework can ignore them (except if have not used slf4j). news issue has been fixed in fixpack 3 (was 8.5.5.3). bug referenced by ibm support here. so, update installation. if, after applying fix, error messages still occur, then, have review slf4j configuration , usage.

john


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -