AnsweredAssumed Answered

how to remove errors of multiple SLF4J bindings? openfire3.7.1,redfire-370-0.0.06

Question asked by elton.cn on Apr 1, 2012

    Hi,all

 

    I have tried to use openfire+redfire to build a audio/video stream server for test recently and had some puzzles about installation, I hope you can give me some suggestions.

 

    Envorionment: Windows Server 2003, JDK: 1.6.0_29, Openfire: 3.7.1, Redfire: redfire-370-0.0.06.

 

    Before installation of redfire, openfire work properly and no error appears. After I put redfire.war into plugins directory of openfire, there are some errores on the console of openfre :

     The first 5 lines of error msg

SLF4J: Class path contains multiple SLF4J bindings.SLF4J:
Found binding in [jar:file:/E:/OpenfireIDE/openfire/lib/slf4j-log4j12.jar!/org/slf4j/impl/Static LoggerBinder.class]
SLF4J: Found binding in [jar:file:/E:/OpenfireIDE/openfire/bin/../lib/slf4j-log4j12.jar!/org/slf4j/impl /StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/E:/OpenfireIDE/openfire/plugins/redfire/WEB-INF/lib/logback-classic- 0.9.24.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.

   Though mistakes, I can visit http://127.0.0.1:7070/redfire ,and redfire test page is all right

 

   So, I tried to remove logback-classic-0.9.24.jar of redfire because of the mutiple slf4j bindings. Then when I restarted openfire, the total error msges are:

SLF4J: Class path contains multiple SLF4J bindings.

SLF4J: Found binding in [jar:file:/E:/OpenfireIDE/openfire/lib/slf4j-log4j12.jar!/org/slf4j/impl/Static LoggerBinder.class]

SLF4J: Found binding in [jar:file:/E:/OpenfireIDE/openfire/bin/../lib/slf4j-log4j12.jar!/org/slf4j/impl /StaticLoggerBinder.class]

SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.

SLF4J: The requested version 1.5.8 by your slf4j binding is not compatible with [1.6]

SLF4J: See http://www.slf4j.org/codes.html#version_mismatch for further details.

Though redfire is in the openfire plugin list, I cannot properly visit "http://127.0.0.1:7070/redfire" and maybe because of the removal of logback-classic-0.9.24.jar.

   I want to know how to avoid errors of multiple slf4j bindings?

 

   Thank you!

Outcomes