启动时出现 red5 错误 - 类路径中存在多个绑定
关于 red5
问候,
问题: 我想知道如何删除多余的绑定?
细节: 我已经使用谷歌代码库主干安装了red5...当使用启动脚本或手动./red5.sh启动red5时,它给出了此错误:
SLF4J:类路径包含多个SLF4J绑定。 SLF4J:在 [jar:file:/usr/local/red5/dist/red5.jar!/org/slf4j/impl/StaticLoggerBinder.class] 中找到绑定 SLF4J:在 [jar:file:/usr/local/red5/dist/lib/logback-classic-0.9.26.jar!/org/slf4j/impl/StaticLoggerBinder.class] 中找到绑定 SLF4J:请参阅 http://www.slf4j.org/codes.html#multiple_bindings一个解释。
当我阅读该链接时:
+++++++++++++++++++++++++++++++++++++++ 在类路径上发现多个绑定 SLF4J API 旨在一次与一个且仅一个底层日志记录框架绑定。如果类路径上存在多个绑定,SLF4J 将发出警告,列出这些绑定的位置。发生这种情况时,请选择您要使用的唯一一个绑定,并删除其他绑定。
例如,如果类路径上同时有 slf4j-simple-1.6.1.jar 和 slf4j-nop-1.6.1.jar,并且您希望使用 nop(无操作)绑定,则删除 slf4j-simple-类路径中的 1.6.1.jar。 +++++++++++++++++++++++++++++++++++++++
我已经用谷歌搜索过,但找不到有关如何操作的信息移除绑定。有人可以告诉我如何从类路径中删除这些绑定之一吗?
谢谢, D
Regarding red5
Greetings,
QUESTION:
I'd like to know how to remove the extra binding?
DETAILS:
I've installed red5 using the google codebase trunk... When starting red5 with the start script or manually ./red5.sh it is giving this error:
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/usr/local/red5/dist/red5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/usr/local/red5/dist/lib/logback-classic-0.9.26.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
When I read at that link:
+++++++++++++++++++++++++++++++++++++
Multiple bindings were found on the class path
SLF4J API is desinged to bind with one and only one underlying logging framework at a time. If more than one binding is present on the class path, SLF4J will emit a warning, listing the location of those bindings. When this happens, select the one and only one binding you wish to use, and remove the other bindings.
For example, if you have both slf4j-simple-1.6.1.jar and slf4j-nop-1.6.1.jar on the class path and you wish to use the nop (no-operation) binding, then remove slf4j-simple-1.6.1.jar from the class path.
+++++++++++++++++++++++++++++++++++++
I've googled but can't find information on HOW TO remove the binding. Can someone please tell me how to remove one of those binds from the class path?
Thanks,
D
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我找到了答案...
我使用zip7删除了类:StaticLoggerBinder.class
位于:/lib/logback-classic-0.9.26.jar!
I found the answer...
I used zip7 to remove the class: StaticLoggerBinder.class
in: /lib/logback-classic-0.9.26.jar!
这只是 slf4j 创建的信息性消息;人们不应该关心它。到目前为止,我们还没有找到一种更简单的方法来提供单独的 red5 应用程序日志记录,而无需我们的自定义绑定程序。我们的活页夹是导致此消息的原因,虽然您的修复将阻止该消息,但您必须在每次 slf4j 库更新时执行此操作。
This is only a informational message created by slf4j; people shouldn't be concerned with it. We haven't found an easier way to provide separate red5 application logging without our custom binder as of yet. Our binder is what causes this message and while your fix will prevent the message, you'll have to perform this action with every slf4j library update.
作为 http://www.slf4j.org/codes.html#multiple_bindings (现在? )解释说,在项目的 pom.xml 文件中声明肆无忌惮的依赖项时,您应该排除此 SLF4J 绑定。
As http://www.slf4j.org/codes.html#multiple_bindings (now?) explains, you should exclude this SLF4J binding when declaring the unscrupulous dependency in your project's pom.xml file.