Red5 1.0 rc2 on Mac

196 views
Skip to first unread message

Juan Diego

unread,
Nov 28, 2012, 6:39:47 PM11/28/12
to red5in...@googlegroups.com
I am trying to test my app on a Mac (i just need this for developing obviously).

The 0.9.2 version worked fine, but i had some troubles with my app, I think mainly because I tested it with on my pc with red5 1.0.  So I upgrade java 6 to java 7 (sun/oracle) and downloaded the 1.0 RC 2 version for mac and red5 doesnt starts.

This is the error I get

sudo sh red5.sh
Password:
Running on  Darwin
Starting Red5
Red5 root: /Applications/Red5.app/Contents/Resources/Java
Configuation root: /Applications/Red5.app/Contents/Resources/Java/conf
Selected libraries: (67 items)
file:/Applications/Red5.app/Contents/Resources/Java/red5.jar
file:/Applications/Red5.app/Contents/Resources/Java/lib/bcprov-jdk16-145.jar
file:/Applications/Red5.app/Contents/Resources/Java/lib/com.springsource.javax.xml.stream-1.0.1.jar
file:/Applications/Red5.app/Contents/Resources/Java/lib/com.springsource.net.sf.cglib-2.2.0.jar
file:/Applications/Red5.app/Contents/Resources/Java/lib/com.springsource.org.antlr-3.1.3.jar
file:/Applications/Red5.app/Contents/Resources/Java/lib/com.springsource.org.aopalliance-1.0.0.jar
file:/Applications/Red5.app/Contents/Resources/Java/lib/com.springsource.org.apache.commons.codec-1.4.0.jar
file:/Applications/Red5.app/Contents/Resources/Java/lib/com.springsource.org.apache.commons.collections-3.2.1.jar
file:/Applications/Red5.app/Contents/Resources/Java/lib/com.springsource.org.apache.commons.httpclient-3.1.0.jar
file:/Applications/Red5.app/Contents/Resources/Java/lib/com.springsource.org.apache.commons.lang-2.4.0.jar
file:/Applications/Red5.app/Contents/Resources/Java/lib/com.springsource.org.apache.commons.modeler-2.0.1.jar
file:/Applications/Red5.app/Contents/Resources/Java/lib/com.springsource.org.apache.commons.pool-1.5.3.jar
file:/Applications/Red5.app/Contents/Resources/Java/lib/com.springsource.org.apache.xerces-2.9.1.jar
file:/Applications/Red5.app/Contents/Resources/Java/lib/com.springsource.org.codehaus.groovy-1.7.0.jar
file:/Applications/Red5.app/Contents/Resources/Java/lib/com.springsource.org.mozilla.javascript-1.7.0.R2.jar
file:/Applications/Red5.app/Contents/Resources/Java/lib/com.springsource.org.objectweb.asm-3.2.0.jar
file:/Applications/Red5.app/Contents/Resources/Java/lib/com.springsource.org.objectweb.asm.commons-3.2.0.jar
file:/Applications/Red5.app/Contents/Resources/Java/lib/com.springsource.slf4j.api-1.6.1.jar
file:/Applications/Red5.app/Contents/Resources/Java/lib/com.springsource.slf4j.bridge-1.6.1.jar
file:/Applications/Red5.app/Contents/Resources/Java/lib/commons-beanutils-1.8.3.jar
file:/Applications/Red5.app/Contents/Resources/Java/lib/commons-codec-1.6.jar
file:/Applications/Red5.app/Contents/Resources/Java/lib/commons-collections-3.2.1.jar
file:/Applications/Red5.app/Contents/Resources/Java/lib/commons-lang3-3.1.jar
file:/Applications/Red5.app/Contents/Resources/Java/lib/commons-modeler-2.0.1.jar
file:/Applications/Red5.app/Contents/Resources/Java/lib/commons-pool-1.5.6.jar
file:/Applications/Red5.app/Contents/Resources/Java/lib/ehcache-2.2.0.jar
file:/Applications/Red5.app/Contents/Resources/Java/lib/ehcache-core-2.5.0.jar
file:/Applications/Red5.app/Contents/Resources/Java/lib/httpclient-4.1.2.jar
file:/Applications/Red5.app/Contents/Resources/Java/lib/httpcore-4.1.3.jar
file:/Applications/Red5.app/Contents/Resources/Java/lib/jaudiotagger-2.0.4-SNAPSHOT.jar
file:/Applications/Red5.app/Contents/Resources/Java/lib/javaee-api-5.1.2.jar
file:/Applications/Red5.app/Contents/Resources/Java/lib/jcl-over-slf4j-1.6.1.jar
file:/Applications/Red5.app/Contents/Resources/Java/lib/jruby-complete-1.1.6.jar
file:/Applications/Red5.app/Contents/Resources/Java/lib/jul-to-slf4j-1.6.1.jar
file:/Applications/Red5.app/Contents/Resources/Java/lib/jython-2.5.jar
file:/Applications/Red5.app/Contents/Resources/Java/lib/log4j-over-slf4j-1.6.1.jar
file:/Applications/Red5.app/Contents/Resources/Java/lib/logback-classic-0.9.28.jar
file:/Applications/Red5.app/Contents/Resources/Java/lib/logback-core-0.9.28.jar
file:/Applications/Red5.app/Contents/Resources/Java/lib/mina-core-2.0.4.jar
file:/Applications/Red5.app/Contents/Resources/Java/lib/mina-integration-beans-2.0.4.jar
file:/Applications/Red5.app/Contents/Resources/Java/lib/mina-integration-jmx-2.0.4.jar
file:/Applications/Red5.app/Contents/Resources/Java/lib/org.springframework.asm-3.0.5.RELEASE.jar
file:/Applications/Red5.app/Contents/Resources/Java/lib/org.springframework.beans-3.0.5.RELEASE.jar
file:/Applications/Red5.app/Contents/Resources/Java/lib/org.springframework.context-3.0.5.RELEASE.jar
file:/Applications/Red5.app/Contents/Resources/Java/lib/org.springframework.context.support-3.0.5.RELEASE.jar
file:/Applications/Red5.app/Contents/Resources/Java/lib/org.springframework.core-3.0.5.RELEASE.jar
file:/Applications/Red5.app/Contents/Resources/Java/lib/org.springframework.expression-3.0.5.RELEASE.jar
file:/Applications/Red5.app/Contents/Resources/Java/lib/org.springframework.web-3.0.5.RELEASE.jar
file:/Applications/Red5.app/Contents/Resources/Java/lib/quartz-1.8.5.jar
file:/Applications/Red5.app/Contents/Resources/Java/lib/spring-aop-3.1.1.RELEASE.jar
file:/Applications/Red5.app/Contents/Resources/Java/lib/spring-asm-3.1.1.RELEASE.jar
file:/Applications/Red5.app/Contents/Resources/Java/lib/spring-beans-3.1.1.RELEASE.jar
file:/Applications/Red5.app/Contents/Resources/Java/lib/spring-context-3.1.1.RELEASE.jar
file:/Applications/Red5.app/Contents/Resources/Java/lib/spring-context-support-3.1.1.RELEASE.jar
file:/Applications/Red5.app/Contents/Resources/Java/lib/spring-core-3.1.1.RELEASE.jar
file:/Applications/Red5.app/Contents/Resources/Java/lib/spring-expression-3.1.1.RELEASE.jar
file:/Applications/Red5.app/Contents/Resources/Java/lib/spring-web-3.1.1.RELEASE.jar
file:/Applications/Red5.app/Contents/Resources/Java/lib/xmlrpc-2.0.1.jar
file:/Applications/Red5.app/Contents/Resources/Java/conf/
file:/Applications/Red5.app/Contents/Resources/Java/plugins/
file:/Applications/Red5.app/Contents/Resources/Java/plugins/catalina-6.0.32.jar
file:/Applications/Red5.app/Contents/Resources/Java/plugins/jasper-6.0.32.jar
file:/Applications/Red5.app/Contents/Resources/Java/plugins/jasper-el-6.0.32.jar
file:/Applications/Red5.app/Contents/Resources/Java/plugins/jasper-jdt-6.0.29.jar
file:/Applications/Red5.app/Contents/Resources/Java/plugins/tomcat-coyote-6.0.32.jar
file:/Applications/Red5.app/Contents/Resources/Java/plugins/tomcat-juli-slf4j-1.5.0.jar
file:/Applications/Red5.app/Contents/Resources/Java/plugins/tomcatplugin-1.3.jar

Root: /Applications/Red5.app/Contents/Resources/Java
Deploy type: bootstrap
Logback selector: org.red5.logging.LoggingContextSelector
18:37:39,940 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback.groovy]
18:37:39,941 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback-test.xml]
18:37:39,941 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Found resource [logback.xml] at [file:/Applications/Red5.app/Contents/Resources/Java/conf/logback.xml]
18:37:39,950 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource [logback.xml] occurs multiple times on the classpath.
18:37:39,950 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource [logback.xml] occurs at [file:/Applications/Red5.app/Contents/Resources/Java/conf/logback.xml]
18:37:39,950 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource [logback.xml] occurs at [file:/Applications/Red5.app/Contents/Resources/Java/conf/logback.xml]
18:37:40,221 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - debug attribute not set
18:37:40,382 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.ConsoleAppender]
18:37:40,387 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [CONSOLE]
18:37:40,410 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property
18:37:40,444 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.FileAppender]
18:37:40,446 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [FILE]
18:37:40,449 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property
18:37:40,463 |-INFO in ch.qos.logback.core.FileAppender[FILE] - File property is set to [log/red5.log]
18:37:40,464 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.FileAppender]
18:37:40,464 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [ERRORFILE]
18:37:40,469 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property
18:37:40,470 |-INFO in ch.qos.logback.core.FileAppender[ERRORFILE] - File property is set to [log/error.log]
18:37:40,470 |-INFO in ch.qos.logback.classic.joran.action.LevelAction - ROOT level set to INFO
18:37:40,470 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [CONSOLE] to Logger[ROOT]
18:37:40,471 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [FILE] to Logger[ROOT]
18:37:40,471 |-INFO in ch.qos.logback.classic.joran.action.LevelAction - org.springframework level set to INFO
18:37:40,471 |-INFO in ch.qos.logback.classic.joran.action.LevelAction - org.apache level set to INFO
18:37:40,471 |-INFO in ch.qos.logback.classic.joran.action.LevelAction - ch.qos level set to WARN

Setting default logging context: default
[INFO] [main] org.red5.server.Launcher - Red5 Server 1.0.0 RC2 $Rev: 4357 $ (http://code.google.com/p/red5/)
Red5 Server 1.0.0 RC2 $Rev: 4357 $ (http://code.google.com/p/red5/)
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/Applications/Red5.app/Contents/Resources/Java/red5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/Applications/Red5.app/Contents/Resources/Java/lib/logback-classic-0.9.28.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
[INFO] [main] org.springframework.context.support.FileSystemXmlApplicationContext - Refreshing org.springframework.context.support.FileSystemXmlApplicationContext@3e1283d2: startup date [Wed Nov 28 18:37:40 ECT 2012]; 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@1e5dba88: 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@a407d11: startup date [Wed Nov 28 18:37:41 ECT 2012]; 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@4d8567b6: 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@4f04b01a
[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 'MacBook-Pro-de-Fernando.local1354145861720'
  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_$_MacBook-Pro-de-Fernando.local1354145861720 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]
[INFO] [main] org.springframework.beans.factory.support.DefaultListableBeanFactory - Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@4d8567b6: 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.quartz.core.QuartzScheduler - Scheduler Red5_Scheduler_$_MacBook-Pro-de-Fernando.local1354145861720 shutting down.
[INFO] [main] org.quartz.core.QuartzScheduler - Scheduler Red5_Scheduler_$_MacBook-Pro-de-Fernando.local1354145861720 paused.
[INFO] [main] org.quartz.core.QuartzScheduler - Scheduler Red5_Scheduler_$_MacBook-Pro-de-Fernando.local1354145861720 shutdown complete.
[INFO] [main] org.springframework.jmx.support.ConnectorServerFactoryBean - Stopping JMX connector server: javax.management.remote.rmi.RMIConnectorServer@4f04b01a
[INFO] [main] org.springframework.remoting.rmi.RmiRegistryFactoryBean - Unexporting RMI registry
[INFO] [main] org.springframework.beans.factory.support.DefaultListableBeanFactory - Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@1e5dba88: defining beans [placeholderConfig,red5.common,red5.core,context.loader,pluginLauncher,tomcat.server]; root of factory hierarchy
Exception org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'red5.common' defined in class path resource [red5.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.context.support.FileSystemXmlApplicationContext]: Constructor threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mbeanExporter': Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: org.springframework.util.ClassUtils.isCglibProxyClass(Ljava/lang/Class;)Z


All I can tell is that it has something to do with the spring framework.

Regards,

Juan Diego

Luigi Bitonti

unread,
Nov 29, 2012, 6:08:43 AM11/29/12
to red5in...@googlegroups.com
It looks like you are mixing spring 3.1.1 and spring 3.0.5 jars. For red5 1.0RC2 you should use 3.1.1 (only)

Cheers,
Luigi


--
 
 
 

Mondain

unread,
Nov 29, 2012, 11:38:11 AM11/29/12
to red5in...@googlegroups.com
Ensure that you have a "webapps" directory and that there is a "red5-default.xml" file in it; along with your apps of course.


Reply all
Reply to author
Forward
0 new messages