今天把red5 rc1版本安装在服务器上,发现有错误,需要删除两个jar文件。
异常java.lang.ClassCastException:org.slf4j.helpers.BasicMDCAdapter不能转换为ch.qos.logback.classic.util.LogbackMDCAdapter
java.lang.ClassCastException: org.slf4j.helpers.BasicMDCAdapter cannot be cast to ch.qos.logback.classic.util.LogbackMDCAdapter
at ch.qos.logback.classic.spi.LoggingEvent.<init>(LoggingEvent.java:133)
at ch.qos.logback.classic.Logger.buildLoggingEventAndAppend(Logger.java:469)
at ch.qos.logback.classic.Logger.filterAndLog_1(Logger.java:443)
at ch.qos.logback.classic.Logger.info(Logger.java:633)
at org.red5.server.Launcher.launch(Launcher.java:56)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at org.red5.server.Bootstrap.bootStrap(Bootstrap.java:135)
at org.red5.server.Bootstrap.main(Bootstrap.java:50)
删除这两个文件才能正常运行...
com.springsource.slf4j.juli - 1.6.1.jar
com.springsource.slf4j.log4j-1.6.1.jar
com.springsource.slf4j.log4j-1.6.1.jar
作者:编程趋势
出处:http://www.cnblogs.com/codetrend/
作者微博:http://weibo.com/liuxue9527
本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。