Red5 Install

I run windows 2003, openfire 3.5.1, jre 6, and downloaded the recent red5.war to my c:\program files\openfire\plugins folder. My server console now shows the red5 tab but when I try to test the page http://:7070/red5/index.html I get:

HTTP ERROR: 404NOT_FOUND

RequestURI=/red5/index.html

Powered by Jetty://

Settings:

All addresses

7070

HTTP Binding

The port used for unsecured HTTP client connections.

All addresses

7443

HTTP Binding

The port used for secured HTTP client connections.

Firewall is turned off.

Am I missing something? I get the same results when attempting to use spark to view/enable etc.

Check your log files. It does look http-bind is working on port 7070 so maybe Red5 plugin failed to register as a Jetty web app.

I ended up changing the http bind port to 8080 and did a restart and the red5 picked up, however, now I have a small problem with the spark plugin… it is defaulting the web pages to 9090 instead of 8080. How can I adjust the plugin or recompile it or whatever for windows so that it will function properly?

Hey, i have the same issue as bnpit.

My warn.log tells me:

at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:648)

at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:205) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395) at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:450) 2008.06.11 14:33:00 Error starting handlers java.lang.IllegalArgumentException: Illegal context spec:null at org.mortbay.jetty.handler.ContextHandlerCollection.mapContexts(ContextHandlerCo llection.java:82) at org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollec tion.java:155) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39) at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39) at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130) at org.mortbay.jetty.Server.doStart(Server.java:222) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39) at org.jivesoftware.openfire.http.HttpBindManager.changeHttpBindPorts(HttpBindMana ger.java:246) at org.jivesoftware.openfire.http.HttpBindManager.setHttpBindPorts(HttpBindManager .java:210) at org.jivesoftware.openfire.admin.http_002dbind_jsp.handleUpdate(http_002dbind_js p.java:28) at org.jivesoftware.openfire.admin.http_002dbind_jsp._jspService(http_002dbind_jsp .java:104) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)

I changed from 8080 to 7070 an back, reloded the plugin but nothing happened.

OF 3.5.1 Red5 0.0.21

handlers java.lang.IllegalArgumentException: Illegal context spec:null at

If the plugin fails to register as a web service, then restart Openfire.

If this file exists, check contents

x:\documents and settings\yyyyyyy\Spark\red5.properties

Hey, after restarting the server i get:

HTTP ERROR: 503

SERVICE_UNAVAILABLE

RequestURI=/red5/index.html

My warn log:

at org.jivesoftware.openfire.server.OutgoingSessionPromise$PacketsProcessor.run(Ou tgoingSessionPromise.java:194)

at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java: 885) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907) at java.lang.Thread.run(Thread.java:619) 2008.06.11 15:10:53 Committed before 404 null 2008.06.11 15:10:53 /red5/index.html java.lang.IllegalStateException: Committed at org.mortbay.jetty.Response.resetBuffer(Response.java:995) at org.mortbay.jetty.Response.sendError(Response.java:240) at org.mortbay.jetty.Response.sendError(Response.java:340) at org.mortbay.jetty.servlet.ServletHandler.notFound(ServletHandler.java:995) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:365) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:726) at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollect ion.java:206) at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at org.mortbay.jetty.Server.handle(Server.java:324) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505) at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.j ava:828) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395) at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:450) 2008.06.11 15:10:53 Committed before 404 null 2008.06.11 15:10:53 /red5/index.html

Before restarting the server i only got a 404 !?

Edit: My information.log tells me:

2008.06.11 15:06:24 Packet Filter loaded…

2008.06.11 15:06:25 Initializing red5 Plugin 2008.06.11 15:06:25 Registering red5 as a component 2008.06.11 15:06:25 Starting PacketHandler 2008.06.11 15:06:25 Creating web service red5

whats in red5.log and red5error.log??

Red5.log:

2008-06-11 15:28:35,167 INFO org.red5.server.jmx.JMXAgent - JMX HTML adapter was not enabled

2008-06-11 15:28:35,172 INFO org.red5.server.jmx.JMXAgent - JMX RMI adapter was not enabled

2008-06-11 15:28:35,659 INFO o.r.s.net.rtmp.RTMPMinaTransport - RTMP Mina Transport Settings

2008-06-11 15:28:35,662 INFO o.r.s.net.rtmp.RTMPMinaTransport - IO Threads: 9

2008-06-11 15:28:35,662 INFO o.r.s.net.rtmp.RTMPMinaTransport - Event Threads - core: 4, max: 8, queue: -1, keepalive: 60

2008-06-11 15:28:35,688 INFO o.r.s.net.rtmp.RTMPMinaTransport - TCP No Delay: true

2008-06-11 15:28:35,688 INFO o.r.s.net.rtmp.RTMPMinaTransport - Receive Buffer Size: 65536

2008-06-11 15:28:35,688 INFO o.r.s.net.rtmp.RTMPMinaTransport - Send Buffer Size: 271360

2008-06-11 15:28:35,692 INFO o.r.s.net.rtmp.RTMPMinaTransport - RTMP Mina Transport bound to 0.0.0.0/0.0.0.0:1935

2008-06-11 15:28:35,693 INFO org.red5.server.jmx.JMXFactory - Object name: org.red5.server:type=RTMPMinaTransport,address=0.0.0.0,port=1935

2008-06-11 15:28:35,701 INFO org.red5.server.jmx.JMXFactory - Object name: org.red5.server:type=IoServiceManager,address=0.0.0.0,port=1935

Red5error.log is empty.

As far as I can tell there is nothing wrong with your red5 plugin. It looks like it is working. Looking at your info.log file at

org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39) at org.jivesoftware.openfire.http.HttpBindManager.changeHttpBindPorts(HttpBindMana ger.java:246) at

suggests that http-bind part has not been changed. Pls confirm what the value of httpbind.port.plain is in your systems properties

Confirmed!

x:\documents and settings\yyyyyyy\Spark\red5.properties does not exist.

what is in x:\documents and settings\yyyyyyy\Spark\logs\errors.log

SCHWERWIEGEND:

No response from the server.:

at org.jivesoftware.smackx.ServiceDiscoveryManager.discoverInfo(ServiceDiscoveryMa nager.java:410)

at org.jivesoftware.smackx.ServiceDiscoveryManager.discoverInfo(ServiceDiscoveryMa nager.java:379)

at org.jivesoftware.sparkimpl.plugin.gateways.transports.TransportUtils.isRegister ed(TransportUtils.java:120)

at org.jivesoftware.sparkimpl.plugin.gateways.GatewayButton$2.run(GatewayButton.ja va:67)

at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)

at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)

at java.util.concurrent.FutureTask.run(Unknown Source)

at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

at java.lang.Thread.run(Unknown Source)

11.06.2008 14:57:18 org.jivesoftware.spark.util.log.Log error

SCHWERWIEGEND: Red5-Error: Properties-file does not exist= C:\Dokumente und Einstellungen\as\Spark\red5.properties

11.06.2008 15:10:35 org.jivesoftware.spark.util.log.Log error

SCHWERWIEGEND: Red5-Error: Properties-file does not exist= C:\Dokumente und Einstellungen\as\Spark\red5.properties

11.06.2008 15:14:23 org.jivesoftware.spark.util.log.Log error

SCHWERWIEGEND: Closing Video Presence Window

11.06.2008 15:22:36 org.jivesoftware.spark.util.log.Log error

SCHWERWIEGEND: Red5-Error: Properties-file does not exist= C:\Dokumente und Einstellungen\as\Spark\red5.properties

11.06.2008 15:29:59 org.jivesoftware.spark.util.log.Log error

SCHWERWIEGEND: Red5-Error: Properties-file does not exist= C:\Dokumente und Einstellungen\as\Spark\

I copied the red5.properties from the plugins/red5 dir into my spark folder under C:\Dokumente und Einstellungen\as\Spark but nothing changed.

We are almost there. How about warn.log. Look for “WARNING: Web Port = xxxxx”

I downloaded the red5.properties from the 3rd page and adjusted it to reflect my server and the port I want and everything is working now. Thanks for all the help.

I got some new entrys from the red5.log and red5error.log - see attached files for further information.

2008-06-12 10:30:27,606 INFO org.red5.server.jmx.JMXAgent - JMX HTML adapter was not enabled

2008-06-12 10:30:27,611 INFO org.red5.server.jmx.JMXAgent - JMX RMI adapter was not enabled

2008-06-12 10:30:28,265 INFO o.r.s.net.rtmp.RTMPMinaTransport - RTMP Mina Transport Settings

2008-06-12 10:30:28,267 INFO o.r.s.net.rtmp.RTMPMinaTransport - IO Threads: 9

2008-06-12 10:30:28,267 INFO o.r.s.net.rtmp.RTMPMinaTransport - Event Threads - core: 4, max: 8, queue: -1, keepalive: 60

2008-06-12 10:30:28,298 INFO o.r.s.net.rtmp.RTMPMinaTransport - TCP No Delay: true

2008-06-12 10:30:28,298 INFO o.r.s.net.rtmp.RTMPMinaTransport - Receive Buffer Size: 65536

2008-06-12 10:30:28,298 INFO o.r.s.net.rtmp.RTMPMinaTransport - Send Buffer Size: 271360

2008-06-12 10:30:28,307 INFO o.r.s.net.rtmp.RTMPMinaTransport - RTMP Mina Transport bound to 0.0.0.0/0.0.0.0:1935

2008-06-12 10:30:28,308 INFO org.red5.server.jmx.JMXFactory - Object name: org.red5.server:type=RTMPMinaTransport,address=0.0.0.0,port=1935

2008-06-12 10:30:28,319 INFO org.red5.server.jmx.JMXFactory - Object name: org.red5.server:type=IoServiceManager,address=0.0.0.0,port=1935

2008-06-12 10:30:29,009 INFO o.r.s.net.rtmp.RTMPMinaTransport - RTMP Mina Transport unbind

2008-06-12 10:30:29,040 ERROR o.red5.server.war.WarLoaderServlet -
red5.log (16312 Bytes)
red5error.log (14821 Bytes)

I’m stuck in this same spot…

Just for the protocol, my Red5 is now working like it should. I dunno what was wrong. I am running on port 8080 an edited the red5.properties manually. After several Plugin reloads and OF reloads and, yes, server reloads the plugin is working - very strange by the way

Okay, I followed the same steps, but this whole thing is useless without Mac support. Is there any audio/video Mac/Linux/PC solution?