RED5演示不起作用,由“未找到范围”引起

时间:2016-05-13 17:55:26

标签: ubuntu-14.04 red5

我正在 UBUNTU 14.04 上运行 RED5 (版本1.0.7),服务器正在运行,但所有演示都已损坏。其中大多数都因范围问题而失败,例如:

org.red5.server.net.rtmp.RTMPHandler - Scope bwcheck not found

我需要修改配置中的内容,也许在red5-web.xml中,因为我看到了另一篇文章:

更改

<bean id="web.scope" class="org.red5.server.scope.WebScope" init-method="register">

<bean id="web.scope" class="org.red5.server.WebScope" init-method="register">

或者我应该在其他地方移动演示,因为使用的html文件位于$RED5_HOME/webapps/root/demos,但演示的某些部分似乎位于$RED5_HOME/webapps,例如(chat,live,vod) 好吧,我真的不知道tomcat和java逻辑,但真的很受欢迎。

由于

记录:

[WARN] [RTMPConnectionExecutor-4] org.red5.server.net.rtmp.RTMPHandler - Scope not found
org.red5.server.exception.ScopeNotFoundException: Scope not found: bwcheck in null
    at org.red5.server.scope.ScopeResolver.resolveScope(ScopeResolver.java:112)
    at org.red5.server.Context.resolveScope(Context.java:158)
    at org.red5.server.net.rtmp.RTMPHandler.onCommand(RTMPHandler.java:323)
    at org.red5.server.net.rtmp.BaseRTMPHandler.messageReceived(BaseRTMPHandler.java:116)
    at org.red5.server.net.rtmp.ReceivedMessageTask.call(ReceivedMessageTask.java:72)
    at org.red5.server.net.rtmp.ReceivedMessageTask.call(ReceivedMessageTask.java:38)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)
[INFO] [RTMPConnectionExecutor-4] org.red5.server.net.rtmp.RTMPHandler - Scope bwcheck not found on localhost
[WARN] [NioProcessor-14] org.red5.server.net.rtmp.RTMPMinaIoHandler - Destination connection was null, it is already disposed. Session id: DSNGKAODSPSGV
[INFO] [NioProcessor-14] org.red5.server.net.rtmp.RTMPMinaConnection - Connection is closed: DSNGKAODSPSGV
[WARN] [NioProcessor-14] org.red5.server.net.rtmp.RTMPMinaIoHandler - Connection was not found for DSNGKAODSPSGV
[INFO] [pool-4-thread-1] org.red5.server.tomcat.WarDeployer - Deploy wars with app start
[INFO] [pool-4-thread-1] org.red5.server.tomcat.WarDeployer - Deploy wars with app start

1 个答案:

答案 0 :(得分:0)

在这种情况下,这可能意味着您错过了bwcheck应用程序;我的意思是你应该在red5 / webapps中有一个名为bwcheck的目录,它应该包含各种文件,例如WEB-INF / red5-web.xml和WEB-INF / web.xml。如果文件在那里但仍未找到,那么应用程序由于某种原因没有加载/启动;在这种情况下,您必须通过读取日志并可能增加日志级别来调试它。

最后,您应该确定您正在使用的Red5版本。