Unable to start 1.0.0. server

778 views
Skip to first unread message

mpedrats

unread,
Jan 6, 2013, 11:02:17 AM1/6/13
to red5in...@googlegroups.com
Hi,

I am trying to get version 1.0.0 working on my ubuntu 12.04 box. Unfortunately without success. It just won't finish the startup sequence.

Would be really great if someone could point out what I might be doing wrong.

This is my setup:
ubuntu 12.04
oracle 7 jdk (also tried with Sun Jdk 6 and openJDK 6 and 7)
untared, then renamed the directory to red5-1.0.0 and started Red5 from there via ./red5.sh

Here the verbose log:

root@h1659043:/opt/red5# ./red5.sh
Running on  Linux
Starting Red5
Red5 root: /opt/red5
Configuation root: /opt/red5/conf
Selected libraries: (53 items)
file:/opt/red5/red5.jar
file:/opt/red5/lib/xmlrpc-2.0.1.jar
file:/opt/red5/lib/slf4j-api-1.6.6.jar
file:/opt/red5/lib/com.springsource.org.objectweb.asm-3.2.0.jar
file:/opt/red5/lib/jruby-1.6.7.2.jar
file:/opt/red5/lib/jul-to-slf4j-1.6.6.jar
file:/opt/red5/lib/spring-web-3.1.1.RELEASE.jar
file:/opt/red5/lib/commons-modeler-2.0.1.jar
file:/opt/red5/lib/commons-pool-1.5.6.jar
file:/opt/red5/lib/jaudiotagger-2.0.4-SNAPSHOT.jar
file:/opt/red5/lib/logback-classic-1.0.3.jar
file:/opt/red5/lib/com.springsource.org.apache.xerces-2.9.1.jar
file:/opt/red5/lib/com.springsource.org.antlr-3.1.3.jar
file:/opt/red5/lib/jython-standalone-2.5.2.jar
file:/opt/red5/lib/com.springsource.net.sf.cglib-2.2.0.jar
file:/opt/red5/lib/spring-core-3.1.1.RELEASE.jar
file:/opt/red5/lib/spring-aop-3.1.1.RELEASE.jar
file:/opt/red5/lib/bcprov-jdk15on-1.47.jar
file:/opt/red5/lib/com.springsource.org.aopalliance-1.0.0.jar
file:/opt/red5/lib/com.springsource.org.objectweb.asm.commons-3.2.0.jar
file:/opt/red5/lib/log4j-over-slf4j-1.6.6.jar
file:/opt/red5/lib/httpcore-4.2.1.jar
file:/opt/red5/lib/commons-lang3-3.1.jar
file:/opt/red5/lib/mina-integration-jmx-2.0.5.jar
file:/opt/red5/lib/com.springsource.org.mozilla.javascript-1.7.0.R2.jar
file:/opt/red5/lib/commons-codec-1.6.jar
file:/opt/red5/lib/javaee-api-5.1.2.jar
file:/opt/red5/lib/spring-asm-3.1.1.RELEASE.jar
file:/opt/red5/lib/ehcache-core-2.5.0.jar
file:/opt/red5/lib/spring-context-support-3.1.1.RELEASE.jar
file:/opt/red5/lib/jcl-over-slf4j-1.6.6.jar
file:/opt/red5/lib/commons-beanutils-1.8.3.jar
file:/opt/red5/lib/com.springsource.javax.xml.stream-1.0.1.jar
file:/opt/red5/lib/quartz-1.8.5.jar
file:/opt/red5/lib/commons-collections-3.2.1.jar
file:/opt/red5/lib/logback-core-1.0.3.jar
file:/opt/red5/lib/mina-integration-beans-2.0.5.jar
file:/opt/red5/lib/com.springsource.org.codehaus.groovy-1.7.0.jar
file:/opt/red5/lib/spring-beans-3.1.1.RELEASE.jar
file:/opt/red5/lib/httpclient-4.2.jar
file:/opt/red5/lib/sysout-over-slf4j-1.0.2.jar
file:/opt/red5/lib/spring-expression-3.1.1.RELEASE.jar
file:/opt/red5/lib/mina-core-2.0.5.jar
file:/opt/red5/lib/spring-context-3.1.1.RELEASE.jar
file:/opt/red5/conf/
file:/opt/red5/plugins/
file:/opt/red5/plugins/catalina-6.0.36.jar
file:/opt/red5/plugins/ecj-3.7.2.jar
file:/opt/red5/plugins/tomcat-juli-slf4j-1.5.0.jar
file:/opt/red5/plugins/jasper-6.0.36.jar
file:/opt/red5/plugins/jasper-el-6.0.36.jar
file:/opt/red5/plugins/tomcat-coyote-6.0.36.jar
file:/opt/red5/plugins/tomcatplugin-1.3.jar

Root: /opt/red5
Deploy type: bootstrap
Logback selector: org.red5.logging.LoggingContextSelector
Exception in thread "Reference Handler" java.lang.IllegalMonitorStateException
        at java.lang.Object.notifyAll(Native Method)
        at java.lang.ref.ReferenceQueue.enqueue(ReferenceQueue.java:68)
        at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:146)
15:54:04,296 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback.groovy]
15:54:04,297 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback-test.xml]
15:54:04,297 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Found resource [logback.xml] at [file:/opt/red5/conf/logback.xml]
15:54:04,298 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource [logback.xml] occurs multiple times on the classpath.
15:54:04,299 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource [logback.xml] occurs at [file:/opt/red5/conf/logback.xml]
15:54:04,299 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource [logback.xml] occurs at [file:/opt/red5/conf/logback.xml]
15:54:04,721 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - debug attribute not set
15:54:04,727 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.ConsoleAppender]
15:54:04,734 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [CONSOLE]
15:54:04,805 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property
15:54:04,907 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.FileAppender]
15:54:04,909 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [FILE]
15:54:04,912 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property
15:54:04,928 |-INFO in ch.qos.logback.core.FileAppender[FILE] - File property is set to [log/red5.log]
15:54:04,930 |-INFO in ch.qos.logback.classic.joran.action.LevelAction - ROOT level set to INFO
15:54:04,930 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [CONSOLE] to Logger[ROOT]
15:54:04,931 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [FILE] to Logger[ROOT]
15:54:04,931 |-INFO in ch.qos.logback.classic.joran.action.LevelAction - org.springframework level set to INFO
15:54:04,931 |-INFO in ch.qos.logback.classic.joran.action.LevelAction - org.apache level set to INFO
15:54:04,931 |-INFO in ch.qos.logback.classic.joran.action.LevelAction - ch.qos level set to WARN
15:54:04,931 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - End of configuration.
15:54:04,933 |-INFO in ch.qos.logback.classic.joran.JoranConfigurator@c3455c - Registering current configuration as safe fallback point

Setting default logging context: default
[INFO] [main] org.red5.server.Launcher - Red5 Server 1.0.0 $Rev: 4450 $ (http://code.google.com/p/red5/)
Red5 Server 1.0.0 $Rev: 4450 $ (http://code.google.com/p/red5/)
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/opt/red5/red5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/opt/red5/lib/logback-classic-1.0.3.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Actual binding is of type [org.red5.logging.LoggingContextSelector]
[INFO] [main] org.springframework.context.support.FileSystemXmlApplicationContext - Refreshing org.springframework.context.support.FileSystemXmlApplicationContext@e39f23: startup date [Sun Jan 06 15:54:05 UTC 2013]; root of context hierarchy
[INFO] [main] org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from class path resource [red5.xml]
[INFO] [main] org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from class path resource [jee-container.xml]
[INFO] [main] org.springframework.beans.factory.config.PropertyPlaceholderConfigurer - Loading properties file from class path resource [red5.properties]
[INFO] [main] org.springframework.beans.factory.support.DefaultListableBeanFactory - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@172be65: defining beans [placeholderConfig,red5.common,red5.core,context.loader,pluginLauncher,tomcat.server]; root of factory hierarchy
[INFO] [main] org.springframework.context.support.FileSystemXmlApplicationContext - Refreshing org.springframework.context.support.FileSystemXmlApplicationContext@1ebf1ca: startup date [Sun Jan 06 15:54:06 UTC 2013]; root of context hierarchy
[INFO] [main] org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from class path resource [red5-common.xml]
[INFO] [main] org.springframework.beans.factory.config.PropertyPlaceholderConfigurer - Loading properties file from class path resource [red5.properties]
[INFO] [main] org.springframework.beans.factory.support.DefaultListableBeanFactory - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@3fa3cf: defining beans [placeholderConfig,red5.server,rmiRegistry,mbeanServer,org.springframework.jmx.support.ConnectorServerFactoryBean#0,mbeanExporter,serializer,deserializer,minaEncoder,minaDecoder,statusObjectService,rtmpCodecFactory,rtmptCodecFactory,remotingCodecFactory,streamableFileFactory,filePersistenceThread,sharedObjectService,streamService,providerService,consumerService,schedulingService,warDeployService,remotingClient,object.cache,keyframe.cache,flv.impl,flvreader.impl,mp4reader.impl,mp3reader.impl,org.springframework.beans.factory.config.MethodInvokingFactoryBean#0,org.springframework.beans.factory.config.MethodInvokingFactoryBean#1,streamExecutor,fileConsumer,playlistSubscriberStream,clientBroadcastStream]; root of factory hierarchy
[INFO] [main] org.springframework.remoting.rmi.RmiRegistryFactoryBean - Creating new RMI registry
[INFO] [main] org.springframework.jmx.support.ConnectorServerFactoryBean - JMX connector server started: javax.management.remote.rmi.RMIConnectorServer@190eeec
[INFO] [main] org.springframework.jmx.export.annotation.AnnotationMBeanExporter - Registering beans for JMX exposure on startup
[INFO] [main] org.springframework.jmx.export.annotation.AnnotationMBeanExporter - Bean with name 'org.springframework.jmx.support.ConnectorServerFactoryBean#0' has been autodetected for JMX exposure
[INFO] [main] org.quartz.core.SchedulerSignalerImpl - Initialized Scheduler Signaller of type: class org.quartz.core.SchedulerSignalerImpl
[INFO] [main] org.quartz.core.QuartzScheduler - Quartz Scheduler v.1.8.5 created.
[INFO] [main] org.quartz.simpl.RAMJobStore - RAMJobStore initialized.
[INFO] [main] org.quartz.core.QuartzScheduler - Scheduler meta-data: Quartz Scheduler (v1.8.5) 'Red5_Scheduler' with instanceId 'h1659043.stratoserver.net1357487647340'
  Scheduler class: 'org.quartz.core.QuartzScheduler' - running locally.
  NOT STARTED.
  Currently in standby mode.
  Number of jobs executed: 0
  Using thread pool 'org.quartz.simpl.SimpleThreadPool' - with 4 threads.
  Using job-store 'org.quartz.simpl.RAMJobStore' - which does not support persistence. and is not clustered.

[INFO] [main] org.quartz.impl.StdSchedulerFactory - Quartz scheduler 'Red5_Scheduler' initialized from default resource file in Quartz package: 'quartz.properties'
[INFO] [main] org.quartz.impl.StdSchedulerFactory - Quartz scheduler version: 1.8.5
[INFO] [main] org.quartz.core.QuartzScheduler - Scheduler Red5_Scheduler_$_h1659043.stratoserver.net1357487647340 started.
[INFO] [main] org.springframework.jmx.export.annotation.AnnotationMBeanExporter - Bean with name 'schedulingService' has been autodetected for JMX exposure
[INFO] [main] org.springframework.jmx.export.annotation.AnnotationMBeanExporter - Bean with name 'clientBroadcastStream' has been autodetected for JMX exposure
[INFO] [main] org.springframework.jmx.export.annotation.AnnotationMBeanExporter - Located MBean 'org.springframework.jmx.support.ConnectorServerFactoryBean#0': registering with JMX server as MBean [org.red5.server:name=org.springframework.jmx.support.ConnectorServerFactoryBean#0,type=RMIConnectorServer]
[INFO] [main] org.springframework.jmx.export.annotation.AnnotationMBeanExporter - Located MBean 'schedulingService': registering with JMX server as MBean [org.red5.server:name=schedulingService,type=QuartzSchedulingService]


Here it stops and nothing happens anymore.

Thanks a lot for you help in advance,
Mark

Mondain

unread,
Jan 6, 2013, 11:09:37 AM1/6/13
to red5in...@googlegroups.com
Do you have your IP set to 127.0.0.1? 


mpedrats

unread,
Jan 6, 2013, 1:01:39 PM1/6/13
to red5in...@googlegroups.com
Hi,
thanks for the quick reply.
Where should I have set the IP to 127.0.0.1?
Thanks,
Mark


2013/1/6 Mondain <mon...@gmail.com>

--
 
 
 

Mondain

unread,
Jan 6, 2013, 4:29:37 PM1/6/13
to red5in...@googlegroups.com
The IP addresses for your installation are set in red5/conf/red5.properties; I wasn't saying that you should set this IP address, I'm asking if you had set it to 127.0.0.1 because that can cause this error on Linux. I suggest you leave the IP addresses at their defaults of 0.0.0.0.

Paul

mpedrats

unread,
Jan 7, 2013, 2:18:48 PM1/7/13
to red5in...@googlegroups.com
Hi Paul,
I have now changed:

red5.properties
===========
proxy.source_host=0.0.0.0
proxy.destination_host=0.0.0.0

jmx.rmi.host=0.0.0.0

all the other host references are already set to  0.0.0.0.

red5-common.xml (in bold)
====================
 <property name="enableRmiAdapter" value="false"/>^M
 <property name="startRegistry" value="false"/>^M

The output now looks as follows:

.......
2013-01-07 19:13:33,490 [main] INFO  o.s.c.s.FileSystemXmlApplicationContext - Refreshing org.springframework.context.support.FileSystemXmlApplicationContext@1fcf0ce: startup date [Mon Jan 07 19:13:33 UTC 2013]; root of context hierarchy
2013-01-07 19:13:34,300 [main] INFO  o.s.b.f.c.PropertyPlaceholderConfigurer - Loading properties file from class path resource [red5.properties]
2013-01-07 19:13:34,310 [main] INFO  o.s.b.f.s.DefaultListableBeanFactory - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@2a6f16: defining beans [placeholderConfig,red5.common,red5.core,context.loader,pluginLauncher,tomcat.server]; root of factory hierarchy
2013-01-07 19:13:34,383 [main] INFO  o.s.c.s.FileSystemXmlApplicationContext - Refreshing org.springframework.context.support.FileSystemXmlApplicationContext@fcfa52: startup date [Mon Jan 07 19:13:34 UTC 2013]; root of context hierarchy
2013-01-07 19:13:34,521 [main] INFO  o.s.b.f.c.PropertyPlaceholderConfigurer - Loading properties file from class path resource [red5.properties]
2013-01-07 19:13:34,527 [main] INFO  o.s.b.f.s.DefaultListableBeanFactory - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@170888e: defining beans [placeholderConfig,red5.server,jmxFactory,jmxAgent,serializer,deserializer,statusObjectService,rtmpCodecFactory,rtmptCodecFactory,remotingCodecFactory,streamableFileFactory,filePersistenceThread,sharedObjectService,streamService,providerService,consumerService,schedulingService,warDeployService,remotingClient,object.cache,keyframe.cache,flv.impl,flvreader.impl,mp4reader.impl,mp3reader.impl,org.springframework.beans.factory.config.MethodInvokingFactoryBean#0,org.springframework.beans.factory.config.MethodInvokingFactoryBean#1,streamExecutor,fileConsumer,playlistSubscriberStream,clientBroadcastStream]; root of factory hierarchy
2013-01-07 19:13:34,627 [main] INFO  org.red5.server.jmx.JMXAgent - JMX RMI adapter was not enabled
2013-01-07 19:13:35,102 [main] INFO  org.red5.server.service.WarDeployer - War deployer service created
2013-01-07 19:13:35,202 [main] INFO  o.s.c.s.FileSystemXmlApplicationContext - Refreshing org.springframework.context.support.FileSystemXmlApplicationContext@b32ed4: startup date [Mon Jan 07 19:13:35 UTC 2013]; parent: ApplicationContext 'red5.common'
2013-01-07 19:13:35,307 [main] INFO  o.s.b.f.c.PropertyPlaceholderConfigurer - Loading properties file from class path resource [red5.properties]
2013-01-07 19:13:35,381 [main] INFO  o.s.b.f.s.DefaultListableBeanFactory - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@1dccedd: defining beans [customEditorConfigurer,placeholderConfig,rtmpMinaConnManager,rtmpHandler,rtmpMinaIoHandler,rtmpTransport,rtmpMinaConnection,rtmptConnManager,rtmptHandler,rtmptServlet,rtmptConnection]; parent: org.springframework.beans.factory.support.DefaultListableBeanFactory@170888e
2013-01-07 19:13:35,400 [main] INFO  o.r.s.net.rtmp.RTMPMinaTransport - RTMP Mina Transport bound to /0.0.0.0:1935
2013-01-07 19:13:35,400 [main] INFO  o.r.s.net.rtmp.RTMPMinaTransport - RTMP Mina Transport Settings
2013-01-07 19:13:35,400 [main] INFO  o.r.s.net.rtmp.RTMPMinaTransport - I/O Threads: 16
2013-01-07 19:13:35,507 [main] INFO  o.r.s.net.rtmp.RTMPMinaTransport - TCP No Delay: true
2013-01-07 19:13:35,507 [main] INFO  o.r.s.net.rtmp.RTMPMinaTransport - Receive Buffer Size: 65536
2013-01-07 19:13:35,507 [main] INFO  o.r.s.net.rtmp.RTMPMinaTransport - Send Buffer Size: 271360
2013-01-07 19:13:35,582 [main] INFO  org.red5.server.jmx.JMXFactory - Object name: org.red5.server:type=ContextLoader
2013-01-07 19:13:35,594 [main] INFO  o.s.c.s.FileSystemXmlApplicationContext - Refreshing org.springframework.context.support.FileSystemXmlApplicationContext@1cd280b: startup date [Mon Jan 07 19:13:35 UTC 2013]; parent: ApplicationContext 'red5.common'
2013-01-07 19:13:35,686 [main] INFO  o.s.b.f.s.DefaultListableBeanFactory - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@22d166: defining beans [global.clientRegistry,global.serviceInvoker,global.mappingStrategy,global.context,global.handler,global.scope,red5.scopeResolver]; parent: org.springframework.beans.factory.support.DefaultListableBeanFactory@170888e
2013-01-07 19:13:36,101 [main] INFO  org.red5.server.tomcat.TomcatLoader - Setting connector: org.apache.catalina.connector.Connector
2013-01-07 19:13:36,101 [main] INFO  org.red5.server.tomcat.TomcatLoader - Address to bind: /0.0.0.0:5080
2013-01-07 19:13:36,101 [main] INFO  org.red5.server.tomcat.TomcatLoader - Loading tomcat context
2013-01-07 19:13:36,101 [main] INFO  org.red5.server.tomcat.TomcatLoader - Server root: /usr/share/red5
2013-01-07 19:13:36,101 [main] INFO  org.red5.server.tomcat.TomcatLoader - Config root: /usr/share/red5/conf
2013-01-07 19:13:36,123 [main] INFO  org.red5.server.tomcat.TomcatLoader - Application root: /usr/share/red5/webapps
2013-01-07 19:13:36,225 [main] INFO  org.red5.server.tomcat.TomcatLoader - Starting Tomcat servlet engine
2013-01-07 19:13:36,228 [main] INFO  o.apache.catalina.startup.Embedded - Starting tomcat server


on some startups I get errors after this message above complaining about references to jar files that can not be found. Maybe because RMI is disabled? 


.... any ideas what could have gone wrong?

Thanks for you help,
Mark



2013/1/6 Mondain <mon...@gmail.com>
--
 
 
 

mpedrats

unread,
Jan 8, 2013, 4:39:21 AM1/8/13
to red5in...@googlegroups.com
Hi,

here some more results from my testing.

The trace from yesterday came out of a new install via % apt-get install red-server. The install was really smooth but didn't work as I mentioned. But! I think version 1.0.0 RC1 or RC2 got installed because I was able to set 'enableRmiAdapter' and 'startRegistry'. These settings are, to my understanding, not available anymore in 1.0.0. final (http://red5.org/downloads/red5/1_0/red5-1.0.0.tar.gz).

I have now reinstalled 1.0.0. final and get this trace:

2013-01-08 09:28:02,014 [main] INFO  org.red5.server.Launcher - Red5 Server 1.0.0 $Rev: 4450 $ (http://code.google.com/p/red5/)
2013-01-08 09:28:02,200 [main] INFO  o.s.c.s.FileSystemXmlApplicationContext - Refreshing org.springframework.context.support.FileSystemXmlApplicationContext@8fce95: startup date [Tue Jan 08 09:28:02 UTC 2013]; root of context hierarchy
2013-01-08 09:28:02,313 [main] INFO  o.s.b.f.xml.XmlBeanDefinitionReader - Loading XML bean definitions from class path resource [red5.xml]
2013-01-08 09:28:02,888 [main] INFO  o.s.b.f.xml.XmlBeanDefinitionReader - Loading XML bean definitions from class path resource [jee-container.xml]
2013-01-08 09:28:03,107 [main] INFO  o.s.b.f.c.PropertyPlaceholderConfigurer - Loading properties file from class path resource [red5.properties]
2013-01-08 09:28:03,118 [main] INFO  o.s.b.f.s.DefaultListableBeanFactory - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@d42d08: defining beans [placeholderConfig,red5.common,red5.core,context.loader,pluginLauncher,tomcat.server]; root of factory hierarchy
2013-01-08 09:28:03,192 [main] INFO  o.s.c.s.FileSystemXmlApplicationContext - Refreshing org.springframework.context.support.FileSystemXmlApplicationContext@1b5998f: startup date [Tue Jan 08 09:28:03 UTC 2013]; root of context hierarchy
2013-01-08 09:28:03,194 [main] INFO  o.s.b.f.xml.XmlBeanDefinitionReader - Loading XML bean definitions from class path resource [red5-common.xml]
2013-01-08 09:28:03,414 [main] INFO  o.s.b.f.c.PropertyPlaceholderConfigurer - Loading properties file from class path resource [red5.properties]
2013-01-08 09:28:03,426 [main] INFO  o.s.b.f.s.DefaultListableBeanFactory - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@16d2633: defining beans [placeholderConfig,red5.server,rmiRegistry,mbeanServer,org.springframework.jmx.support.ConnectorServerFactoryBean#0,mbeanExporter,serializer,deserializer,minaEncoder,minaDecoder,statusObjectService,rtmpCodecFactory,rtmptCodecFactory,remotingCodecFactory,streamableFileFactory,filePersistenceThread,sharedObjectService,streamService,providerService,consumerService,schedulingService,warDeployService,remotingClient,object.cache,keyframe.cache,flv.impl,flvreader.impl,mp4reader.impl,mp3reader.impl,org.springframework.beans.factory.config.MethodInvokingFactoryBean#0,org.springframework.beans.factory.config.MethodInvokingFactoryBean#1,streamExecutor,fileConsumer,playlistSubscriberStream,clientBroadcastStream]; root of factory hierarchy
2013-01-08 09:28:03,489 [main] INFO  o.s.r.rmi.RmiRegistryFactoryBean - Creating new RMI registry
............................

I have turned off the firewall and removed all references to localhost and 127.0.0.1 in red5.properties. 

I wonder now how I can get over this step? Turn off RMI? if yes how?

Thanks again for your help,
Mark






2013/1/7 mpedrats <mped...@gmail.com>

mpedrats

unread,
Jan 9, 2013, 5:07:39 AM1/9/13
to red5in...@googlegroups.com
Hi,
 
I have now turned on DEBUG in logback.xml for Spring and it gives me this additional info:

[DEBUG] [main] org.springframework.beans.factory.support.DefaultListableBeanFactory - Finished creating instance of bean 'rmiRegistry'
[DEBUG] [main] org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'mbeanServer'
[DEBUG] [main] org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating instance of bean 'mbeanServer'
[DEBUG] [main] org.springframework.beans.factory.support.DefaultListableBeanFactory - Eagerly caching bean 'mbeanServer' to allow for resolving potential circular references
[DEBUG] [main] org.springframework.core.env.StandardEnvironment - Initializing new StandardEnvironment
[DEBUG] [main] org.springframework.core.env.StandardEnvironment - Adding [systemProperties] PropertySource with lowest search precedence
[DEBUG] [main] org.springframework.core.env.StandardEnvironment - Adding [systemEnvironment] PropertySource with lowest search precedence
[DEBUG] [main] org.springframework.core.env.StandardEnvironment - Initialized StandardEnvironment with PropertySources [systemProperties,systemEnvironment]
[DEBUG] [main] org.springframework.core.env.StandardEnvironment - Initializing new StandardEnvironment
[DEBUG] [main] org.springframework.core.env.StandardEnvironment - Adding [systemProperties] PropertySource with lowest search precedence
[DEBUG] [main] org.springframework.core.env.StandardEnvironment - Adding [systemEnvironment] PropertySource with lowest search precedence
[DEBUG] [main] org.springframework.core.env.StandardEnvironment - Initialized StandardEnvironment with PropertySources [systemProperties,systemEnvironment]
[DEBUG] [main] org.springframework.core.env.StandardEnvironment - Initializing new StandardEnvironment
[DEBUG] [main] org.springframework.core.env.StandardEnvironment - Adding [systemProperties] PropertySource with lowest search precedence
[DEBUG] [main] org.springframework.core.env.StandardEnvironment - Adding [systemEnvironment] PropertySource with lowest search precedence
[DEBUG] [main] org.springframework.core.env.StandardEnvironment - Initialized StandardEnvironment with PropertySources [systemProperties,systemEnvironment]
[DEBUG] [main] org.springframework.core.env.StandardEnvironment - Initializing new StandardEnvironment
[DEBUG] [main] org.springframework.core.env.StandardEnvironment - Adding [systemProperties] PropertySource with lowest search precedence
[DEBUG] [main] org.springframework.core.env.StandardEnvironment - Adding [systemEnvironment] PropertySource with lowest search precedence
[DEBUG] [main] org.springframework.core.env.StandardEnvironment - Initialized StandardEnvironment with PropertySources [systemProperties,systemEnvironment]
[DEBUG] [main] org.springframework.core.env.StandardEnvironment - Initializing new StandardEnvironment
[DEBUG] [main] org.springframework.core.env.StandardEnvironment - Adding [systemProperties] PropertySource with lowest search precedence
[DEBUG] [main] org.springframework.core.env.StandardEnvironment - Adding [systemEnvironment] PropertySource with lowest search precedence
[DEBUG] [main] org.springframework.core.env.StandardEnvironment - Initialized StandardEnvironment with PropertySources [systemProperties,systemEnvironment]
[DEBUG] [main] org.springframework.beans.factory.support.DefaultListableBeanFactory - Invoking afterPropertiesSet() on bean with name 'mbeanServer'
[DEBUG] [main] org.springframework.jmx.support.JmxUtils - Found MBeanServer: com.sun.jmx.mbeanserver.JmxMBeanServer@6b9c84
[DEBUG] [main] org.springframework.beans.factory.support.DefaultListableBeanFactory - Finished creating instance of bean 'mbeanServer'
[DEBUG] [main] org.springframework.beans.factory.support.DefaultListableBeanFactory - Returning cached instance of singleton bean 'rmiRegistry'
[DEBUG] [main] org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'org.springframework.jmx.support.ConnectorServerFactoryBean#0'
[DEBUG] [main] org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating instance of bean 'org.springframework.jmx.support.ConnectorServerFactoryBean#0'
[DEBUG] [main] org.springframework.beans.factory.support.DefaultListableBeanFactory - Eagerly caching bean 'org.springframework.jmx.support.ConnectorServerFactoryBean#0' to allow for resolving potential circular references
[DEBUG] [main] org.springframework.core.env.StandardEnvironment - Initializing new StandardEnvironment
[DEBUG] [main] org.springframework.core.env.StandardEnvironment - Adding [systemProperties] PropertySource with lowest search precedence
[DEBUG] [main] org.springframework.core.env.StandardEnvironment - Adding [systemEnvironment] PropertySource with lowest search precedence
[DEBUG] [main] org.springframework.core.env.StandardEnvironment - Initialized StandardEnvironment with PropertySources [systemProperties,systemEnvironment]
[DEBUG] [main] org.springframework.core.env.StandardEnvironment - Initializing new StandardEnvironment
[DEBUG] [main] org.springframework.core.env.StandardEnvironment - Adding [systemProperties] PropertySource with lowest search precedence
[DEBUG] [main] org.springframework.core.env.StandardEnvironment - Adding [systemEnvironment] PropertySource with lowest search precedence
[DEBUG] [main] org.springframework.core.env.StandardEnvironment - Initialized StandardEnvironment with PropertySources [systemProperties,systemEnvironment]
[DEBUG] [main] org.springframework.core.env.StandardEnvironment - Initializing new StandardEnvironment
[DEBUG] [main] org.springframework.core.env.StandardEnvironment - Adding [systemProperties] PropertySource with lowest search precedence
[DEBUG] [main] org.springframework.core.env.StandardEnvironment - Adding [systemEnvironment] PropertySource with lowest search precedence
[DEBUG] [main] org.springframework.core.env.StandardEnvironment - Initialized StandardEnvironment with PropertySources [systemProperties,systemEnvironment]
[DEBUG] [main] org.springframework.core.env.StandardEnvironment - Initializing new StandardEnvironment
[DEBUG] [main] org.springframework.core.env.StandardEnvironment - Adding [systemProperties] PropertySource with lowest search precedence
[DEBUG] [main] org.springframework.core.env.StandardEnvironment - Adding [systemEnvironment] PropertySource with lowest search precedence
[DEBUG] [main] org.springframework.core.env.StandardEnvironment - Initialized StandardEnvironment with PropertySources [systemProperties,systemEnvironment]
[DEBUG] [main] org.springframework.core.env.StandardEnvironment - Initializing new StandardEnvironment
[DEBUG] [main] org.springframework.core.env.StandardEnvironment - Adding [systemProperties] PropertySource with lowest search precedence
[DEBUG] [main] org.springframework.core.env.StandardEnvironment - Adding [systemEnvironment] PropertySource with lowest search precedence
[DEBUG] [main] org.springframework.core.env.StandardEnvironment - Initialized StandardEnvironment with PropertySources [systemProperties,systemEnvironment]
[DEBUG] [main] org.springframework.beans.factory.support.DefaultListableBeanFactory - Invoking afterPropertiesSet() on bean with name 'org.springframework.jmx.support.ConnectorServerFactoryBean#0'
[DEBUG] [main] org.springframework.jmx.support.JmxUtils - Found MBeanServer: com.sun.jmx.mbeanserver.JmxMBeanServer@6b9c84


Does anyone have an idea why the startup gets stuck here?

Thanks for you help,
Markus



2013/1/8 mpedrats <mped...@gmail.com>

Mondain

unread,
Jan 9, 2013, 11:45:19 AM1/9/13
to red5in...@googlegroups.com
Which JDK are you using?

Xiaoming Wang

unread,
Jan 9, 2013, 11:48:12 AM1/9/13
to red5in...@googlegroups.com
jdk1.7.0_05

--
 
 
 

Mondain

unread,
Jan 9, 2013, 11:53:59 AM1/9/13
to red5in...@googlegroups.com
Are you using the tarball from: http://red5.org/downloads/red5/1_0/red5-1.0.0.tar.gz
or did you compile the source? I'm really kind of stumped with your situation since I just installed red5 on Ubuntu 12.10 and had no issues whatsoever.

Xiaoming Wang

unread,
Jan 9, 2013, 11:59:31 AM1/9/13
to red5in...@googlegroups.com
url:http://red5.org/downloads/red5/1_0/

I click link setup-Red5-1.0.0.exe


--
 
 
 

Xiaoming Wang

unread,
Jan 9, 2013, 12:03:07 PM1/9/13
to red5in...@googlegroups.com
platform is  windowsserver 2008(x64) v.6 (build 6002: service pack 2)

mpedrats

unread,
Jan 9, 2013, 4:08:39 PM1/9/13
to red5in...@googlegroups.com
Hi Paul,

I am currently using openjdk-6-jre-headless but have also tried openjdk 1.6, sun jdk 1.6, openjkd 1.7 and oracle jdk 1.7. before

The server I am using is a virtual server at an ISP. I did a fresh install today and installed red5 with these commands:

% sudo apt-get install openjdk-6-jre-headless
% cd /opt
% tar xvfz red5-1.0.0.tar.gz
% mv red5-1.0.0-build-jenkins-red5-226 red5
% cd red5
% ./red5.sh

I have again disabled the firewall and changed the https port from 8443 (used by plesk)  to 8444 in red5.properties.

This is the output:

root@h2119047:/opt/red5# ./red5.sh
Running on  Linux
Starting Red5
Red5 root: /opt/red5
Configuation root: /opt/red5/conf
Selected libraries: (53 items)
file:/opt/red5/red5.jar
file:/opt/red5/lib/jruby-1.6.7.2.jar
file:/opt/red5/lib/javaee-api-5.1.2.jar
file:/opt/red5/lib/sysout-over-slf4j-1.0.2.jar
file:/opt/red5/lib/spring-asm-3.1.1.RELEASE.jar
file:/opt/red5/lib/httpclient-4.2.jar
file:/opt/red5/lib/jcl-over-slf4j-1.6.6.jar
file:/opt/red5/lib/com.springsource.org.antlr-3.1.3.jar
file:/opt/red5/lib/jython-standalone-2.5.2.jar
file:/opt/red5/lib/bcprov-jdk15on-1.47.jar
file:/opt/red5/lib/spring-expression-3.1.1.RELEASE.jar
file:/opt/red5/lib/commons-modeler-2.0.1.jar
file:/opt/red5/lib/httpcore-4.2.1.jar
file:/opt/red5/lib/com.springsource.net.sf.cglib-2.2.0.jar
file:/opt/red5/lib/commons-collections-3.2.1.jar
file:/opt/red5/lib/spring-web-3.1.1.RELEASE.jar
file:/opt/red5/lib/spring-context-support-3.1.1.RELEASE.jar
file:/opt/red5/lib/mina-core-2.0.5.jar
file:/opt/red5/lib/com.springsource.org.apache.xerces-2.9.1.jar
file:/opt/red5/lib/spring-context-3.1.1.RELEASE.jar
file:/opt/red5/lib/mina-integration-jmx-2.0.5.jar
file:/opt/red5/lib/logback-classic-1.0.3.jar
file:/opt/red5/lib/slf4j-api-1.6.6.jar
file:/opt/red5/lib/com.springsource.org.codehaus.groovy-1.7.0.jar
file:/opt/red5/lib/jul-to-slf4j-1.6.6.jar
file:/opt/red5/lib/commons-lang3-3.1.jar
file:/opt/red5/lib/jaudiotagger-2.0.4-SNAPSHOT.jar
file:/opt/red5/lib/spring-aop-3.1.1.RELEASE.jar
file:/opt/red5/lib/logback-core-1.0.3.jar
file:/opt/red5/lib/spring-beans-3.1.1.RELEASE.jar
file:/opt/red5/lib/log4j-over-slf4j-1.6.6.jar
file:/opt/red5/lib/commons-beanutils-1.8.3.jar
file:/opt/red5/lib/commons-codec-1.6.jar
file:/opt/red5/lib/com.springsource.org.aopalliance-1.0.0.jar
file:/opt/red5/lib/commons-pool-1.5.6.jar
file:/opt/red5/lib/com.springsource.javax.xml.stream-1.0.1.jar
file:/opt/red5/lib/com.springsource.org.mozilla.javascript-1.7.0.R2.jar
file:/opt/red5/lib/mina-integration-beans-2.0.5.jar
file:/opt/red5/lib/xmlrpc-2.0.1.jar
file:/opt/red5/lib/com.springsource.org.objectweb.asm.commons-3.2.0.jar
file:/opt/red5/lib/ehcache-core-2.5.0.jar
file:/opt/red5/lib/com.springsource.org.objectweb.asm-3.2.0.jar
file:/opt/red5/lib/spring-core-3.1.1.RELEASE.jar
file:/opt/red5/lib/quartz-1.8.5.jar
file:/opt/red5/conf/
file:/opt/red5/plugins/
file:/opt/red5/plugins/jasper-el-6.0.36.jar
file:/opt/red5/plugins/tomcat-coyote-6.0.36.jar
file:/opt/red5/plugins/jasper-6.0.36.jar
file:/opt/red5/plugins/catalina-6.0.36.jar
file:/opt/red5/plugins/tomcatplugin-1.3.jar
file:/opt/red5/plugins/ecj-3.7.2.jar
file:/opt/red5/plugins/tomcat-juli-slf4j-1.5.0.jar

Root: /opt/red5
Deploy type: bootstrap
Logback selector: org.red5.logging.LoggingContextSelector

on a second run I get this output:

root@h2119047:/opt/red5# ./red5.sh
Running on  Linux
Starting Red5
Red5 root: /opt/red5
Configuation root: /opt/red5/conf
Selected libraries: (53 items)
file:/opt/red5/red5.jar
file:/opt/red5/lib/jruby-1.6.7.2.jar
file:/opt/red5/lib/javaee-api-5.1.2.jar
file:/opt/red5/lib/sysout-over-slf4j-1.0.2.jar
file:/opt/red5/lib/spring-asm-3.1.1.RELEASE.jar
file:/opt/red5/lib/httpclient-4.2.jar
file:/opt/red5/lib/jcl-over-slf4j-1.6.6.jar
file:/opt/red5/lib/com.springsource.org.antlr-3.1.3.jar
file:/opt/red5/lib/jython-standalone-2.5.2.jar
file:/opt/red5/lib/bcprov-jdk15on-1.47.jar
file:/opt/red5/lib/spring-expression-3.1.1.RELEASE.jar
file:/opt/red5/lib/commons-modeler-2.0.1.jar
file:/opt/red5/lib/httpcore-4.2.1.jar
file:/opt/red5/lib/com.springsource.net.sf.cglib-2.2.0.jar
file:/opt/red5/lib/commons-collections-3.2.1.jar
file:/opt/red5/lib/spring-web-3.1.1.RELEASE.jar
file:/opt/red5/lib/spring-context-support-3.1.1.RELEASE.jar
file:/opt/red5/lib/mina-core-2.0.5.jar
file:/opt/red5/lib/com.springsource.org.apache.xerces-2.9.1.jar
file:/opt/red5/lib/spring-context-3.1.1.RELEASE.jar
file:/opt/red5/lib/mina-integration-jmx-2.0.5.jar
file:/opt/red5/lib/logback-classic-1.0.3.jar
file:/opt/red5/lib/slf4j-api-1.6.6.jar
file:/opt/red5/lib/com.springsource.org.codehaus.groovy-1.7.0.jar
file:/opt/red5/lib/jul-to-slf4j-1.6.6.jar
file:/opt/red5/lib/commons-lang3-3.1.jar
file:/opt/red5/lib/jaudiotagger-2.0.4-SNAPSHOT.jar
file:/opt/red5/lib/spring-aop-3.1.1.RELEASE.jar
file:/opt/red5/lib/logback-core-1.0.3.jar
file:/opt/red5/lib/spring-beans-3.1.1.RELEASE.jar
file:/opt/red5/lib/log4j-over-slf4j-1.6.6.jar
file:/opt/red5/lib/commons-beanutils-1.8.3.jar
file:/opt/red5/lib/commons-codec-1.6.jar
file:/opt/red5/lib/com.springsource.org.aopalliance-1.0.0.jar
file:/opt/red5/lib/commons-pool-1.5.6.jar
file:/opt/red5/lib/com.springsource.javax.xml.stream-1.0.1.jar
file:/opt/red5/lib/com.springsource.org.mozilla.javascript-1.7.0.R2.jar
file:/opt/red5/lib/mina-integration-beans-2.0.5.jar
file:/opt/red5/lib/xmlrpc-2.0.1.jar
file:/opt/red5/lib/com.springsource.org.objectweb.asm.commons-3.2.0.jar
file:/opt/red5/lib/ehcache-core-2.5.0.jar
file:/opt/red5/lib/com.springsource.org.objectweb.asm-3.2.0.jar
file:/opt/red5/lib/spring-core-3.1.1.RELEASE.jar
file:/opt/red5/lib/quartz-1.8.5.jar
file:/opt/red5/conf/
file:/opt/red5/plugins/
file:/opt/red5/plugins/jasper-el-6.0.36.jar
file:/opt/red5/plugins/tomcat-coyote-6.0.36.jar
file:/opt/red5/plugins/jasper-6.0.36.jar
file:/opt/red5/plugins/catalina-6.0.36.jar
file:/opt/red5/plugins/tomcatplugin-1.3.jar
file:/opt/red5/plugins/ecj-3.7.2.jar
file:/opt/red5/plugins/tomcat-juli-slf4j-1.5.0.jar

Root: /opt/red5
Deploy type: bootstrap
Logback selector: org.red5.logging.LoggingContextSelector
20:59:46,206 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback.groovy]
20:59:46,206 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback-test.xml]
20:59:46,206 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Found resource [logback.xml] at [file:/opt/red5/conf/logback.xml]
20:59:46,207 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource [logback.xml] occurs multiple times on the classpath.
20:59:46,207 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource [logback.xml] occurs at [file:/opt/red5/conf/logback.xml]
20:59:46,207 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource [logback.xml] occurs at [file:/opt/red5/conf/logback.xml]
20:59:46,510 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - debug attribute not set
20:59:46,511 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.ConsoleAppender]
20:59:46,516 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [CONSOLE]
20:59:46,571 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property
20:59:46,614 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.FileAppender]
20:59:46,616 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [FILE]
20:59:46,620 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property
20:59:46,676 |-INFO in ch.qos.logback.core.FileAppender[FILE] - File property is set to [log/red5.log]
20:59:46,678 |-INFO in ch.qos.logback.classic.joran.action.LevelAction - ROOT level set to INFO
20:59:46,678 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [CONSOLE] to Logger[ROOT]
20:59:46,679 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [FILE] to Logger[ROOT]
20:59:46,679 |-INFO in ch.qos.logback.classic.joran.action.LevelAction - org.springframework level set to INFO
20:59:46,679 |-INFO in ch.qos.logback.classic.joran.action.LevelAction - org.apache level set to INFO
20:59:46,679 |-INFO in ch.qos.logback.classic.joran.action.LevelAction - ch.qos level set to WARN
20:59:46,679 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - End of configuration.
20:59:46,680 |-INFO in ch.qos.logback.classic.joran.JoranConfigurator@50d89c - Registering current configuration as safe fallback point

Setting default logging context: default
[INFO] [main] org.red5.server.Launcher - Red5 Server 1.0.0 $Rev: 4450 $ (http://code.google.com/p/red5/)
Red5 Server 1.0.0 $Rev: 4450 $ (http://code.google.com/p/red5/)
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/opt/red5/red5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/opt/red5/lib/logback-classic-1.0.3.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Actual binding is of type [org.red5.logging.LoggingContextSelector]
[INFO] [main] org.springframework.context.support.FileSystemXmlApplicationContext - Refreshing org.springframework.context.support.FileSystemXmlApplicationContext@77158a: startup date [Wed Jan 09 20:59:46 UTC 2013]; root of context hierarchy
[INFO] [main] org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from class path resource [red5.xml]
[INFO] [main] org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from class path resource [jee-container.xml]
[INFO] [main] org.springframework.beans.factory.config.PropertyPlaceholderConfigurer - Loading properties file from class path resource [red5.properties]
[INFO] [main] org.springframework.beans.factory.support.DefaultListableBeanFactory - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@f47396: defining beans [placeholderConfig,red5.common,red5.core,context.loader,pluginLauncher,tomcat.server]; root of factory hierarchy
[INFO] [main] org.springframework.context.support.FileSystemXmlApplicationContext - Refreshing org.springframework.context.support.FileSystemXmlApplicationContext@14e8cee: startup date [Wed Jan 09 20:59:47 UTC 2013]; root of context hierarchy
[INFO] [main] org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from class path resource [red5-common.xml]
[INFO] [main] org.springframework.beans.factory.config.PropertyPlaceholderConfigurer - Loading properties file from class path resource [red5.properties]
[INFO] [main] org.springframework.beans.factory.support.DefaultListableBeanFactory - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@cf66b: defining beans [placeholderConfig,red5.server,rmiRegistry,mbeanServer,org.springframework.jmx.support.ConnectorServerFactoryBean#0,mbeanExporter,serializer,deserializer,minaEncoder,minaDecoder,statusObjectService,rtmpCodecFactory,rtmptCodecFactory,remotingCodecFactory,streamableFileFactory,filePersistenceThread,sharedObjectService,streamService,providerService,consumerService,schedulingService,warDeployService,remotingClient,object.cache,keyframe.cache,flv.impl,flvreader.impl,mp4reader.impl,mp3reader.impl,org.springframework.beans.factory.config.MethodInvokingFactoryBean#0,org.springframework.beans.factory.config.MethodInvokingFactoryBean#1,streamExecutor,fileConsumer,playlistSubscriberStream,clientBroadcastStream]; root of factory hierarchy
[INFO] [main] org.springframework.remoting.rmi.RmiRegistryFactoryBean - Creating new RMI registry

I am on ubuntu 12.04. Previously I have run on the same server ubuntu 8.04 and Red5 0.9.0 and 0.9.1. successfully.

There is probably an issue with the environment/the server setup. 

Unfortunately the startup log does not give a conclusive indication as to what is going wrong.

This is a test server, if you would like to have a look I would be more than happy to give you the root password. I am pretty much out of ideas on what alse to try.

Thanks,
Markus




2013/1/9 Xiaoming Wang <xiaomi...@telmatik.com>
--
 
 
 

Mondain

unread,
Jan 9, 2013, 5:11:41 PM1/9/13
to red5in...@googlegroups.com
On ubuntu servers I always use:
sudo apt-get install openjdk-6-jdk openjdk-6-jre

I never use headless, nor "jre" only.

mpedrats

unread,
Jan 10, 2013, 5:48:34 AM1/10/13
to red5in...@googlegroups.com
Hi,

I have also tried this but it didn't work.

Nevertheless I wanted to confirm that and I did a re-install. This time ubuntu 12.04 without plesk to exclude any interference (as root).

Following are the steps I have used:
% sudo apt-get install openjdk-6-jdk openjdk-6-jre
% cd /opt
% wget http://red5.org/downloads/red5/1_0/red5-1.0.0.tar.gz

% tar xvfz red5-1.0.0.tar.gz
% mv red5-1.0.0-build-jenkins-red5-226 red5
% cd red5
% ./red5.sh

Startup Log first run:

root@h2119047:/opt/red5# ./red5.sh
Running on  Linux
Starting Red5
Red5 root: /opt/red5
Configuation root: /opt/red5/conf
Selected libraries: (53 items)
file:/opt/red5/red5.jar
file:/opt/red5/lib/commons-beanutils-1.8.3.jar
file:/opt/red5/lib/com.springsource.javax.xml.stream-1.0.1.jar
file:/opt/red5/lib/xmlrpc-2.0.1.jar
file:/opt/red5/lib/spring-context-3.1.1.RELEASE.jar
file:/opt/red5/lib/jruby-1.6.7.2.jar
file:/opt/red5/lib/spring-aop-3.1.1.RELEASE.jar
file:/opt/red5/lib/com.springsource.org.mozilla.javascript-1.7.0.R2.jar
file:/opt/red5/lib/com.springsource.net.sf.cglib-2.2.0.jar
file:/opt/red5/lib/commons-pool-1.5.6.jar
file:/opt/red5/lib/slf4j-api-1.6.6.jar
file:/opt/red5/lib/commons-modeler-2.0.1.jar
file:/opt/red5/lib/logback-classic-1.0.3.jar
file:/opt/red5/lib/mina-core-2.0.5.jar
file:/opt/red5/lib/com.springsource.org.antlr-3.1.3.jar
file:/opt/red5/lib/com.springsource.org.objectweb.asm-3.2.0.jar
file:/opt/red5/lib/log4j-over-slf4j-1.6.6.jar
file:/opt/red5/lib/bcprov-jdk15on-1.47.jar
file:/opt/red5/lib/com.springsource.org.apache.xerces-2.9.1.jar
file:/opt/red5/lib/spring-context-support-3.1.1.RELEASE.jar
file:/opt/red5/lib/quartz-1.8.5.jar
file:/opt/red5/lib/commons-codec-1.6.jar
file:/opt/red5/lib/com.springsource.org.aopalliance-1.0.0.jar
file:/opt/red5/lib/jaudiotagger-2.0.4-SNAPSHOT.jar
file:/opt/red5/lib/com.springsource.org.codehaus.groovy-1.7.0.jar
file:/opt/red5/lib/spring-beans-3.1.1.RELEASE.jar
file:/opt/red5/lib/spring-web-3.1.1.RELEASE.jar
file:/opt/red5/lib/httpclient-4.2.jar
file:/opt/red5/lib/mina-integration-beans-2.0.5.jar
file:/opt/red5/lib/sysout-over-slf4j-1.0.2.jar
file:/opt/red5/lib/mina-integration-jmx-2.0.5.jar
file:/opt/red5/lib/jcl-over-slf4j-1.6.6.jar
file:/opt/red5/lib/spring-asm-3.1.1.RELEASE.jar
file:/opt/red5/lib/ehcache-core-2.5.0.jar
file:/opt/red5/lib/commons-collections-3.2.1.jar
file:/opt/red5/lib/spring-expression-3.1.1.RELEASE.jar
file:/opt/red5/lib/commons-lang3-3.1.jar
file:/opt/red5/lib/javaee-api-5.1.2.jar
file:/opt/red5/lib/jul-to-slf4j-1.6.6.jar
file:/opt/red5/lib/com.springsource.org.objectweb.asm.commons-3.2.0.jar
file:/opt/red5/lib/spring-core-3.1.1.RELEASE.jar
file:/opt/red5/lib/logback-core-1.0.3.jar
file:/opt/red5/lib/httpcore-4.2.1.jar
file:/opt/red5/lib/jython-standalone-2.5.2.jar
file:/opt/red5/conf/
file:/opt/red5/plugins/
file:/opt/red5/plugins/tomcatplugin-1.3.jar
file:/opt/red5/plugins/catalina-6.0.36.jar
file:/opt/red5/plugins/tomcat-coyote-6.0.36.jar
file:/opt/red5/plugins/jasper-el-6.0.36.jar
file:/opt/red5/plugins/tomcat-juli-slf4j-1.5.0.jar
file:/opt/red5/plugins/jasper-6.0.36.jar
file:/opt/red5/plugins/ecj-3.7.2.jar

Root: /opt/red5
Deploy type: bootstrap
Logback selector: org.red5.logging.LoggingContextSelector
_______________________________________________________________________________

No further message :-(

I kill the process and re-issue red5.sh

The log now is:

root@h2119047:/opt/red5# ./red5.sh
Running on  Linux
Starting Red5
Red5 root: /opt/red5
Configuation root: /opt/red5/conf
Selected libraries: (53 items)
file:/opt/red5/red5.jar
file:/opt/red5/lib/commons-beanutils-1.8.3.jar
file:/opt/red5/lib/com.springsource.javax.xml.stream-1.0.1.jar
file:/opt/red5/lib/xmlrpc-2.0.1.jar
file:/opt/red5/lib/spring-context-3.1.1.RELEASE.jar
file:/opt/red5/lib/jruby-1.6.7.2.jar
file:/opt/red5/lib/spring-aop-3.1.1.RELEASE.jar
file:/opt/red5/lib/com.springsource.org.mozilla.javascript-1.7.0.R2.jar
file:/opt/red5/lib/com.springsource.net.sf.cglib-2.2.0.jar
file:/opt/red5/lib/commons-pool-1.5.6.jar
file:/opt/red5/lib/slf4j-api-1.6.6.jar
file:/opt/red5/lib/commons-modeler-2.0.1.jar
file:/opt/red5/lib/logback-classic-1.0.3.jar
file:/opt/red5/lib/mina-core-2.0.5.jar
file:/opt/red5/lib/com.springsource.org.antlr-3.1.3.jar
file:/opt/red5/lib/com.springsource.org.objectweb.asm-3.2.0.jar
file:/opt/red5/lib/log4j-over-slf4j-1.6.6.jar
file:/opt/red5/lib/bcprov-jdk15on-1.47.jar
file:/opt/red5/lib/com.springsource.org.apache.xerces-2.9.1.jar
file:/opt/red5/lib/spring-context-support-3.1.1.RELEASE.jar
file:/opt/red5/lib/quartz-1.8.5.jar
file:/opt/red5/lib/commons-codec-1.6.jar
file:/opt/red5/lib/com.springsource.org.aopalliance-1.0.0.jar
file:/opt/red5/lib/jaudiotagger-2.0.4-SNAPSHOT.jar
file:/opt/red5/lib/com.springsource.org.codehaus.groovy-1.7.0.jar
file:/opt/red5/lib/spring-beans-3.1.1.RELEASE.jar
file:/opt/red5/lib/spring-web-3.1.1.RELEASE.jar
file:/opt/red5/lib/httpclient-4.2.jar
file:/opt/red5/lib/mina-integration-beans-2.0.5.jar
file:/opt/red5/lib/sysout-over-slf4j-1.0.2.jar
file:/opt/red5/lib/mina-integration-jmx-2.0.5.jar
file:/opt/red5/lib/jcl-over-slf4j-1.6.6.jar
file:/opt/red5/lib/spring-asm-3.1.1.RELEASE.jar
file:/opt/red5/lib/ehcache-core-2.5.0.jar
file:/opt/red5/lib/commons-collections-3.2.1.jar
file:/opt/red5/lib/spring-expression-3.1.1.RELEASE.jar
file:/opt/red5/lib/commons-lang3-3.1.jar
file:/opt/red5/lib/javaee-api-5.1.2.jar
file:/opt/red5/lib/jul-to-slf4j-1.6.6.jar
file:/opt/red5/lib/com.springsource.org.objectweb.asm.commons-3.2.0.jar
file:/opt/red5/lib/spring-core-3.1.1.RELEASE.jar
file:/opt/red5/lib/logback-core-1.0.3.jar
file:/opt/red5/lib/httpcore-4.2.1.jar
file:/opt/red5/lib/jython-standalone-2.5.2.jar
file:/opt/red5/conf/
file:/opt/red5/plugins/
file:/opt/red5/plugins/tomcatplugin-1.3.jar
file:/opt/red5/plugins/catalina-6.0.36.jar
file:/opt/red5/plugins/tomcat-coyote-6.0.36.jar
file:/opt/red5/plugins/jasper-el-6.0.36.jar
file:/opt/red5/plugins/tomcat-juli-slf4j-1.5.0.jar
file:/opt/red5/plugins/jasper-6.0.36.jar
file:/opt/red5/plugins/ecj-3.7.2.jar

Root: /opt/red5
Deploy type: bootstrap
Logback selector: org.red5.logging.LoggingContextSelector
10:38:21,397 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback.groovy]
10:38:21,398 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback-test.xml]
10:38:21,398 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Found resource [logback.xml] at [file:/opt/red5/conf/logback.xml]
10:38:21,399 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource [logback.xml] occurs multiple times on the classpath.
10:38:21,399 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource [logback.xml] occurs at [file:/opt/red5/conf/logback.xml]
10:38:21,399 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource [logback.xml] occurs at [file:/opt/red5/conf/logback.xml]
10:38:21,699 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - debug attribute not set
10:38:21,701 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.ConsoleAppender]
10:38:21,705 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [CONSOLE]
10:38:21,730 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property
10:38:21,807 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.FileAppender]
10:38:21,809 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [FILE]
10:38:21,812 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property
10:38:21,820 |-INFO in ch.qos.logback.core.FileAppender[FILE] - File property is set to [log/red5.log]
10:38:21,870 |-INFO in ch.qos.logback.classic.joran.action.LevelAction - ROOT level set to INFO
10:38:21,871 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [CONSOLE] to Logger[ROOT]
10:38:21,871 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [FILE] to Logger[ROOT]
10:38:21,872 |-INFO in ch.qos.logback.classic.joran.action.LevelAction - org.springframework level set to INFO
10:38:21,872 |-INFO in ch.qos.logback.classic.joran.action.LevelAction - org.apache level set to INFO
10:38:21,872 |-INFO in ch.qos.logback.classic.joran.action.LevelAction - ch.qos level set to WARN
10:38:21,872 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - End of configuration.
10:38:21,873 |-INFO in ch.qos.logback.classic.joran.JoranConfigurator@50d89c - Registering current configuration as safe fallback point

Setting default logging context: default
[INFO] [main] org.red5.server.Launcher - Red5 Server 1.0.0 $Rev: 4450 $ (http://code.google.com/p/red5/)
Red5 Server 1.0.0 $Rev: 4450 $ (http://code.google.com/p/red5/)
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/opt/red5/red5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/opt/red5/lib/logback-classic-1.0.3.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Actual binding is of type [org.red5.logging.LoggingContextSelector]
[INFO] [main] org.springframework.context.support.FileSystemXmlApplicationContext - Refreshing org.springframework.context.support.FileSystemXmlApplicationContext@77158a: startup date [Thu Jan 10 10:38:22 UTC 2013]; root of context hierarchy
[INFO] [main] org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from class path resource [red5.xml]
[INFO] [main] org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from class path resource [jee-container.xml]
[INFO] [main] org.springframework.beans.factory.config.PropertyPlaceholderConfigurer - Loading properties file from class path resource [red5.properties]
[INFO] [main] org.springframework.beans.factory.support.DefaultListableBeanFactory - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@f47396: defining beans [placeholderConfig,red5.common,red5.core,context.loader,pluginLauncher,tomcat.server]; root of factory hierarchy
[INFO] [main] org.springframework.context.support.FileSystemXmlApplicationContext - Refreshing org.springframework.context.support.FileSystemXmlApplicationContext@14e8cee: startup date [Thu Jan 10 10:38:22 UTC 2013]; root of context hierarchy
[INFO] [main] org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from class path resource [red5-common.xml]
[INFO] [main] org.springframework.beans.factory.config.PropertyPlaceholderConfigurer - Loading properties file from class path resource [red5.properties]
[INFO] [main] org.springframework.beans.factory.support.DefaultListableBeanFactory - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@cf66b: defining beans [placeholderConfig,red5.server,rmiRegistry,mbeanServer,org.springframework.jmx.support.ConnectorServerFactoryBean#0,mbeanExporter,serializer,deserializer,minaEncoder,minaDecoder,statusObjectService,rtmpCodecFactory,rtmptCodecFactory,remotingCodecFactory,streamableFileFactory,filePersistenceThread,sharedObjectService,streamService,providerService,consumerService,schedulingService,warDeployService,remotingClient,object.cache,keyframe.cache,flv.impl,flvreader.impl,mp4reader.impl,mp3reader.impl,org.springframework.beans.factory.config.MethodInvokingFactoryBean#0,org.springframework.beans.factory.config.MethodInvokingFactoryBean#1,streamExecutor,fileConsumer,playlistSubscriberStream,clientBroadcastStream]; root of factory hierarchy
[INFO] [main] org.springframework.remoting.rmi.RmiRegistryFactoryBean - Creating new RMI registry
_________________________________________________________________________________________

Now I do:

root@h2119047:~# netstat -an | grep LISTEN
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN
tcp6       0      0 :::9999                 :::*                    LISTEN
tcp6       0      0 :::22                   :::*                    LISTEN
tcp6       0      0 :::45437                :::*                    LISTEN
unix  2      [ ACC ]     STREAM     LISTENING     515687759 @/com/ubuntu/upstart
unix  2      [ ACC ]     SEQPACKET  LISTENING     515688169 /run/udev/control

It looks like the RMI services has been started and is listening on 9999 but nothing else :-(

Any ideas? 

Thanks again a lot for your help,
Markus













2013/1/9 Mondain <mon...@gmail.com>

Walter Tak

unread,
Jan 10, 2013, 7:16:41 AM1/10/13
to red5in...@googlegroups.com
FYI if you restart Red5 too fast then the port (1935) could still be in use, so after stopping (and making sure the process really has been killed, use ps aux | grep java on Unix) wait a few seconds. Check with netstat -an if there is anything (still) listening on 1935.

Another thing you could check ; is your classpath clean and pointing to the latest installed JRE that you intend to use ?

I also found that sometimes re-installing a new JRE or JDK does not update the alternative links so 'java xxx.jar' could still be linked to an old directory.

W.

--
 
 
 

mpedrats

unread,
Jan 10, 2013, 8:50:26 AM1/10/13
to red5in...@googlegroups.com
Hi Walter,
thanks for you feedback. 

Here my findings to your suggestions:

- the startup never goes as far as starting the rmtp service. I double checked that with netstat. It only start the rmi service on 9999 .....sometimes.

- classpath seams to be empty. Should there be something?:
        % root@h2119047:/opt/red5# echo $CLASSPATH
         <empty>

- it seams to pick up the right jdk/jre, I confirmed that with:
        % root@h2119047:/opt/red5# java -version
        java version "1.6.0_24"
        OpenJDK Runtime Environment (IcedTea6 1.11.5) (6b24-1.11.5-0ubuntu1~12.04.1)
        OpenJDK Client VM (build 20.0-b12, mixed mode, sharing)

       BTW there is only one jdk installed in this environment, that is openJDK 1.6

More ideas, even remote ones ;-) are very much appreciated.

Thanks,
Markus


2013/1/10 Walter Tak <wal...@waltertak.com>
--
 
 
 

mpedrats

unread,
Jan 10, 2013, 9:17:35 AM1/10/13
to red5in...@googlegroups.com
.... and this is the DEBUG after the RMI registry creation:

[INFO] [main] org.springframework.remoting.rmi.RmiRegistryFactoryBean - Creating new RMI registry
[DEBUG] [main] org.springframework.jmx.support.JmxUtils - Found MBeanServer: com.sun.jmx.mbeanserver.JmxMBeanServer@542529
[DEBUG] [main] org.springframework.jmx.support.JmxUtils - Found MBeanServer: com.sun.jmx.mbeanserver.JmxMBeanServer@542529



2013/1/10 mpedrats <mped...@gmail.com>

Crirus

unread,
Aug 20, 2013, 4:56:54 AM8/20/13
to red5in...@googlegroups.com

Hello

I am facing the same issue ...

Did you find a solution?
Reply all
Reply to author
Forward
0 new messages