[Red5] Changing RMI Port 9999
Bread Dev
breaddev at yahoo.com
Fri Jul 18 07:47:48 PDT 2008
the usernames and passwords match where i think they are supposed to. are these the only places?
password.properties (line 33):
myusername mypassword
________________________________
red5-shutdown.sh:
# JMX options
JMX_OPTS="-Djavax.net.ssl.keyStore=conf/keystore.jmx -Djavax.net.ssl.keyStorePassword=password" (Here?)
# port, username, password
SHUTDOWN_OPTS="1099 myusername mypassword"
________________________________
but maybe its realted to these files?
realm.properties:
admin: admin,admin
________________________________
tomcat-users.xml"
<tomcat-users>
<user name="admin" password="admin" roles="admin" />
<user name="tomcat" password="tomcat" roles="tomcat" />
<user name="role1" password="tomcat" roles="role1" />
<user name="both" password="tomcat" roles="tomcat,role1" />
</tomcat-users>
________________________________
access.properties:
red5user readwrite
----- Original Message ----
From: Mondain <mondain at gmail.com>
To: red5 at osflash.org
Sent: Friday, July 18, 2008 12:06:39 AM
Subject: Re: [Red5] Changing RMI Port 9999
Do the user names and passwords match?
On Thu, Jul 17, 2008 at 6:44 PM, Bread Dev <breaddev at yahoo.com> wrote:
Yes, I'm running shutdown from the same machine.
----- Original Message ----
From: Mondain <mondain at gmail.com>
To: red5 at osflash.org
Sent: Thursday, July 17, 2008 12:23:41 PM
Subject: Re: [Red5] Changing RMI Port 9999
On Thu, Jul 17, 2008 at 5:33 AM, Bread Dev <breaddev at yahoo.com> wrote:
Still having some RMI problems. I'm just trying to get the shutdown script to run without errors.
In "red5-common.xml" , I've changed the rmiAdapterPort to an available port on my server (1099).
And in the "red5-shutdown.sh", I've changed the SHUTDOWN_OPTS="1099 username password".
I can get a successful start up using "red5.sh", but I noticed a suspicious looking line:
2008-07-17 12:25:47,874 [main] INFO org.red5.server.jmx.JMXAgent - RMI Registry server was not found on port 1099
Paul: This is ok, it is INFO to let us know that no other RMI registries are running on that port.
b: that's good to know
When trying the shutdown script I still get this error:
Attempting to connect to RMI port: 1099
java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: XX.XX.XX.XXX; nested exception is:
java.net.ConnectException: Connection refused]
at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:323)
at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:248)
at org.red5.server.Shutdown.main(Shutdown.java:70)
Thanks all for your help -b
Paul: Are you running the shutdown from the same machine?
----- Original Message ----
From: Mondain <mondain at gmail.com>
To: red5 at osflash.org
Sent: Wednesday, July 16, 2008 11:47:27 AM
Subject: Re: [Red5] Changing RMI Port 9999
To tell the server which port to listen on, you need to open your red5-common.xml and edit this bean:
<bean id="jmxAgent" class="org.red5.server.jmx.JMXAgent" init-method="init">
<!-- The RMI adapter allows remote connections to the MBeanServer -->
<property name="enableRmiAdapter" value="true"/>
<property name="rmiAdapterPort" value="9999"/>
<!-- SSL
To use jmx with ssl you must also supply the location of the keystore and its password
when starting the server with the following JVM options:
-Djavax.net.ssl.keyStore=keystore
-Djavax.net.ssl.keyStorePassword=password
-->
<property name="enableSsl" value="false"/>
<!-- Starts a registry if it doesnt exist -->
<property name="startRegistry" value="true"/>
<!-- Authentication -->
<property name="remoteAccessProperties" value="${red5.config_root}/access.properties"/>
<property name="remotePasswordProperties" value="${red5.config_root}/password.properties"/>
<!-- The HTML adapter allows connections to the MBeanServer via a web browser -->
<property name="enableHtmlAdapter" value="true"/>
<property name="htmlAdapterPort" value="8082"/>
<!-- Mina offers its own Mbeans so you may integrate them here -->
<property name="enableMinaMonitor" value="true"/>
</bean>
Change the "rmiAdapterPort" property to whatever port you want to use, then edit your shutdown script to match.
Paul
On Wed, Jul 16, 2008 at 3:42 AM, Bread Dev <breaddev at yahoo.com> wrote:
i'm still trying to debug my "red5-shutdown.sh" script. but, i believe (guessing really) that my host has blocked or is already using port 9999? would that be what causes this error? does that port need to be open to the world or just not in use or both? here's the error:
Attempting to connect to RMI port: 9999
java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host...
i've found at least one place where the RMI port is set to 9999 in "org.red5.server.Shutdown.main(Shutdown.java:70)". but once again, im very green when it comes to java and red5. so, i'm not sure what to do about this?
how would i begin to change this port so i can get this script running? thanks -b
_______________________________________________
Red5 mailing list
Red5 at osflash.org
http://osflash.org/mailman/listinfo/red5_osflash.org
--
http://gregoire.org/
http://osflash.org/red5
_______________________________________________
Red5 mailing list
Red5 at osflash.org
http://osflash.org/mailman/listinfo/red5_osflash.org
--
http://gregoire.org/
http://osflash.org/red5
_______________________________________________
Red5 mailing list
Red5 at osflash.org
http://osflash.org/mailman/listinfo/red5_osflash.org
--
http://gregoire.org/
http://osflash.org/red5
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/red5_osflash.org/attachments/20080718/7fe189ea/attachment-0001.html
More information about the Red5
mailing list