You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@openmeetings.apache.org by Tapanainen Mika <Mi...@digia.com> on 2013/08/20 12:09:41 UTC

RTMPS and HTTPS: java.net.BindException: Address already in use, but no application uses the port 5443

Hello,

The standard OpenMeetings installation with HTTP worked for me. Then I tried change to the protocols: RTMPS and HTTPS and

I followed the guide: http://openmeetings.apache.org/RTMPSAndHTTPS.html and double checked everything.

The url https://<server>:443/openmeetings/<https://%3cserver%3e:443/openmeetings/>  or https://<server>/openmeetings/<https://%3cserver%3e/openmeetings/> results  HTTP 404 error.

Server seems to be running and the last line in the log is:

DEBUG 08-20 10:36:59.761 MailHandler.java 736267 247 org.apache.openmeetings.utils.mail.MailHandler [org.springframework.scheduling.quartz.SchedulerFactoryBean#0_Worker-6] - ... sendMails done.

Just before

##################################################
#               Openmeetings is up               #
#       2.1.1-RELEASE 1498907 2-July-2013        #
#                and ready to use                #
##################################################

is

[ERROR] [main] org.apache.coyote.http11.Http11NioProtocol - Failed to initialize end point associated with ProtocolHandler ["http-nio-0.0.0.0-5443"]
java.net.BindException: Address already in use
        at sun.nio.ch.Net.bind(Native Method) ~[na:1.6.0_38]
        at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:124) ~[na:1.6.0_38]
        at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59) ~[na:1.6.0_38]
        at org.apache.tomcat.util.net.NioEndpoint.bind(NioEndpoint.java:470) ~[tomcat-embed-core-jar-7.0.34.jar:7.0.34]
        at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:610) ~[tomcat-embed-core-jar-7.0.34.jar:7.0.34]
        at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:429) ~[tomcat-embed-core-jar-7.0.34.jar:7.0.34]
        at org.apache.coyote.http11.AbstractHttp11JsseProtocol.init(AbstractHttp11JsseProtocol.java:119) [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
        at org.apache.catalina.connector.Connector.initInternal(Connector.java:981) [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
        at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102) [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:139) [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
        at org.apache.catalina.core.StandardService.addConnector(StandardService.java:241) [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
        at org.apache.catalina.startup.Embedded.addConnector(Embedded.java:321) [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
        at org.red5.server.tomcat.rtmps.RTMPSLoader.init(RTMPSLoader.java:161) [tomcatplugin-jar-1.4.jar:na]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_38]
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) ~[na:1.6.0_38]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[na:1.6.0_38]
        at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_38]

when I run the command:

netstat -tulpn | grep 5443

I don't get anything as a result (for some other ports the command works). So no application is using the port 5443??

When I grep for the 5443, I got:

grep -r 5443 *
conf/red5.properties:rtmps.port=5443
webapps/openmeetings/config.xml:<rtmpsslport>5443</rtmpsslport>

Do you know what is the problem?
The guide has sentence "3. Edit red5/webapps/openmeetings/public/config.xml and set red5httpport to https port"
So is this correct in the config.xml?

<red5httpport>443</red5httpport>

BR,

Mika



Re: RTMPS and HTTPS: java.net.BindException: Address already in use, but no application uses the port 5443

Posted by Daniela Kirsch <dk...@excelsystems.com>.
Hi,

We did everything like the instructions say, but for the jee-container.xml file we didn't (un)comment code but used the jee-container-ssl.xml instead. This worked for us and the error was gone. And it seems to be using RTMPS even though the logs don't say it, at least it's running all over the ports we want. 

Thanks,
Daniela

Sent from my iPhone

On 2013-08-29, at 10:27 PM, Tapanainen Mika <Mi...@digia.com> wrote:

> Hello,
>  
> I have still this same exception. From the august mailing list I found out that Daniela has also the same problem and it seemed she didn’t get answer.
>  
> So the problem is:
>  
> 1.      No process is listening the port 5443
> 2.      The OpenMeetings is started
> 3.      An exception occurs:
> [ERROR] [main] org.apache.coyote.http11.Http11NioProtocol - Failed to initialize end point associated with ProtocolHandler ["http-nio-0.0.0.0-5443"]
> java.net.BindException: Address already in use
>  
> Do you know how to fix this exception? I have followed the instructions here http://openmeetings.apache.org/RTMPSAndHTTPS.html and double checked everything. John from the mailing list checked my settings (he was able to run in the RTMPS and HTTPS mode) and he wrote that they are ok for him.
>  
> BR,
>  
> Mika
>  
> From: Tapanainen Mika [mailto:Mika.Tapanainen@digia.com] 
> Sent: 21. elokuuta 2013 8:54
> To: user@openmeetings.apache.org
> Subject: RE: RTMPS and HTTPS: java.net.BindException: Address already in use, but no application uses the port 5443
>  
> Hello,
>  
> I tried the port 8443. So I was doing like John, but same exception L with the port 5443. Is this port configuration correct?:
>  
> [root@x apache-openmeetings]# grep -r 8443 *
> webapps/openmeetings/config.xml:<red5httpport>8443</red5httpport>
> webapps/openmeetings/WEB-INF/conf/axis2.xml:        <parameter name="port">8443</parameter>
>  
> I started the script as root. And before starting no process was listening port 5443.
>  
> Do know what is problem? Is it getting easier to configure the RTMPS and HTTPS in the OpenMeetings version 3?
>  
> BR,
>  
> Mika
>  
> Starting of the script
>  
> [root@x apache-openmeetings]# netstat -tulpn | grep 5443
> [root@x apache-openmeetings]# bash red5.sh >> ./log/jvm.stdout 2>&1 &
> [1] 603
> [root@x apache-openmeetings]# netstat -tulpn | grep 5443
> tcp        0      0 0.0.0.0:5443                0.0.0.0:*                   LISTEN      603/java
>  
> The exception
>  
> java.net.BindException: Address already in use
>         at sun.nio.ch.Net.bind(Native Method) ~[na:1.6.0_38]
>         at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:124) ~[na:1.6.0_38]
>         at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59) ~[na:1.6.0_38]
>         at org.apache.tomcat.util.net.NioEndpoint.bind(NioEndpoint.java:470) ~[tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>         at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:610) ~[tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>         at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:429) ~[tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>         at org.apache.coyote.http11.AbstractHttp11JsseProtocol.init(AbstractHttp11JsseProtocol.java:119) [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>         at org.apache.catalina.connector.Connector.initInternal(Connector.java:981) [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>         at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102) [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>         at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:139) [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>         at org.apache.catalina.core.StandardService.addConnector(StandardService.java:241) [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>         at org.apache.catalina.startup.Embedded.addConnector(Embedded.java:321) [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>         at org.red5.server.tomcat.rtmps.RTMPSLoader.init(RTMPSLoader.java:161) [tomcatplugin-jar-1.4.jar:na]
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_38]
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) ~[na:1.6.0_38]
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[na:1.6.0_38]
>         at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_38]
>  
> From: John Tran [mailto:findingjohn@gmail.com] 
> Sent: 20. elokuuta 2013 21:03
> To: user@openmeetings.apache.org
> Subject: Re: RTMPS and HTTPS: java.net.BindException: Address already in use, but no application uses the port 5443
>  
> Maxim 
> 
> I rerun the steps RTMPS and HTTPS twice for 2 fresh separate install of the Ubuntu 12.04LTS and OM 2.1.1. and it worked fine.  The only things that does not work is if you configure the SSL using ports as 443. I have SSL working at port 8443 and RMPTS  at port 5443.
> 
> If you know of away of getting port 443 to work, it would be much appreciated shed some light on it.
> 
> -john-
>  
> 
> On Tue, Aug 20, 2013 at 8:22 AM, Maxim Solodovnik <so...@gmail.com> wrote:
> I'll try to rerun all steps and double check it's validity (unfortunately I have no time at all these days :(( )
>  
> 
> On Tue, Aug 20, 2013 at 9:49 PM, Daniela Kirsch <dk...@excelsystems.com> wrote:
> Hey, we did run into the same error. As far as I can tell it was something in jee-container.xml. However we haven't been able to actually find out how that one file needs to be changed for RTMPS. 
>  
> On 2013-08-20, at 5:45 AM, Tapanainen Mika wrote:
>  
> 
> Hello,
>  
> Is this a problem?
>  
> …
> [INFO] [main] org.red5.server.net.rtmp.RTMPMinaTransport - RTMP Mina Transport bound to /0.0.0.0:5443
> …
> [INFO] [main] org.red5.server.tomcat.TomcatLoader - Address to bind: /0.0.0.0:5443
> …
> [INFO] [main] org.apache.coyote.http11.Http11NioProtocol - Initializing ProtocolHandler ["http-nio-0.0.0.0-5443"]
> [ERROR] [main] org.apache.coyote.http11.Http11NioProtocol - Failed to initialize end point associated with ProtocolHandler ["http-nio-0.0.0.0-5443"]
> java.net.BindException: Address already in use
>        at sun.nio.ch.Net.bind(Native Method) ~[na:1.6.0_38]
>         at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:124) ~[na:1.6.0_38]
>         at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59) ~[na:1.6.0_38]
>         at org.apache.tomcat.util.net.NioEndpoint.bind(NioEndpoint.java:470) ~[tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>         at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:610) ~[tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>         at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:429) ~[tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>         at org.apache.coyote.http11.AbstractHttp11JsseProtocol.init(AbstractHttp11JsseProtocol.java:119) [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>         at org.apache.catalina.connector.Connector.initInternal(Connector.java:981) [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>         at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102) [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>         at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:139) [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>         at org.apache.catalina.core.StandardService.addConnector(StandardService.java:241) [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>        at org.apache.catalina.startup.Embedded.addConnector(Embedded.java:321) [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>         at org.red5.server.tomcat.rtmps.RTMPSLoader.init(RTMPSLoader.java:161) [tomcatplugin-jar-1.4.jar:na]
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_38]
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) ~[na:1.6.0_38]
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[na:1.6.0_38]
>         at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_38]
>         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1581) [spring-beans-3.1.1.RELEASE.jar:3.1.1.RELEASE]
> …
>  
> BR,
>  
> Mika
>  
> From: Tapanainen Mika [mailto:Mika.Tapanainen@digia.com] 
> Sent: 20. elokuuta 2013 14:52
> To: user@openmeetings.apache.org
> Subject: RE: RTMPS and HTTPS: java.net.BindException: Address already in use, but no application uses the port 5443
>  
> Hello,
>  
> I run before the server start:
>  
> netstat -tulpn | grep 5443 -> no result
>  
> When I started again the server (previous process was killed before) I got the same error in the log and:
>  
> bash red5.sh >> ./log/jvm.stdout 2>&1 &
> [1] 16079
>  
> netstat -tulpn | grep 5443
> tcp        0      0 0.0.0.0:5443                0.0.0.0:*                   LIST                                                                                                             EN      16079/java
>  
> So port 5443 was not used before OpenMeetings was started. When OpenMeetings process 16079 was started the error comes, because the same process 16079 already uses the port 5443.
>  
> Do you know how to fix this situation?
>  
> BR,
>  
> Mika
> From: Tapanainen Mika [mailto:Mika.Tapanainen@digia.com] 
> Sent: 20. elokuuta 2013 13:10
> To: user@openmeetings.apache.org
> Subject: RTMPS and HTTPS: java.net.BindException: Address already in use, but no application uses the port 5443
>  
> Hello,
>  
> The standard OpenMeetings installation with HTTP worked for me. Then I tried change to the protocols: RTMPS and HTTPS and
>  
> I followed the guide: http://openmeetings.apache.org/RTMPSAndHTTPS.html and double checked everything.
>  
> The url https://<server>:443/openmeetings/  or https://<server>/openmeetings/ results  HTTP 404 error.
>  
> Server seems to be running and the last line in the log is:
>  
> DEBUG 08-20 10:36:59.761 MailHandler.java 736267 247 org.apache.openmeetings.utils.mail.MailHandler [org.springframework.scheduling.quartz.SchedulerFactoryBean#0_Worker-6] - ... sendMails done.
>  
> Just before
>  
> ##################################################
> #               Openmeetings is up               #
> #       2.1.1-RELEASE 1498907 2-July-2013        #
> #                and ready to use                #
> ##################################################
>  
> is
>  
> [ERROR] [main] org.apache.coyote.http11.Http11NioProtocol - Failed to initialize end point associated with ProtocolHandler ["http-nio-0.0.0.0-5443"]
> java.net.BindException: Address already in use
>         at sun.nio.ch.Net.bind(Native Method) ~[na:1.6.0_38]
>         at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:124) ~[na:1.6.0_38]
>         at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59) ~[na:1.6.0_38]
>         at org.apache.tomcat.util.net.NioEndpoint.bind(NioEndpoint.java:470) ~[tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>         at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:610) ~[tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>         at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:429) ~[tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>         at org.apache.coyote.http11.AbstractHttp11JsseProtocol.init(AbstractHttp11JsseProtocol.java:119) [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>         at org.apache.catalina.connector.Connector.initInternal(Connector.java:981) [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>         at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102) [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>         at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:139) [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>         at org.apache.catalina.core.StandardService.addConnector(StandardService.java:241) [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>         at org.apache.catalina.startup.Embedded.addConnector(Embedded.java:321) [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>         at org.red5.server.tomcat.rtmps.RTMPSLoader.init(RTMPSLoader.java:161) [tomcatplugin-jar-1.4.jar:na]
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_38]
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) ~[na:1.6.0_38]
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[na:1.6.0_38]
>         at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_38]
>  
> when I run the command:
>  
> netstat -tulpn | grep 5443
>  
> I don’t get anything as a result (for some other ports the command works). So no application is using the port 5443??
>  
> When I grep for the 5443, I got:
>  
> grep -r 5443 *
> conf/red5.properties:rtmps.port=5443
> webapps/openmeetings/config.xml:<rtmpsslport>5443</rtmpsslport>
>  
> Do you know what is the problem?
> The guide has sentence “3. Edit red5/webapps/openmeetings/public/config.xml and set red5httpport to https port”
> So is this correct in the config.xml?
>  
> <red5httpport>443</red5httpport>
>  
> BR,
>  
> Mika
>  
>  
>  
> 
> 
>  
> -- 
> WBR
> Maxim aka solomax
> 
> 
> 
> -- 
> jt
> ________________________________
> John Tran
> Northern California, CA
> findingjohn@gmail.com
>      ICQ IM: 27741710
>     AOL IM: find1ngj0hn
> Yahoo! IM: findingj0hn
>    MSN IM: findingjohn@hotmail.com

FW: RTMPS and HTTPS: java.net.BindException: Address already in use, but no application uses the port 5443

Posted by Tapanainen Mika <Mi...@digia.com>.
Hello,

I have still this same exception. From the august mailing list I found out that Daniela has also the same problem and it seemed she didn't get answer.

So the problem is:


1.      No process is listening the port 5443

2.      The OpenMeetings is started

3.      An exception occurs:

[ERROR] [main] org.apache.coyote.http11.Http11NioProtocol - Failed to initialize end point associated with ProtocolHandler ["http-nio-0.0.0.0-5443"]

java.net.BindException: Address already in use

Do you know how to fix this exception? I have followed the instructions here http://openmeetings.apache.org/RTMPSAndHTTPS.html and double checked everything. John from the mailing list checked my settings (he was able to run in the RTMPS and HTTPS mode) and he wrote that they are ok for him.

BR,

Mika

From: Tapanainen Mika [mailto:Mika.Tapanainen@digia.com]
Sent: 21. elokuuta 2013 8:54
To: user@openmeetings.apache.org
Subject: RE: RTMPS and HTTPS: java.net.BindException: Address already in use, but no application uses the port 5443

Hello,

I tried the port 8443. So I was doing like John, but same exception :( with the port 5443. Is this port configuration correct?:

[root@x apache-openmeetings]# grep -r 8443 *
webapps/openmeetings/config.xml:<red5httpport>8443</red5httpport>
webapps/openmeetings/WEB-INF/conf/axis2.xml:        <parameter name="port">8443</parameter>

I started the script as root. And before starting no process was listening port 5443.

Do know what is problem? Is it getting easier to configure the RTMPS and HTTPS in the OpenMeetings version 3?

BR,

Mika

Starting of the script

[root@x apache-openmeetings]# netstat -tulpn | grep 5443
[root@x apache-openmeetings]# bash red5.sh >> ./log/jvm.stdout 2>&1 &
[1] 603
[root@x apache-openmeetings]# netstat -tulpn | grep 5443
tcp        0      0 0.0.0.0:5443                0.0.0.0:*                   LISTEN      603/java

The exception

java.net.BindException: Address already in use
        at sun.nio.ch.Net.bind(Native Method) ~[na:1.6.0_38]
        at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:124) ~[na:1.6.0_38]
        at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59) ~[na:1.6.0_38]
        at org.apache.tomcat.util.net.NioEndpoint.bind(NioEndpoint.java:470) ~[tomcat-embed-core-jar-7.0.34.jar:7.0.34]
        at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:610) ~[tomcat-embed-core-jar-7.0.34.jar:7.0.34]
        at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:429) ~[tomcat-embed-core-jar-7.0.34.jar:7.0.34]
        at org.apache.coyote.http11.AbstractHttp11JsseProtocol.init(AbstractHttp11JsseProtocol.java:119) [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
        at org.apache.catalina.connector.Connector.initInternal(Connector.java:981) [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
        at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102) [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:139) [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
        at org.apache.catalina.core.StandardService.addConnector(StandardService.java:241) [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
        at org.apache.catalina.startup.Embedded.addConnector(Embedded.java:321) [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
        at org.red5.server.tomcat.rtmps.RTMPSLoader.init(RTMPSLoader.java:161) [tomcatplugin-jar-1.4.jar:na]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_38]
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) ~[na:1.6.0_38]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[na:1.6.0_38]
        at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_38]

From: John Tran [mailto:findingjohn@gmail.com]
Sent: 20. elokuuta 2013 21:03
To: user@openmeetings.apache.org
Subject: Re: RTMPS and HTTPS: java.net.BindException: Address already in use, but no application uses the port 5443

Maxim

I rerun the steps RTMPS and HTTPS twice for 2 fresh separate install of the Ubuntu 12.04LTS and OM 2.1.1. and it worked fine.  The only things that does not work is if you configure the SSL using ports as 443. I have SSL working at port 8443 and RMPTS  at port 5443.
If you know of away of getting port 443 to work, it would be much appreciated shed some light on it.
-john-

On Tue, Aug 20, 2013 at 8:22 AM, Maxim Solodovnik <so...@gmail.com>> wrote:
I'll try to rerun all steps and double check it's validity (unfortunately I have no time at all these days :(( )

On Tue, Aug 20, 2013 at 9:49 PM, Daniela Kirsch <dk...@excelsystems.com>> wrote:
Hey, we did run into the same error. As far as I can tell it was something in jee-container.xml. However we haven't been able to actually find out how that one file needs to be changed for RTMPS.

On 2013-08-20, at 5:45 AM, Tapanainen Mika wrote:

Hello,

Is this a problem?

...
[INFO] [main] org.red5.server.net.rtmp.RTMPMinaTransport - RTMP Mina Transport bound to /0.0.0.0<http://0.0.0.0>:5443
...
[INFO] [main] org.red5.server.tomcat.TomcatLoader - Address to bind: /0.0.0.0<http://0.0.0.0>:5443
...
[INFO] [main] org.apache.coyote.http11.Http11NioProtocol - Initializing ProtocolHandler ["http-nio-0.0.0.0-5443"]
[ERROR] [main] org.apache.coyote.http11.Http11NioProtocol - Failed to initialize end point associated with ProtocolHandler ["http-nio-0.0.0.0-5443"]
java.net.BindException: Address already in use
       at sun.nio.ch.Net.bind(Native Method) ~[na:1.6.0_38]
        at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:124) ~[na:1.6.0_38]
        at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59) ~[na:1.6.0_38]
        at org.apache.tomcat.util.net.NioEndpoint.bind(NioEndpoint.java:470) ~[tomcat-embed-core-jar-7.0.34.jar:7.0.34]
        at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:610) ~[tomcat-embed-core-jar-7.0.34.jar:7.0.34]
        at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:429) ~[tomcat-embed-core-jar-7.0.34.jar:7.0.34]
        at org.apache.coyote.http11.AbstractHttp11JsseProtocol.init(AbstractHttp11JsseProtocol.java:119) [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
        at org.apache.catalina.connector.Connector.initInternal(Connector.java:981) [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
        at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102) [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:139) [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
        at org.apache.catalina.core.StandardService.addConnector(StandardService.java:241) [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
       at org.apache.catalina.startup.Embedded.addConnector(Embedded.java:321) [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
        at org.red5.server.tomcat.rtmps.RTMPSLoader.init(RTMPSLoader.java:161) [tomcatplugin-jar-1.4.jar:na]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_38]
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) ~[na:1.6.0_38]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[na:1.6.0_38]
        at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_38]
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1581) [spring-beans-3.1.1.RELEASE.jar:3.1.1.RELEASE]
...

BR,

Mika

From: Tapanainen Mika [mailto:Mika.Tapanainen@digia.com<ma...@digia.com>]
Sent: 20. elokuuta 2013 14:52
To: user@openmeetings.apache.org<ma...@openmeetings.apache.org>
Subject: RE: RTMPS and HTTPS: java.net.BindException: Address already in use, but no application uses the port 5443

Hello,

I run before the server start:

netstat -tulpn | grep 5443 -> no result

When I started again the server (previous process was killed before) I got the same error in the log and:

bash red5.sh >> ./log/jvm.stdout 2>&1 &
[1] 16079

netstat -tulpn | grep 5443
tcp        0      0 0.0.0.0:5443<http://0.0.0.0:5443>                0.0.0.0:*                   LIST                                                                                                             EN      16079/java

So port 5443 was not used before OpenMeetings was started. When OpenMeetings process 16079 was started the error comes, because the same process 16079 already uses the port 5443.

Do you know how to fix this situation?

BR,

Mika
From: Tapanainen Mika [mailto:Mika.Tapanainen@digia.com<ma...@digia.com>]
Sent: 20. elokuuta 2013 13:10
To: user@openmeetings.apache.org<ma...@openmeetings.apache.org>
Subject: RTMPS and HTTPS: java.net.BindException: Address already in use, but no application uses the port 5443

Hello,

The standard OpenMeetings installation with HTTP worked for me. Then I tried change to the protocols: RTMPS and HTTPS and

I followed the guide: http://openmeetings.apache.org/RTMPSAndHTTPS.html and double checked everything.

The url https://<server>:443/openmeetings/<https://%3cserver%3e:443/openmeetings/>  or https://<server>/openmeetings/<https://%3cserver%3e/openmeetings/> results  HTTP 404 error.

Server seems to be running and the last line in the log is:

DEBUG 08-20 10:36:59.761 MailHandler.java 736267 247 org.apache.openmeetings.utils.mail.MailHandler [org.springframework.scheduling.quartz.SchedulerFactoryBean#0_Worker-6] - ... sendMails done.

Just before

##################################################
#               Openmeetings is up               #
#       2.1.1-RELEASE 1498907 2-July-2013        #
#                and ready to use                #
##################################################

is

[ERROR] [main] org.apache.coyote.http11.Http11NioProtocol - Failed to initialize end point associated with ProtocolHandler ["http-nio-0.0.0.0-5443"]
java.net.BindException: Address already in use
        at sun.nio.ch.Net.bind(Native Method) ~[na:1.6.0_38]
        at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:124) ~[na:1.6.0_38]
        at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59) ~[na:1.6.0_38]
        at org.apache.tomcat.util.net.NioEndpoint.bind(NioEndpoint.java:470) ~[tomcat-embed-core-jar-7.0.34.jar:7.0.34]
        at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:610) ~[tomcat-embed-core-jar-7.0.34.jar:7.0.34]
        at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:429) ~[tomcat-embed-core-jar-7.0.34.jar:7.0.34]
        at org.apache.coyote.http11.AbstractHttp11JsseProtocol.init(AbstractHttp11JsseProtocol.java:119) [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
        at org.apache.catalina.connector.Connector.initInternal(Connector.java:981) [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
        at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102) [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:139) [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
        at org.apache.catalina.core.StandardService.addConnector(StandardService.java:241) [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
        at org.apache.catalina.startup.Embedded.addConnector(Embedded.java:321) [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
        at org.red5.server.tomcat.rtmps.RTMPSLoader.init(RTMPSLoader.java:161) [tomcatplugin-jar-1.4.jar:na]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_38]
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) ~[na:1.6.0_38]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[na:1.6.0_38]
        at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_38]

when I run the command:

netstat -tulpn | grep 5443

I don't get anything as a result (for some other ports the command works). So no application is using the port 5443??

When I grep for the 5443, I got:

grep -r 5443 *
conf/red5.properties:rtmps.port=5443
webapps/openmeetings/config.xml:<rtmpsslport>5443</rtmpsslport>

Do you know what is the problem?
The guide has sentence "3. Edit red5/webapps/openmeetings/public/config.xml and set red5httpport to https port"
So is this correct in the config.xml?

<red5httpport>443</red5httpport>

BR,

Mika






--
WBR
Maxim aka solomax



--
jt
________________________________
John Tran
Northern California, CA
findingjohn@gmail.com<ma...@gmail.com>
     ICQ IM: 27741710
    AOL IM: find1ngj0hn
Yahoo! IM: findingj0hn
   MSN IM: findingjohn@hotmail.com<ma...@hotmail.com>

RE: RTMPS and HTTPS: java.net.BindException: Address already in use, but no application uses the port 5443

Posted by Tapanainen Mika <Mi...@digia.com>.
Hello,

I tried the port 8443. So I was doing like John, but same exception :( with the port 5443. Is this port configuration correct?:

[root@x apache-openmeetings]# grep -r 8443 *
webapps/openmeetings/config.xml:<red5httpport>8443</red5httpport>
webapps/openmeetings/WEB-INF/conf/axis2.xml:        <parameter name="port">8443</parameter>

I started the script as root. And before starting no process was listening port 5443.

Do know what is problem? Is it getting easier to configure the RTMPS and HTTPS in the OpenMeetings version 3?

BR,

Mika

Starting of the script

[root@x apache-openmeetings]# netstat -tulpn | grep 5443
[root@x apache-openmeetings]# bash red5.sh >> ./log/jvm.stdout 2>&1 &
[1] 603
[root@x apache-openmeetings]# netstat -tulpn | grep 5443
tcp        0      0 0.0.0.0:5443                0.0.0.0:*                   LISTEN      603/java

The exception

java.net.BindException: Address already in use
        at sun.nio.ch.Net.bind(Native Method) ~[na:1.6.0_38]
        at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:124) ~[na:1.6.0_38]
        at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59) ~[na:1.6.0_38]
        at org.apache.tomcat.util.net.NioEndpoint.bind(NioEndpoint.java:470) ~[tomcat-embed-core-jar-7.0.34.jar:7.0.34]
        at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:610) ~[tomcat-embed-core-jar-7.0.34.jar:7.0.34]
        at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:429) ~[tomcat-embed-core-jar-7.0.34.jar:7.0.34]
        at org.apache.coyote.http11.AbstractHttp11JsseProtocol.init(AbstractHttp11JsseProtocol.java:119) [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
        at org.apache.catalina.connector.Connector.initInternal(Connector.java:981) [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
        at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102) [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:139) [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
        at org.apache.catalina.core.StandardService.addConnector(StandardService.java:241) [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
        at org.apache.catalina.startup.Embedded.addConnector(Embedded.java:321) [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
        at org.red5.server.tomcat.rtmps.RTMPSLoader.init(RTMPSLoader.java:161) [tomcatplugin-jar-1.4.jar:na]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_38]
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) ~[na:1.6.0_38]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[na:1.6.0_38]
        at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_38]

From: John Tran [mailto:findingjohn@gmail.com]
Sent: 20. elokuuta 2013 21:03
To: user@openmeetings.apache.org
Subject: Re: RTMPS and HTTPS: java.net.BindException: Address already in use, but no application uses the port 5443

Maxim

I rerun the steps RTMPS and HTTPS twice for 2 fresh separate install of the Ubuntu 12.04LTS and OM 2.1.1. and it worked fine.  The only things that does not work is if you configure the SSL using ports as 443. I have SSL working at port 8443 and RMPTS  at port 5443.
If you know of away of getting port 443 to work, it would be much appreciated shed some light on it.
-john-

On Tue, Aug 20, 2013 at 8:22 AM, Maxim Solodovnik <so...@gmail.com>> wrote:
I'll try to rerun all steps and double check it's validity (unfortunately I have no time at all these days :(( )

On Tue, Aug 20, 2013 at 9:49 PM, Daniela Kirsch <dk...@excelsystems.com>> wrote:
Hey, we did run into the same error. As far as I can tell it was something in jee-container.xml. However we haven't been able to actually find out how that one file needs to be changed for RTMPS.

On 2013-08-20, at 5:45 AM, Tapanainen Mika wrote:


Hello,

Is this a problem?

...
[INFO] [main] org.red5.server.net.rtmp.RTMPMinaTransport - RTMP Mina Transport bound to /0.0.0.0<http://0.0.0.0>:5443
...
[INFO] [main] org.red5.server.tomcat.TomcatLoader - Address to bind: /0.0.0.0<http://0.0.0.0>:5443
...
[INFO] [main] org.apache.coyote.http11.Http11NioProtocol - Initializing ProtocolHandler ["http-nio-0.0.0.0-5443"]
[ERROR] [main] org.apache.coyote.http11.Http11NioProtocol - Failed to initialize end point associated with ProtocolHandler ["http-nio-0.0.0.0-5443"]
java.net.BindException: Address already in use
       at sun.nio.ch.Net.bind(Native Method) ~[na:1.6.0_38]
        at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:124) ~[na:1.6.0_38]
        at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59) ~[na:1.6.0_38]
        at org.apache.tomcat.util.net.NioEndpoint.bind(NioEndpoint.java:470) ~[tomcat-embed-core-jar-7.0.34.jar:7.0.34]
        at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:610) ~[tomcat-embed-core-jar-7.0.34.jar:7.0.34]
        at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:429) ~[tomcat-embed-core-jar-7.0.34.jar:7.0.34]
        at org.apache.coyote.http11.AbstractHttp11JsseProtocol.init(AbstractHttp11JsseProtocol.java:119) [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
        at org.apache.catalina.connector.Connector.initInternal(Connector.java:981) [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
        at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102) [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:139) [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
        at org.apache.catalina.core.StandardService.addConnector(StandardService.java:241) [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
       at org.apache.catalina.startup.Embedded.addConnector(Embedded.java:321) [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
        at org.red5.server.tomcat.rtmps.RTMPSLoader.init(RTMPSLoader.java:161) [tomcatplugin-jar-1.4.jar:na]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_38]
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) ~[na:1.6.0_38]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[na:1.6.0_38]
        at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_38]
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1581) [spring-beans-3.1.1.RELEASE.jar:3.1.1.RELEASE]
...

BR,

Mika

From: Tapanainen Mika [mailto:Mika.Tapanainen@digia.com<ma...@digia.com>]
Sent: 20. elokuuta 2013 14:52
To: user@openmeetings.apache.org<ma...@openmeetings.apache.org>
Subject: RE: RTMPS and HTTPS: java.net.BindException: Address already in use, but no application uses the port 5443

Hello,

I run before the server start:

netstat -tulpn | grep 5443 -> no result

When I started again the server (previous process was killed before) I got the same error in the log and:

bash red5.sh >> ./log/jvm.stdout 2>&1 &
[1] 16079

netstat -tulpn | grep 5443
tcp        0      0 0.0.0.0:5443<http://0.0.0.0:5443>                0.0.0.0:*                   LIST                                                                                                             EN      16079/java

So port 5443 was not used before OpenMeetings was started. When OpenMeetings process 16079 was started the error comes, because the same process 16079 already uses the port 5443.

Do you know how to fix this situation?

BR,

Mika
From: Tapanainen Mika [mailto:Mika.Tapanainen@digia.com<ma...@digia.com>]
Sent: 20. elokuuta 2013 13:10
To: user@openmeetings.apache.org<ma...@openmeetings.apache.org>
Subject: RTMPS and HTTPS: java.net.BindException: Address already in use, but no application uses the port 5443

Hello,

The standard OpenMeetings installation with HTTP worked for me. Then I tried change to the protocols: RTMPS and HTTPS and

I followed the guide: http://openmeetings.apache.org/RTMPSAndHTTPS.html and double checked everything.

The url https://<server>:443/openmeetings/<https://%3cserver%3e:443/openmeetings/>  or https://<server>/openmeetings/<https://%3cserver%3e/openmeetings/> results  HTTP 404 error.

Server seems to be running and the last line in the log is:

DEBUG 08-20 10:36:59.761 MailHandler.java 736267 247 org.apache.openmeetings.utils.mail.MailHandler [org.springframework.scheduling.quartz.SchedulerFactoryBean#0_Worker-6] - ... sendMails done.

Just before

##################################################
#               Openmeetings is up               #
#       2.1.1-RELEASE 1498907 2-July-2013        #
#                and ready to use                #
##################################################

is

[ERROR] [main] org.apache.coyote.http11.Http11NioProtocol - Failed to initialize end point associated with ProtocolHandler ["http-nio-0.0.0.0-5443"]
java.net.BindException: Address already in use
        at sun.nio.ch.Net.bind(Native Method) ~[na:1.6.0_38]
        at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:124) ~[na:1.6.0_38]
        at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59) ~[na:1.6.0_38]
        at org.apache.tomcat.util.net.NioEndpoint.bind(NioEndpoint.java:470) ~[tomcat-embed-core-jar-7.0.34.jar:7.0.34]
        at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:610) ~[tomcat-embed-core-jar-7.0.34.jar:7.0.34]
        at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:429) ~[tomcat-embed-core-jar-7.0.34.jar:7.0.34]
        at org.apache.coyote.http11.AbstractHttp11JsseProtocol.init(AbstractHttp11JsseProtocol.java:119) [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
        at org.apache.catalina.connector.Connector.initInternal(Connector.java:981) [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
        at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102) [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:139) [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
        at org.apache.catalina.core.StandardService.addConnector(StandardService.java:241) [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
        at org.apache.catalina.startup.Embedded.addConnector(Embedded.java:321) [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
        at org.red5.server.tomcat.rtmps.RTMPSLoader.init(RTMPSLoader.java:161) [tomcatplugin-jar-1.4.jar:na]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_38]
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) ~[na:1.6.0_38]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[na:1.6.0_38]
        at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_38]

when I run the command:

netstat -tulpn | grep 5443

I don't get anything as a result (for some other ports the command works). So no application is using the port 5443??

When I grep for the 5443, I got:

grep -r 5443 *
conf/red5.properties:rtmps.port=5443
webapps/openmeetings/config.xml:<rtmpsslport>5443</rtmpsslport>

Do you know what is the problem?
The guide has sentence "3. Edit red5/webapps/openmeetings/public/config.xml and set red5httpport to https port"
So is this correct in the config.xml?

<red5httpport>443</red5httpport>

BR,

Mika






--
WBR
Maxim aka solomax



--
jt
________________________________
John Tran
Northern California, CA
findingjohn@gmail.com<ma...@gmail.com>
     ICQ IM: 27741710
    AOL IM: find1ngj0hn
Yahoo! IM: findingj0hn
   MSN IM: findingjohn@hotmail.com<ma...@hotmail.com>

Re: RTMPS and HTTPS: java.net.BindException: Address already in use, but no application uses the port 5443

Posted by Maxim Solodovnik <so...@gmail.com>.
I did use Apache mod_proxy to use "standard" HTTPS ports, never set it up
using red5.


On Wed, Aug 21, 2013 at 1:03 AM, John Tran <fi...@gmail.com> wrote:

> Maxim
>
> I rerun the steps RTMPS and HTTPS twice for 2 fresh separate install of
> the Ubuntu 12.04LTS and OM 2.1.1. and it worked fine.  The only things that
> does not work is if you configure the SSL using ports as 443. I have SSL
> working at port 8443 and RMPTS  at port 5443.
>
> If you know of away of getting port 443 to work, it would be much
> appreciated shed some light on it.
>
> -john-
>
>
> On Tue, Aug 20, 2013 at 8:22 AM, Maxim Solodovnik <so...@gmail.com>wrote:
>
>> I'll try to rerun all steps and double check it's validity (unfortunately
>> I have no time at all these days :(( )
>>
>>
>> On Tue, Aug 20, 2013 at 9:49 PM, Daniela Kirsch <dkirsch@excelsystems.com
>> > wrote:
>>
>>> Hey, we did run into the same error. As far as I can tell it was
>>> something in jee-container.xml. However we haven't been able to actually
>>> find out how that one file needs to be changed for RTMPS.
>>>
>>> On 2013-08-20, at 5:45 AM, Tapanainen Mika wrote:
>>>
>>> Hello,****
>>> ** **
>>> Is this a problem?****
>>> ** **
>>> …****
>>> [INFO] [main] org.red5.server.net.rtmp.RTMPMinaTransport - RTMP Mina
>>> Transport bound to /0.0.0.0:5443****
>>> …****
>>> [INFO] [main] org.red5.server.tomcat.TomcatLoader - Address to bind: /
>>> 0.0.0.0:5443****
>>> …****
>>> [INFO] [main] org.apache.coyote.http11.Http11NioProtocol - Initializing
>>> ProtocolHandler ["http-nio-0.0.0.0-5443"]****
>>> [ERROR] [main] org.apache.coyote.http11.Http11NioProtocol - Failed to
>>> initialize end point associated with ProtocolHandler
>>> ["http-nio-0.0.0.0-5443"]****
>>> java.net.BindException: Address already in use****
>>>        at sun.nio.ch.Net.bind(Native Method) ~[na:1.6.0_38]****
>>>         at
>>> sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:124)
>>> ~[na:1.6.0_38]****
>>>         at
>>> sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59)
>>> ~[na:1.6.0_38]****
>>>         at
>>> org.apache.tomcat.util.net.NioEndpoint.bind(NioEndpoint.java:470)
>>> ~[tomcat-embed-core-jar-7.0.34.jar:7.0.34]****
>>>         at
>>> org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:610)
>>> ~[tomcat-embed-core-jar-7.0.34.jar:7.0.34]****
>>>         at
>>> org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:429)
>>> ~[tomcat-embed-core-jar-7.0.34.jar:7.0.34]****
>>>         at
>>> org.apache.coyote.http11.AbstractHttp11JsseProtocol.init(AbstractHttp11JsseProtocol.java:119)
>>> [tomcat-embed-core-jar-7.0.34.jar:7.0.34]****
>>>         at
>>> org.apache.catalina.connector.Connector.initInternal(Connector.java:981)
>>> [tomcat-embed-core-jar-7.0.34.jar:7.0.34]****
>>>         at
>>> org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
>>> [tomcat-embed-core-jar-7.0.34.jar:7.0.34]****
>>>         at
>>> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:139)
>>> [tomcat-embed-core-jar-7.0.34.jar:7.0.34]****
>>>         at
>>> org.apache.catalina.core.StandardService.addConnector(StandardService.java:241)
>>> [tomcat-embed-core-jar-7.0.34.jar:7.0.34]****
>>>        at
>>> org.apache.catalina.startup.Embedded.addConnector(Embedded.java:321)
>>> [tomcat-embed-core-jar-7.0.34.jar:7.0.34]****
>>>         at
>>> org.red5.server.tomcat.rtmps.RTMPSLoader.init(RTMPSLoader.java:161)
>>> [tomcatplugin-jar-1.4.jar:na]****
>>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> ~[na:1.6.0_38]****
>>>         at
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>> ~[na:1.6.0_38]****
>>>         at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>> ~[na:1.6.0_38]****
>>>         at java.lang.reflect.Method.invoke(Method.java:597)
>>> ~[na:1.6.0_38]****
>>>         at
>>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1581)
>>> [spring-beans-3.1.1.RELEASE.jar:3.1.1.RELEASE]****
>>> …****
>>> ** **
>>> BR,****
>>> ** **
>>> Mika****
>>> ** **
>>> *From:* Tapanainen Mika [mailto:Mika.Tapanainen@digia.com]
>>> *Sent:* 20. elokuuta 2013 14:52
>>> *To:* user@openmeetings.apache.org
>>> *Subject:* RE: RTMPS and HTTPS: java.net.BindException: Address already
>>> in use, but no application uses the port 5443****
>>> ** **
>>> Hello,****
>>> ** **
>>> I run before the server start:****
>>> ** **
>>> netstat -tulpn | grep 5443 -> no result****
>>> ** **
>>> When I started again the server (previous process was killed before) I
>>> got the same error in the log and:****
>>> ** **
>>> bash red5.sh >> ./log/jvm.stdout 2>&1 &****
>>> [1] 16079****
>>> ** **
>>> netstat -tulpn | grep 5443****
>>> tcp        0      0 0.0.0.0:5443                0.0.0.0:*
>>>                LIST
>>> EN      16079/java****
>>> ** **
>>> So port 5443 was not used before OpenMeetings was started. When
>>> OpenMeetings process 16079 was started the error comes, because the same
>>> process 16079 already uses the port 5443.****
>>> ** **
>>> Do you know how to fix this situation?****
>>> ** **
>>> BR,****
>>> ** **
>>> Mika****
>>> *From:* Tapanainen Mika [mailto:Mika.Tapanainen@digia.com]
>>> *Sent:* 20. elokuuta 2013 13:10
>>> *To:* user@openmeetings.apache.org
>>> *Subject:* RTMPS and HTTPS: java.net.BindException: Address already in
>>> use, but no application uses the port 5443****
>>> ** **
>>> Hello,****
>>> ** **
>>> The standard OpenMeetings installation with HTTP worked for me. Then I
>>> tried change to the protocols: RTMPS and HTTPS and****
>>> ** **
>>> I followed the guide: http://openmeetings.apache.org/RTMPSAndHTTPS.html and
>>> double checked everything.****
>>> ** **
>>> The url https://<server>:443/openmeetings/  or
>>> https://<server>/openmeetings/ results  HTTP 404 error.****
>>> ** **
>>> Server seems to be running and the last line in the log is:****
>>> ** **
>>> DEBUG 08-20 10:36:59.761 MailHandler.java 736267 247
>>> org.apache.openmeetings.utils.mail.MailHandler
>>> [org.springframework.scheduling.quartz.SchedulerFactoryBean#0_Worker-6] -
>>> ... sendMails done.****
>>> ** **
>>> Just before****
>>> ** **
>>> ##################################################****
>>> #               Openmeetings is up               #****
>>> #       2.1.1-RELEASE 1498907 2-July-2013        #****
>>> #                and ready to use                #****
>>> ##################################################****
>>> ** **
>>> is****
>>> ** **
>>> [ERROR] [main] org.apache.coyote.http11.Http11NioProtocol - Failed to
>>> initialize end point associated with ProtocolHandler
>>> ["http-nio-0.0.0.0-5443"]****
>>> java.net.BindException: Address already in use****
>>>         at sun.nio.ch.Net.bind(Native Method) ~[na:1.6.0_38]****
>>>         at
>>> sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:124)
>>> ~[na:1.6.0_38]****
>>>         at
>>> sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59)
>>> ~[na:1.6.0_38]****
>>>         at
>>> org.apache.tomcat.util.net.NioEndpoint.bind(NioEndpoint.java:470)
>>> ~[tomcat-embed-core-jar-7.0.34.jar:7.0.34]****
>>>         at
>>> org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:610)
>>> ~[tomcat-embed-core-jar-7.0.34.jar:7.0.34]****
>>>         at
>>> org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:429)
>>> ~[tomcat-embed-core-jar-7.0.34.jar:7.0.34]****
>>>         at
>>> org.apache.coyote.http11.AbstractHttp11JsseProtocol.init(AbstractHttp11JsseProtocol.java:119)
>>> [tomcat-embed-core-jar-7.0.34.jar:7.0.34]****
>>>         at
>>> org.apache.catalina.connector.Connector.initInternal(Connector.java:981)
>>> [tomcat-embed-core-jar-7.0.34.jar:7.0.34]****
>>>         at
>>> org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
>>> [tomcat-embed-core-jar-7.0.34.jar:7.0.34]****
>>>         at
>>> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:139)
>>> [tomcat-embed-core-jar-7.0.34.jar:7.0.34]****
>>>         at
>>> org.apache.catalina.core.StandardService.addConnector(StandardService.java:241)
>>> [tomcat-embed-core-jar-7.0.34.jar:7.0.34]****
>>>         at
>>> org.apache.catalina.startup.Embedded.addConnector(Embedded.java:321)
>>> [tomcat-embed-core-jar-7.0.34.jar:7.0.34]****
>>>         at
>>> org.red5.server.tomcat.rtmps.RTMPSLoader.init(RTMPSLoader.java:161)
>>> [tomcatplugin-jar-1.4.jar:na]****
>>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> ~[na:1.6.0_38]****
>>>         at
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>> ~[na:1.6.0_38]****
>>>         at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>> ~[na:1.6.0_38]****
>>>         at java.lang.reflect.Method.invoke(Method.java:597)
>>> ~[na:1.6.0_38]****
>>> ** **
>>> when I run the command:****
>>> ** **
>>> netstat -tulpn | grep 5443****
>>> ** **
>>> I don’t get anything as a result (for some other ports the command
>>> works). So no application is using the port 5443??****
>>> ** **
>>> When I grep for the 5443, I got:****
>>> ** **
>>> grep -r 5443 *****
>>> conf/red5.properties:rtmps.port=5443****
>>> webapps/openmeetings/config.xml:<rtmpsslport>5443</rtmpsslport>****
>>> ** **
>>> Do you know what is the problem?****
>>> The guide has sentence “3. Edit
>>> red5/webapps/openmeetings/public/config.xml and set red5httpport to
>>> https port”****
>>> So is this correct in the config.xml?****
>>> ** **
>>> <red5httpport>443</red5httpport>****
>>> ** **
>>> BR,****
>>> ** **
>>> Mika****
>>> ** **
>>> ** **
>>>
>>>
>>>
>>
>>
>> --
>> WBR
>> Maxim aka solomax
>>
>
>
>
> --
> jt
> ________________________________
> John Tran
> Northern California, CA
> findingjohn@gmail.com
>      ICQ IM: 27741710
>     AOL IM: find1ngj0hn
> Yahoo! IM: findingj0hn
>    MSN IM: findingjohn@hotmail.com
>



-- 
WBR
Maxim aka solomax

Re: RTMPS and HTTPS: java.net.BindException: Address already in use, but no application uses the port 5443

Posted by John Tran <fi...@gmail.com>.
Maxim

I rerun the steps RTMPS and HTTPS twice for 2 fresh separate install of the
Ubuntu 12.04LTS and OM 2.1.1. and it worked fine.  The only things that
does not work is if you configure the SSL using ports as 443. I have SSL
working at port 8443 and RMPTS  at port 5443.

If you know of away of getting port 443 to work, it would be much
appreciated shed some light on it.

-john-


On Tue, Aug 20, 2013 at 8:22 AM, Maxim Solodovnik <so...@gmail.com>wrote:

> I'll try to rerun all steps and double check it's validity (unfortunately
> I have no time at all these days :(( )
>
>
> On Tue, Aug 20, 2013 at 9:49 PM, Daniela Kirsch <dk...@excelsystems.com>wrote:
>
>> Hey, we did run into the same error. As far as I can tell it was
>> something in jee-container.xml. However we haven't been able to actually
>> find out how that one file needs to be changed for RTMPS.
>>
>> On 2013-08-20, at 5:45 AM, Tapanainen Mika wrote:
>>
>> Hello,****
>> ** **
>> Is this a problem?****
>> ** **
>> …****
>> [INFO] [main] org.red5.server.net.rtmp.RTMPMinaTransport - RTMP Mina
>> Transport bound to /0.0.0.0:5443****
>> …****
>> [INFO] [main] org.red5.server.tomcat.TomcatLoader - Address to bind: /
>> 0.0.0.0:5443****
>> …****
>> [INFO] [main] org.apache.coyote.http11.Http11NioProtocol - Initializing
>> ProtocolHandler ["http-nio-0.0.0.0-5443"]****
>> [ERROR] [main] org.apache.coyote.http11.Http11NioProtocol - Failed to
>> initialize end point associated with ProtocolHandler
>> ["http-nio-0.0.0.0-5443"]****
>> java.net.BindException: Address already in use****
>>        at sun.nio.ch.Net.bind(Native Method) ~[na:1.6.0_38]****
>>         at
>> sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:124)
>> ~[na:1.6.0_38]****
>>         at
>> sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59)
>> ~[na:1.6.0_38]****
>>         at
>> org.apache.tomcat.util.net.NioEndpoint.bind(NioEndpoint.java:470)
>> ~[tomcat-embed-core-jar-7.0.34.jar:7.0.34]****
>>         at
>> org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:610)
>> ~[tomcat-embed-core-jar-7.0.34.jar:7.0.34]****
>>         at
>> org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:429)
>> ~[tomcat-embed-core-jar-7.0.34.jar:7.0.34]****
>>         at
>> org.apache.coyote.http11.AbstractHttp11JsseProtocol.init(AbstractHttp11JsseProtocol.java:119)
>> [tomcat-embed-core-jar-7.0.34.jar:7.0.34]****
>>         at
>> org.apache.catalina.connector.Connector.initInternal(Connector.java:981)
>> [tomcat-embed-core-jar-7.0.34.jar:7.0.34]****
>>         at
>> org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
>> [tomcat-embed-core-jar-7.0.34.jar:7.0.34]****
>>         at
>> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:139)
>> [tomcat-embed-core-jar-7.0.34.jar:7.0.34]****
>>         at
>> org.apache.catalina.core.StandardService.addConnector(StandardService.java:241)
>> [tomcat-embed-core-jar-7.0.34.jar:7.0.34]****
>>        at
>> org.apache.catalina.startup.Embedded.addConnector(Embedded.java:321)
>> [tomcat-embed-core-jar-7.0.34.jar:7.0.34]****
>>         at
>> org.red5.server.tomcat.rtmps.RTMPSLoader.init(RTMPSLoader.java:161)
>> [tomcatplugin-jar-1.4.jar:na]****
>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> ~[na:1.6.0_38]****
>>         at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>> ~[na:1.6.0_38]****
>>         at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>> ~[na:1.6.0_38]****
>>         at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_38]
>> ****
>>         at
>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1581)
>> [spring-beans-3.1.1.RELEASE.jar:3.1.1.RELEASE]****
>> …****
>> ** **
>> BR,****
>> ** **
>> Mika****
>> ** **
>> *From:* Tapanainen Mika [mailto:Mika.Tapanainen@digia.com]
>> *Sent:* 20. elokuuta 2013 14:52
>> *To:* user@openmeetings.apache.org
>> *Subject:* RE: RTMPS and HTTPS: java.net.BindException: Address already
>> in use, but no application uses the port 5443****
>> ** **
>> Hello,****
>> ** **
>> I run before the server start:****
>> ** **
>> netstat -tulpn | grep 5443 -> no result****
>> ** **
>> When I started again the server (previous process was killed before) I
>> got the same error in the log and:****
>> ** **
>> bash red5.sh >> ./log/jvm.stdout 2>&1 &****
>> [1] 16079****
>> ** **
>> netstat -tulpn | grep 5443****
>> tcp        0      0 0.0.0.0:5443                0.0.0.0:*
>>                LIST
>> EN      16079/java****
>> ** **
>> So port 5443 was not used before OpenMeetings was started. When
>> OpenMeetings process 16079 was started the error comes, because the same
>> process 16079 already uses the port 5443.****
>> ** **
>> Do you know how to fix this situation?****
>> ** **
>> BR,****
>> ** **
>> Mika****
>> *From:* Tapanainen Mika [mailto:Mika.Tapanainen@digia.com]
>> *Sent:* 20. elokuuta 2013 13:10
>> *To:* user@openmeetings.apache.org
>> *Subject:* RTMPS and HTTPS: java.net.BindException: Address already in
>> use, but no application uses the port 5443****
>> ** **
>> Hello,****
>> ** **
>> The standard OpenMeetings installation with HTTP worked for me. Then I
>> tried change to the protocols: RTMPS and HTTPS and****
>> ** **
>> I followed the guide: http://openmeetings.apache.org/RTMPSAndHTTPS.html and
>> double checked everything.****
>> ** **
>> The url https://<server>:443/openmeetings/  or
>> https://<server>/openmeetings/ results  HTTP 404 error.****
>> ** **
>> Server seems to be running and the last line in the log is:****
>> ** **
>> DEBUG 08-20 10:36:59.761 MailHandler.java 736267 247
>> org.apache.openmeetings.utils.mail.MailHandler
>> [org.springframework.scheduling.quartz.SchedulerFactoryBean#0_Worker-6] -
>> ... sendMails done.****
>> ** **
>> Just before****
>> ** **
>> ##################################################****
>> #               Openmeetings is up               #****
>> #       2.1.1-RELEASE 1498907 2-July-2013        #****
>> #                and ready to use                #****
>> ##################################################****
>> ** **
>> is****
>> ** **
>> [ERROR] [main] org.apache.coyote.http11.Http11NioProtocol - Failed to
>> initialize end point associated with ProtocolHandler
>> ["http-nio-0.0.0.0-5443"]****
>> java.net.BindException: Address already in use****
>>         at sun.nio.ch.Net.bind(Native Method) ~[na:1.6.0_38]****
>>         at
>> sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:124)
>> ~[na:1.6.0_38]****
>>         at
>> sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59)
>> ~[na:1.6.0_38]****
>>         at
>> org.apache.tomcat.util.net.NioEndpoint.bind(NioEndpoint.java:470)
>> ~[tomcat-embed-core-jar-7.0.34.jar:7.0.34]****
>>         at
>> org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:610)
>> ~[tomcat-embed-core-jar-7.0.34.jar:7.0.34]****
>>         at
>> org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:429)
>> ~[tomcat-embed-core-jar-7.0.34.jar:7.0.34]****
>>         at
>> org.apache.coyote.http11.AbstractHttp11JsseProtocol.init(AbstractHttp11JsseProtocol.java:119)
>> [tomcat-embed-core-jar-7.0.34.jar:7.0.34]****
>>         at
>> org.apache.catalina.connector.Connector.initInternal(Connector.java:981)
>> [tomcat-embed-core-jar-7.0.34.jar:7.0.34]****
>>         at
>> org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
>> [tomcat-embed-core-jar-7.0.34.jar:7.0.34]****
>>         at
>> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:139)
>> [tomcat-embed-core-jar-7.0.34.jar:7.0.34]****
>>         at
>> org.apache.catalina.core.StandardService.addConnector(StandardService.java:241)
>> [tomcat-embed-core-jar-7.0.34.jar:7.0.34]****
>>         at
>> org.apache.catalina.startup.Embedded.addConnector(Embedded.java:321)
>> [tomcat-embed-core-jar-7.0.34.jar:7.0.34]****
>>         at
>> org.red5.server.tomcat.rtmps.RTMPSLoader.init(RTMPSLoader.java:161)
>> [tomcatplugin-jar-1.4.jar:na]****
>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> ~[na:1.6.0_38]****
>>         at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>> ~[na:1.6.0_38]****
>>         at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>> ~[na:1.6.0_38]****
>>         at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_38]
>> ****
>> ** **
>> when I run the command:****
>> ** **
>> netstat -tulpn | grep 5443****
>> ** **
>> I don’t get anything as a result (for some other ports the command
>> works). So no application is using the port 5443??****
>> ** **
>> When I grep for the 5443, I got:****
>> ** **
>> grep -r 5443 *****
>> conf/red5.properties:rtmps.port=5443****
>> webapps/openmeetings/config.xml:<rtmpsslport>5443</rtmpsslport>****
>> ** **
>> Do you know what is the problem?****
>> The guide has sentence “3. Edit
>> red5/webapps/openmeetings/public/config.xml and set red5httpport to https
>>  port”****
>> So is this correct in the config.xml?****
>> ** **
>> <red5httpport>443</red5httpport>****
>> ** **
>> BR,****
>> ** **
>> Mika****
>> ** **
>> ** **
>>
>>
>>
>
>
> --
> WBR
> Maxim aka solomax
>



-- 
jt
________________________________
John Tran
Northern California, CA
findingjohn@gmail.com
     ICQ IM: 27741710
    AOL IM: find1ngj0hn
Yahoo! IM: findingj0hn
   MSN IM: findingjohn@hotmail.com

Re: RTMPS and HTTPS: java.net.BindException: Address already in use, but no application uses the port 5443

Posted by Maxim Solodovnik <so...@gmail.com>.
I'll try to rerun all steps and double check it's validity (unfortunately I
have no time at all these days :(( )


On Tue, Aug 20, 2013 at 9:49 PM, Daniela Kirsch <dk...@excelsystems.com>wrote:

> Hey, we did run into the same error. As far as I can tell it was something
> in jee-container.xml. However we haven't been able to actually find out how
> that one file needs to be changed for RTMPS.
>
> On 2013-08-20, at 5:45 AM, Tapanainen Mika wrote:
>
> Hello,****
> ** **
> Is this a problem?****
> ** **
> …****
> [INFO] [main] org.red5.server.net.rtmp.RTMPMinaTransport - RTMP Mina
> Transport bound to /0.0.0.0:5443****
> …****
> [INFO] [main] org.red5.server.tomcat.TomcatLoader - Address to bind: /
> 0.0.0.0:5443****
> …****
> [INFO] [main] org.apache.coyote.http11.Http11NioProtocol - Initializing
> ProtocolHandler ["http-nio-0.0.0.0-5443"]****
> [ERROR] [main] org.apache.coyote.http11.Http11NioProtocol - Failed to
> initialize end point associated with ProtocolHandler
> ["http-nio-0.0.0.0-5443"]****
> java.net.BindException: Address already in use****
>        at sun.nio.ch.Net.bind(Native Method) ~[na:1.6.0_38]****
>         at
> sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:124)
> ~[na:1.6.0_38]****
>         at
> sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59)
> ~[na:1.6.0_38]****
>         at
> org.apache.tomcat.util.net.NioEndpoint.bind(NioEndpoint.java:470)
> ~[tomcat-embed-core-jar-7.0.34.jar:7.0.34]****
>         at
> org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:610)
> ~[tomcat-embed-core-jar-7.0.34.jar:7.0.34]****
>         at
> org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:429)
> ~[tomcat-embed-core-jar-7.0.34.jar:7.0.34]****
>         at
> org.apache.coyote.http11.AbstractHttp11JsseProtocol.init(AbstractHttp11JsseProtocol.java:119)
> [tomcat-embed-core-jar-7.0.34.jar:7.0.34]****
>         at
> org.apache.catalina.connector.Connector.initInternal(Connector.java:981)
> [tomcat-embed-core-jar-7.0.34.jar:7.0.34]****
>         at
> org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
> [tomcat-embed-core-jar-7.0.34.jar:7.0.34]****
>         at
> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:139)
> [tomcat-embed-core-jar-7.0.34.jar:7.0.34]****
>         at
> org.apache.catalina.core.StandardService.addConnector(StandardService.java:241)
> [tomcat-embed-core-jar-7.0.34.jar:7.0.34]****
>        at
> org.apache.catalina.startup.Embedded.addConnector(Embedded.java:321)
> [tomcat-embed-core-jar-7.0.34.jar:7.0.34]****
>         at
> org.red5.server.tomcat.rtmps.RTMPSLoader.init(RTMPSLoader.java:161)
> [tomcatplugin-jar-1.4.jar:na]****
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> ~[na:1.6.0_38]****
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> ~[na:1.6.0_38]****
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> ~[na:1.6.0_38]****
>         at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_38]
> ****
>         at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1581)
> [spring-beans-3.1.1.RELEASE.jar:3.1.1.RELEASE]****
> …****
> ** **
> BR,****
> ** **
> Mika****
> ** **
> *From:* Tapanainen Mika [mailto:Mika.Tapanainen@digia.com]
> *Sent:* 20. elokuuta 2013 14:52
> *To:* user@openmeetings.apache.org
> *Subject:* RE: RTMPS and HTTPS: java.net.BindException: Address already
> in use, but no application uses the port 5443****
> ** **
> Hello,****
> ** **
> I run before the server start:****
> ** **
> netstat -tulpn | grep 5443 -> no result****
> ** **
> When I started again the server (previous process was killed before) I got
> the same error in the log and:****
> ** **
> bash red5.sh >> ./log/jvm.stdout 2>&1 &****
> [1] 16079****
> ** **
> netstat -tulpn | grep 5443****
> tcp        0      0 0.0.0.0:5443                0.0.0.0:*
>                LIST
> EN      16079/java****
> ** **
> So port 5443 was not used before OpenMeetings was started. When
> OpenMeetings process 16079 was started the error comes, because the same
> process 16079 already uses the port 5443.****
> ** **
> Do you know how to fix this situation?****
> ** **
> BR,****
> ** **
> Mika****
> *From:* Tapanainen Mika [mailto:Mika.Tapanainen@digia.com]
> *Sent:* 20. elokuuta 2013 13:10
> *To:* user@openmeetings.apache.org
> *Subject:* RTMPS and HTTPS: java.net.BindException: Address already in
> use, but no application uses the port 5443****
> ** **
> Hello,****
> ** **
> The standard OpenMeetings installation with HTTP worked for me. Then I
> tried change to the protocols: RTMPS and HTTPS and****
> ** **
> I followed the guide: http://openmeetings.apache.org/RTMPSAndHTTPS.html and
> double checked everything.****
> ** **
> The url https://<server>:443/openmeetings/  or
> https://<server>/openmeetings/ results  HTTP 404 error.****
> ** **
> Server seems to be running and the last line in the log is:****
> ** **
> DEBUG 08-20 10:36:59.761 MailHandler.java 736267 247
> org.apache.openmeetings.utils.mail.MailHandler
> [org.springframework.scheduling.quartz.SchedulerFactoryBean#0_Worker-6] -
> ... sendMails done.****
> ** **
> Just before****
> ** **
> ##################################################****
> #               Openmeetings is up               #****
> #       2.1.1-RELEASE 1498907 2-July-2013        #****
> #                and ready to use                #****
> ##################################################****
> ** **
> is****
> ** **
> [ERROR] [main] org.apache.coyote.http11.Http11NioProtocol - Failed to
> initialize end point associated with ProtocolHandler
> ["http-nio-0.0.0.0-5443"]****
> java.net.BindException: Address already in use****
>         at sun.nio.ch.Net.bind(Native Method) ~[na:1.6.0_38]****
>         at
> sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:124)
> ~[na:1.6.0_38]****
>         at
> sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59)
> ~[na:1.6.0_38]****
>         at
> org.apache.tomcat.util.net.NioEndpoint.bind(NioEndpoint.java:470)
> ~[tomcat-embed-core-jar-7.0.34.jar:7.0.34]****
>         at
> org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:610)
> ~[tomcat-embed-core-jar-7.0.34.jar:7.0.34]****
>         at
> org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:429)
> ~[tomcat-embed-core-jar-7.0.34.jar:7.0.34]****
>         at
> org.apache.coyote.http11.AbstractHttp11JsseProtocol.init(AbstractHttp11JsseProtocol.java:119)
> [tomcat-embed-core-jar-7.0.34.jar:7.0.34]****
>         at
> org.apache.catalina.connector.Connector.initInternal(Connector.java:981)
> [tomcat-embed-core-jar-7.0.34.jar:7.0.34]****
>         at
> org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
> [tomcat-embed-core-jar-7.0.34.jar:7.0.34]****
>         at
> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:139)
> [tomcat-embed-core-jar-7.0.34.jar:7.0.34]****
>         at
> org.apache.catalina.core.StandardService.addConnector(StandardService.java:241)
> [tomcat-embed-core-jar-7.0.34.jar:7.0.34]****
>         at
> org.apache.catalina.startup.Embedded.addConnector(Embedded.java:321)
> [tomcat-embed-core-jar-7.0.34.jar:7.0.34]****
>         at
> org.red5.server.tomcat.rtmps.RTMPSLoader.init(RTMPSLoader.java:161)
> [tomcatplugin-jar-1.4.jar:na]****
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> ~[na:1.6.0_38]****
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> ~[na:1.6.0_38]****
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> ~[na:1.6.0_38]****
>         at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_38]
> ****
> ** **
> when I run the command:****
> ** **
> netstat -tulpn | grep 5443****
> ** **
> I don’t get anything as a result (for some other ports the command works).
> So no application is using the port 5443??****
> ** **
> When I grep for the 5443, I got:****
> ** **
> grep -r 5443 *****
> conf/red5.properties:rtmps.port=5443****
> webapps/openmeetings/config.xml:<rtmpsslport>5443</rtmpsslport>****
> ** **
> Do you know what is the problem?****
> The guide has sentence “3. Edit
> red5/webapps/openmeetings/public/config.xml and set red5httpport to https
> port”****
> So is this correct in the config.xml?****
> ** **
> <red5httpport>443</red5httpport>****
> ** **
> BR,****
> ** **
> Mika****
> ** **
> ** **
>
>
>


-- 
WBR
Maxim aka solomax

Re: RTMPS and HTTPS: java.net.BindException: Address already in use, but no application uses the port 5443

Posted by Daniela Kirsch <dk...@excelsystems.com>.
Hey, we did run into the same error. As far as I can tell it was something in jee-container.xml. However we haven't been able to actually find out how that one file needs to be changed for RTMPS. 

On 2013-08-20, at 5:45 AM, Tapanainen Mika wrote:

> Hello,
>  
> Is this a problem?
>  
> …
> [INFO] [main] org.red5.server.net.rtmp.RTMPMinaTransport - RTMP Mina Transport bound to /0.0.0.0:5443
> …
> [INFO] [main] org.red5.server.tomcat.TomcatLoader - Address to bind: /0.0.0.0:5443
> …
> [INFO] [main] org.apache.coyote.http11.Http11NioProtocol - Initializing ProtocolHandler ["http-nio-0.0.0.0-5443"]
> [ERROR] [main] org.apache.coyote.http11.Http11NioProtocol - Failed to initialize end point associated with ProtocolHandler ["http-nio-0.0.0.0-5443"]
> java.net.BindException: Address already in use
>        at sun.nio.ch.Net.bind(Native Method) ~[na:1.6.0_38]
>         at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:124) ~[na:1.6.0_38]
>         at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59) ~[na:1.6.0_38]
>         at org.apache.tomcat.util.net.NioEndpoint.bind(NioEndpoint.java:470) ~[tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>         at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:610) ~[tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>         at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:429) ~[tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>         at org.apache.coyote.http11.AbstractHttp11JsseProtocol.init(AbstractHttp11JsseProtocol.java:119) [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>         at org.apache.catalina.connector.Connector.initInternal(Connector.java:981) [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>         at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102) [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>         at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:139) [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>         at org.apache.catalina.core.StandardService.addConnector(StandardService.java:241) [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>        at org.apache.catalina.startup.Embedded.addConnector(Embedded.java:321) [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>         at org.red5.server.tomcat.rtmps.RTMPSLoader.init(RTMPSLoader.java:161) [tomcatplugin-jar-1.4.jar:na]
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_38]
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) ~[na:1.6.0_38]
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[na:1.6.0_38]
>         at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_38]
>         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1581) [spring-beans-3.1.1.RELEASE.jar:3.1.1.RELEASE]
> …
>  
> BR,
>  
> Mika
>  
> From: Tapanainen Mika [mailto:Mika.Tapanainen@digia.com] 
> Sent: 20. elokuuta 2013 14:52
> To: user@openmeetings.apache.org
> Subject: RE: RTMPS and HTTPS: java.net.BindException: Address already in use, but no application uses the port 5443
>  
> Hello,
>  
> I run before the server start:
>  
> netstat -tulpn | grep 5443 -> no result
>  
> When I started again the server (previous process was killed before) I got the same error in the log and:
>  
> bash red5.sh >> ./log/jvm.stdout 2>&1 &
> [1] 16079
>  
> netstat -tulpn | grep 5443
> tcp        0      0 0.0.0.0:5443                0.0.0.0:*                   LIST                                                                                                             EN      16079/java
>  
> So port 5443 was not used before OpenMeetings was started. When OpenMeetings process 16079 was started the error comes, because the same process 16079 already uses the port 5443.
>  
> Do you know how to fix this situation?
>  
> BR,
>  
> Mika
> From: Tapanainen Mika [mailto:Mika.Tapanainen@digia.com] 
> Sent: 20. elokuuta 2013 13:10
> To: user@openmeetings.apache.org
> Subject: RTMPS and HTTPS: java.net.BindException: Address already in use, but no application uses the port 5443
>  
> Hello,
>  
> The standard OpenMeetings installation with HTTP worked for me. Then I tried change to the protocols: RTMPS and HTTPS and
>  
> I followed the guide: http://openmeetings.apache.org/RTMPSAndHTTPS.html and double checked everything.
>  
> The url https://<server>:443/openmeetings/  or https://<server>/openmeetings/ results  HTTP 404 error.
>  
> Server seems to be running and the last line in the log is:
>  
> DEBUG 08-20 10:36:59.761 MailHandler.java 736267 247 org.apache.openmeetings.utils.mail.MailHandler [org.springframework.scheduling.quartz.SchedulerFactoryBean#0_Worker-6] - ... sendMails done.
>  
> Just before
>  
> ##################################################
> #               Openmeetings is up               #
> #       2.1.1-RELEASE 1498907 2-July-2013        #
> #                and ready to use                #
> ##################################################
>  
> is
>  
> [ERROR] [main] org.apache.coyote.http11.Http11NioProtocol - Failed to initialize end point associated with ProtocolHandler ["http-nio-0.0.0.0-5443"]
> java.net.BindException: Address already in use
>         at sun.nio.ch.Net.bind(Native Method) ~[na:1.6.0_38]
>         at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:124) ~[na:1.6.0_38]
>         at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59) ~[na:1.6.0_38]
>         at org.apache.tomcat.util.net.NioEndpoint.bind(NioEndpoint.java:470) ~[tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>         at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:610) ~[tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>         at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:429) ~[tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>         at org.apache.coyote.http11.AbstractHttp11JsseProtocol.init(AbstractHttp11JsseProtocol.java:119) [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>         at org.apache.catalina.connector.Connector.initInternal(Connector.java:981) [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>         at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102) [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>         at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:139) [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>         at org.apache.catalina.core.StandardService.addConnector(StandardService.java:241) [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>         at org.apache.catalina.startup.Embedded.addConnector(Embedded.java:321) [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
>         at org.red5.server.tomcat.rtmps.RTMPSLoader.init(RTMPSLoader.java:161) [tomcatplugin-jar-1.4.jar:na]
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_38]
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) ~[na:1.6.0_38]
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[na:1.6.0_38]
>         at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_38]
>  
> when I run the command:
>  
> netstat -tulpn | grep 5443
>  
> I don’t get anything as a result (for some other ports the command works). So no application is using the port 5443??
>  
> When I grep for the 5443, I got:
>  
> grep -r 5443 *
> conf/red5.properties:rtmps.port=5443
> webapps/openmeetings/config.xml:<rtmpsslport>5443</rtmpsslport>
>  
> Do you know what is the problem?
> The guide has sentence “3. Edit red5/webapps/openmeetings/public/config.xml and set red5httpport to https port”
> So is this correct in the config.xml?
>  
> <red5httpport>443</red5httpport>
>  
> BR,
>  
> Mika
>  
>  


RE: RTMPS and HTTPS: java.net.BindException: Address already in use, but no application uses the port 5443

Posted by Tapanainen Mika <Mi...@digia.com>.
Hello,

Is this a problem?

...
[INFO] [main] org.red5.server.net.rtmp.RTMPMinaTransport - RTMP Mina Transport bound to /0.0.0.0:5443
...
[INFO] [main] org.red5.server.tomcat.TomcatLoader - Address to bind: /0.0.0.0:5443
...
[INFO] [main] org.apache.coyote.http11.Http11NioProtocol - Initializing ProtocolHandler ["http-nio-0.0.0.0-5443"]
[ERROR] [main] org.apache.coyote.http11.Http11NioProtocol - Failed to initialize end point associated with ProtocolHandler ["http-nio-0.0.0.0-5443"]
java.net.BindException: Address already in use
       at sun.nio.ch.Net.bind(Native Method) ~[na:1.6.0_38]
        at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:124) ~[na:1.6.0_38]
        at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59) ~[na:1.6.0_38]
        at org.apache.tomcat.util.net.NioEndpoint.bind(NioEndpoint.java:470) ~[tomcat-embed-core-jar-7.0.34.jar:7.0.34]
        at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:610) ~[tomcat-embed-core-jar-7.0.34.jar:7.0.34]
        at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:429) ~[tomcat-embed-core-jar-7.0.34.jar:7.0.34]
        at org.apache.coyote.http11.AbstractHttp11JsseProtocol.init(AbstractHttp11JsseProtocol.java:119) [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
        at org.apache.catalina.connector.Connector.initInternal(Connector.java:981) [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
        at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102) [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:139) [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
        at org.apache.catalina.core.StandardService.addConnector(StandardService.java:241) [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
       at org.apache.catalina.startup.Embedded.addConnector(Embedded.java:321) [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
        at org.red5.server.tomcat.rtmps.RTMPSLoader.init(RTMPSLoader.java:161) [tomcatplugin-jar-1.4.jar:na]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_38]
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) ~[na:1.6.0_38]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[na:1.6.0_38]
        at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_38]
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1581) [spring-beans-3.1.1.RELEASE.jar:3.1.1.RELEASE]
...

BR,

Mika

From: Tapanainen Mika [mailto:Mika.Tapanainen@digia.com]
Sent: 20. elokuuta 2013 14:52
To: user@openmeetings.apache.org
Subject: RE: RTMPS and HTTPS: java.net.BindException: Address already in use, but no application uses the port 5443

Hello,

I run before the server start:

netstat -tulpn | grep 5443 -> no result

When I started again the server (previous process was killed before) I got the same error in the log and:

bash red5.sh >> ./log/jvm.stdout 2>&1 &
[1] 16079

netstat -tulpn | grep 5443
tcp        0      0 0.0.0.0:5443                0.0.0.0:*                   LIST                                                                                                             EN      16079/java

So port 5443 was not used before OpenMeetings was started. When OpenMeetings process 16079 was started the error comes, because the same process 16079 already uses the port 5443.

Do you know how to fix this situation?

BR,

Mika
From: Tapanainen Mika [mailto:Mika.Tapanainen@digia.com]
Sent: 20. elokuuta 2013 13:10
To: user@openmeetings.apache.org
Subject: RTMPS and HTTPS: java.net.BindException: Address already in use, but no application uses the port 5443

Hello,

The standard OpenMeetings installation with HTTP worked for me. Then I tried change to the protocols: RTMPS and HTTPS and

I followed the guide: http://openmeetings.apache.org/RTMPSAndHTTPS.html and double checked everything.

The url https://<server>:443/openmeetings/<https://%3cserver%3e:443/openmeetings/>  or https://<server>/openmeetings/<https://%3cserver%3e/openmeetings/> results  HTTP 404 error.

Server seems to be running and the last line in the log is:

DEBUG 08-20 10:36:59.761 MailHandler.java 736267 247 org.apache.openmeetings.utils.mail.MailHandler [org.springframework.scheduling.quartz.SchedulerFactoryBean#0_Worker-6] - ... sendMails done.

Just before

##################################################
#               Openmeetings is up               #
#       2.1.1-RELEASE 1498907 2-July-2013        #
#                and ready to use                #
##################################################

is

[ERROR] [main] org.apache.coyote.http11.Http11NioProtocol - Failed to initialize end point associated with ProtocolHandler ["http-nio-0.0.0.0-5443"]
java.net.BindException: Address already in use
        at sun.nio.ch.Net.bind(Native Method) ~[na:1.6.0_38]
        at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:124) ~[na:1.6.0_38]
        at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59) ~[na:1.6.0_38]
        at org.apache.tomcat.util.net.NioEndpoint.bind(NioEndpoint.java:470) ~[tomcat-embed-core-jar-7.0.34.jar:7.0.34]
        at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:610) ~[tomcat-embed-core-jar-7.0.34.jar:7.0.34]
        at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:429) ~[tomcat-embed-core-jar-7.0.34.jar:7.0.34]
        at org.apache.coyote.http11.AbstractHttp11JsseProtocol.init(AbstractHttp11JsseProtocol.java:119) [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
        at org.apache.catalina.connector.Connector.initInternal(Connector.java:981) [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
        at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102) [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:139) [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
        at org.apache.catalina.core.StandardService.addConnector(StandardService.java:241) [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
        at org.apache.catalina.startup.Embedded.addConnector(Embedded.java:321) [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
        at org.red5.server.tomcat.rtmps.RTMPSLoader.init(RTMPSLoader.java:161) [tomcatplugin-jar-1.4.jar:na]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_38]
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) ~[na:1.6.0_38]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[na:1.6.0_38]
        at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_38]

when I run the command:

netstat -tulpn | grep 5443

I don't get anything as a result (for some other ports the command works). So no application is using the port 5443??

When I grep for the 5443, I got:

grep -r 5443 *
conf/red5.properties:rtmps.port=5443
webapps/openmeetings/config.xml:<rtmpsslport>5443</rtmpsslport>

Do you know what is the problem?
The guide has sentence "3. Edit red5/webapps/openmeetings/public/config.xml and set red5httpport to https port"
So is this correct in the config.xml?

<red5httpport>443</red5httpport>

BR,

Mika



RE: RTMPS and HTTPS: java.net.BindException: Address already in use, but no application uses the port 5443

Posted by Tapanainen Mika <Mi...@digia.com>.
Hello,

I run before the server start:

netstat -tulpn | grep 5443 -> no result

When I started again the server (previous process was killed before) I got the same error in the log and:

bash red5.sh >> ./log/jvm.stdout 2>&1 &
[1] 16079

netstat -tulpn | grep 5443
tcp        0      0 0.0.0.0:5443                0.0.0.0:*                   LIST                                                                                                             EN      16079/java

So port 5443 was not used before OpenMeetings was started. When OpenMeetings process 16079 was started the error comes, because the same process 16079 already uses the port 5443.

Do you know how to fix this situation?

BR,

Mika
From: Tapanainen Mika [mailto:Mika.Tapanainen@digia.com]
Sent: 20. elokuuta 2013 13:10
To: user@openmeetings.apache.org
Subject: RTMPS and HTTPS: java.net.BindException: Address already in use, but no application uses the port 5443

Hello,

The standard OpenMeetings installation with HTTP worked for me. Then I tried change to the protocols: RTMPS and HTTPS and

I followed the guide: http://openmeetings.apache.org/RTMPSAndHTTPS.html and double checked everything.

The url https://<server>:443/openmeetings/<https://%3cserver%3e:443/openmeetings/>  or https://<server>/openmeetings/<https://%3cserver%3e/openmeetings/> results  HTTP 404 error.

Server seems to be running and the last line in the log is:

DEBUG 08-20 10:36:59.761 MailHandler.java 736267 247 org.apache.openmeetings.utils.mail.MailHandler [org.springframework.scheduling.quartz.SchedulerFactoryBean#0_Worker-6] - ... sendMails done.

Just before

##################################################
#               Openmeetings is up               #
#       2.1.1-RELEASE 1498907 2-July-2013        #
#                and ready to use                #
##################################################

is

[ERROR] [main] org.apache.coyote.http11.Http11NioProtocol - Failed to initialize end point associated with ProtocolHandler ["http-nio-0.0.0.0-5443"]
java.net.BindException: Address already in use
        at sun.nio.ch.Net.bind(Native Method) ~[na:1.6.0_38]
        at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:124) ~[na:1.6.0_38]
        at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59) ~[na:1.6.0_38]
        at org.apache.tomcat.util.net.NioEndpoint.bind(NioEndpoint.java:470) ~[tomcat-embed-core-jar-7.0.34.jar:7.0.34]
        at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:610) ~[tomcat-embed-core-jar-7.0.34.jar:7.0.34]
        at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:429) ~[tomcat-embed-core-jar-7.0.34.jar:7.0.34]
        at org.apache.coyote.http11.AbstractHttp11JsseProtocol.init(AbstractHttp11JsseProtocol.java:119) [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
        at org.apache.catalina.connector.Connector.initInternal(Connector.java:981) [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
        at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102) [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:139) [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
        at org.apache.catalina.core.StandardService.addConnector(StandardService.java:241) [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
        at org.apache.catalina.startup.Embedded.addConnector(Embedded.java:321) [tomcat-embed-core-jar-7.0.34.jar:7.0.34]
        at org.red5.server.tomcat.rtmps.RTMPSLoader.init(RTMPSLoader.java:161) [tomcatplugin-jar-1.4.jar:na]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_38]
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) ~[na:1.6.0_38]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[na:1.6.0_38]
        at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_38]

when I run the command:

netstat -tulpn | grep 5443

I don't get anything as a result (for some other ports the command works). So no application is using the port 5443??

When I grep for the 5443, I got:

grep -r 5443 *
conf/red5.properties:rtmps.port=5443
webapps/openmeetings/config.xml:<rtmpsslport>5443</rtmpsslport>

Do you know what is the problem?
The guide has sentence "3. Edit red5/webapps/openmeetings/public/config.xml and set red5httpport to https port"
So is this correct in the config.xml?

<red5httpport>443</red5httpport>

BR,

Mika