Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problems using red5 as the server
09-15-2011, 12:01 AM,
#1
Problems using red5 as the server

Followed all instructions,

I have some problems getting to use red5 though.
I tried editing the red5 server files for jabber chat with and without my database connection details in:

Starting red5: [ OK ]
[root@xxx# SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/opt/red/red5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/opt/red/lib/logback-classic-0.9.26.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
Exception in thread "Launcher:/audiotranscoder" org.springframework.beans.factory.BeanDefinitionStoreException: Could not resolve bean definition resource pattern [/WEB-INF/red5-*.xml]; nested exception is java.io.FileNotFoundException: ServletContext resource [/WEB-INF/] cannot be resolved to URL because it does not exist
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanD​efinitions(AbstractBeanDefinitionReader.java:190)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanD​efinitions(AbstractBeanDefinitionReader.java:149)
at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinit​ions(XmlWebApplicationContext.java:124)
at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinit​ions(XmlWebApplicationContext.java:93)
at org.springframework.context.support.AbstractRefreshableApplicationContext.refres​hBeanFactory(AbstractRefreshableApplicationContext.java:130)
at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFa​ctory(AbstractApplicationContext.java:467)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractA​pplicationContext.java:397)
at org.red5.server.tomcat.TomcatLoader$1.run(TomcatLoader.java:594)
Caused by: java.io.FileNotFoundException: ServletContext resource [/WEB-INF/] cannot be resolved to URL because it does not exist
at org.springframework.web.context.support.ServletContextResource.getURL(ServletCon​textResource.java:131)
at org.springframework.core.io.support.PathMatchingResourcePatternResolver.isJarRes​ource(PathMatchingResourcePatternResolver.java:413)
at org.springframework.core.io.support.PathMatchingResourcePatternResolver.findPath​MatchingResources(PathMatchingResourcePatternResolver.java:342)
at org.springframework.core.io.support.PathMatchingResourcePatternResolver.getResou​rces(PathMatchingResourcePatternResolver.java:280)
at org.springframework.context.support.AbstractApplicationContext.getResources(Abst​ractApplicationContext.java:1227)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanD​efinitions(AbstractBeanDefinitionReader.java:177)
... 7 more
Exception in thread "Launcher:/videotranscoder" org.springframework.beans.factory.BeanDefinitionStoreException: Could not resolve bean definition resource pattern [/WEB-INF/red5-*.xml]; nested exception is java.io.FileNotFoundException: ServletContext resource [/WEB-INF/] cannot be resolved to URL because it does not exist
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanD​efinitions(AbstractBeanDefinitionReader.java:190)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanD​efinitions(AbstractBeanDefinitionReader.java:149)
at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinit​ions(XmlWebApplicationContext.java:124)
at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinit​ions(XmlWebApplicationContext.java:93)
at org.springframework.context.support.AbstractRefreshableApplicationContext.refres​hBeanFactory(AbstractRefreshableApplicationContext.java:130)
at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFa​ctory(AbstractApplicationContext.java:467)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractA​pplicationContext.java:397)
at org.red5.server.tomcat.TomcatLoader$1.run(TomcatLoader.java:594)
Caused by: java.io.FileNotFoundException: ServletContext resource [/WEB-INF/] cannot be resolved to URL because it does not exist
at org.springframework.web.context.support.ServletContextResource.getURL(ServletCon​textResource.java:131)
at org.springframework.core.io.support.PathMatchingResourcePatternResolver.isJarRes​ource(PathMatchingResourcePatternResolver.java:413)
at org.springframework.core.io.support.PathMatchingResourcePatternResolver.findPath​MatchingResources(PathMatchingResourcePatternResolver.java:342)
at org.springframework.core.io.support.PathMatchingResourcePatternResolver.getResou​rces(PathMatchingResourcePatternResolver.java:280)
at org.springframework.context.support.AbstractApplicationContext.getResources(Abst​ractApplicationContext.java:1227)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanD​efinitions(AbstractBeanDefinitionReader.java:177)
... 7 more
Exception in thread "Launcher:/loadtest" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'web.scope' defined in ServletContext resource [/WEB-INF/red5-web.xml]: Cannot resolve reference to bean 'web.handler' while setting bean property 'handler'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'web.handler' defined in ServletContext resource [/WEB-INF/red5-web.xml]: Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError: org/red5/server/api/IBandwidthConfigure
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveRef​erence(BeanDefinitionValueResolver.java:328)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveVal​ueIfNecessary(BeanDefinitionValueResolver.java:106)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.app​lyPropertyValues(AbstractAutowireCapableBeanFactory.java:1325)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.pop​ulateBean(AbstractAutowireCapableBeanFactory.java:1086)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doC​reateBean(AbstractAutowireCapableBeanFactory.java:517)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.cre​ateBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(Abstra​ctBeanFactory.java:291)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingle​ton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(Abstract​BeanFactory.java:288)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBe​anFactory.java:190)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstanti​ateSingletons(DefaultListableBeanFactory.java:580)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactory​Initialization(AbstractApplicationContext.java:895)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractA​pplicationContext.java:425)
at org.red5.server.tomcat.TomcatLoader$1.run(TomcatLoader.java:594)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'web.handler' defined in ServletContext resource [/WEB-INF/red5-web.xml]: Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError: org/red5/server/api/IBandwidthConfigure
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.ins​tantiateBean(AbstractAutowireCapableBeanFactory.java:965)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.cre​ateBeanInstance(AbstractAutowireCapableBeanFactory.java:911)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doC​reateBean(AbstractAutowireCapableBeanFactory.java:485)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.cre​ateBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(Abstra​ctBeanFactory.java:291)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingle​ton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(Abstract​BeanFactory.java:288)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBe​anFactory.java:190)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveRef​erence(BeanDefinitionValueResolver.java:322)
... 13 more
Caused by: java.lang.NoClassDefFoundError: org/red5/server/api/IBandwidthConfigure
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2406)
at java.lang.Class.getConstructor0(Class.java:2716)
at java.lang.Class.getDeclaredConstructor(Class.java:2002)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiat​e(SimpleInstantiationStrategy.java:65)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.ins​tantiateBean(AbstractAutowireCapableBeanFactory.java:958)
... 21 more
Caused by: java.lang.ClassNotFoundException: org.red5.server.api.IBandwidthConfigure
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:15​16)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:13​61)
... 27 more

I have been unable to track this error down online.
Could you please give some info on how to fix this?
Reply
09-21-2011, 03:47 AM,
#2
RE: Problems using red5 as the server
Reinstalled flash
and the app,
the errors are gone, the app is installed in the web apps folder i unpacked the zip and uploaded it there
red 5 server is running
all the rtfm ports are opened
the connection string is like
rtmp:/mysite.com/JabberCamApp

The admin.php?task=test gives error for red5 server

How can we track this down to the exact error message?

Reply
09-21-2011, 06:59 AM,
#3
RE: Problems using red5 as the server
Try turning off the firewall (CSF firewall on cPanel servers), this is the most common issue.
Reply
09-21-2011, 07:04 AM,
#4
RE: Problems using red5 as the server
If the test gives you an error it means, RVC cannot connect to the RTMP port. There could be several reasons, the one above is the most common if ports are open. Try Red5 port tester and also check if you see the JabberCamApp in the Red5 admin panel?
Reply
11-24-2011, 05:44 PM,
#5
RE: Problems using red5 as the server
RED 5 Version over 9

http://groups.google.com/group/red5interest/browse_thread/thread/3e2503787ea36414
http://code.google.com/p/red5/source/browse/flash/trunk/bwcheckNative/
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)