问题描述
我最近开始了解Red5服务器。我正在跟随本教程开发一个简单的视频聊天应用程序: http://tharas.wordpress.com/2010/01/19/chat-application-with-red5-and-flex/
。 我可以创建flex客户端。
对于服务端,我已经在Eclipse中创建了一个动态Web项目。然后从上方教程页面底部的源代码zip手动复制WEB-INF文件夹文件和Application.java文件。之后,当我尝试启动Red5服务器时,会出现以下错误:导致:java.rmi.server.ExportException :内部错误:ObjID已在使用。
我搜索了许多论坛几个小时来解决这个问题。我可以想到的是,服务器启动脚本可能会尝试在JVM中创建两次RMI注册表项,这是不允许的。一个论坛建议编辑/ etc / hosts文件。一个论坛建议在red5.properties中注释rmiregistry创建,并删除red5-common.xml中的JMX部分。但没有任何工作!
我已经在Windows 8中安装了Red5 1.0版本。我已经安装了Red5 Eclipse插件,并在Eclipse中运行服务器。
任何帮助都不胜感激。如果需要,我可以发布详细的服务器日志。
这里的问题是,Red5的多个实例正在启动或RMI注册表已经存在。我建议您编辑您的red5 / conf / red5.properties文件并将此条目更改为false:
jmx.registry.create = true
这应该隐藏错误,并允许您继续;真正的修复将是防止在Eclipse中产生多个实例。
I have recently started to learn about Red5 server. I am following this tutorial to develop a simple video chat app: http://tharas.wordpress.com/2010/01/19/chat-application-with-red5-and-flex/
.
I am able to create the flex client.
For the service side, I have created a Dynamic Web Project in Eclipse. Then manually copied the WEB-INF folder files and the Application.java file from the source code zip given in the above tutorial page at the bottom.
After that when I am trying to start the Red5 server, it is failing with the error: Caused by: java.rmi.server.ExportException: internal error: ObjID already in use.
I searched many forums for hours to resolve this. What I could figure out is, it is possible that the server start up script is trying to create RMI registry entry in the JVM twice, which is not allowed. One forum suggested editing the /etc/hosts file. One forum suggested commenting out the rmiregistry creation in red5.properties and delete the JMX part in red5-common.xml. But nothing worked!
I have installed Red5 version 1.0 in Windows 8. I have installed the Red5 Eclipse plugin and running the server from within Eclipse.
Any help is appreciated. If you need, I can post the detailed server log.
The issue here is that more than one instance of Red5 is being started or the RMI registry already exists. I suggest editing your red5/conf/red5.properties file and changing this entry to false:
jmx.registry.create=true
This should "hide" the error and allow you to continue; the real fix would be to prevent spawning multiple instances within Eclipse.
这篇关于Red5服务器由于java.rmi.server.ExportException无法启动:内部错误:ObjID已在使用中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!