我试着让这个开源的RED5项目工作很多天,但是没有成功-- http://www.camrumble.com/source/opensource_chatroulette_5.jsp。我使用的是RED5 1.0 RC1。我已经按照教程做了所有的事情,我开始在eclipse下调试我的red5服务器,然后我在flash builder中运行我的flex项目,它打开了一个带有聊天窗口的浏览器,但它只是说:
Initialize connection
NetConnection.Connect.Rejected
Connection error, please refresh the page.然后,当我查看Eclipse中的控制台时,只看到了以下内容:
[INFO] [NioProcessor-1] org.red5.server.net.rtmp.codec.RTMPProtocolDecoder - Action connect
[INFO] [NioProcessor-1] org.red5.server.net.rtmp.RTMPHandler - Scope rtmpclient not found on localhost
[WARN] [Red5_Scheduler_Worker-2] org.red5.server.net.rtmp.RTMPConnection - Closing RTMPMinaConnection from 127.0.0.1 : 55783 to localhost (in: 3337 out 3217 ), with id 1 due to long handshake问题出在哪里?在我看来,它找不到那些文件?但它们在RED5服务器的webapps目录中,所以我不知道……
发布于 2011-12-16 04:35:43
其他的答案对我都不起作用。下面是我所做的:
我照着教程到处找...这是我在ubuntu 11.04上运行它的检查清单:
启动并运行已安装并运行(http://trac.red5.org/wiki/Install)
Webapp.contextpath=/myapp.contextpath,localhost,localhost:8088,根目录下的演示(因为我知道webapp.virtualHosts=*文件夹正在工作,所以我把它放在那里,
发布于 2012-08-20 10:34:30
<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">发布于 2013-12-09 02:00:51
Gracie的解决方案似乎被倒贴了。我的解决方案是对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">基本上,名称空间发生了变化。WebScope不再封装在作用域文件夹中。
https://stackoverflow.com/questions/7697254
复制相似问题