red5-web.xml changing on every start of Red5

199 views
Skip to first unread message

Yamakasi

unread,
Sep 9, 2014, 4:18:59 PM9/9/14
to red5in...@googlegroups.com
Hi Guys,

I have a red5-web.xml file this the following for my scope:

<bean id="web.scope" class="org.red5.server.WebScope" init-method="register">

On every start of red5 this is changed back to

<bean id="web.scope" class="org.red5.server.scope.WebScope" init-method="register">

This gives me the problem:

[WARN] [RTMPExecutor#KVSWAELMBYY3G-1] org.red5.server.net.rtmp.RTMPHandler - Scope MyApplicationName/ not found
[INFO] [RTMPExecutor#KVSWAELMBYY3G-1] org.red5.server.net.rtmp.RTMPHandler - No application scope found for MyApplicationName/ on host xxx.xxx.xxx.xxx

How can I solve it that is't not changed back every time ?

Thanks,

Matt

Mondain

unread,
Sep 9, 2014, 4:32:27 PM9/9/14
to red5in...@googlegroups.com
The "org.red5.server.scope.WebScope" class is correct, the other is not. The server doesn't change this bean entry; at least no part of it that I'm aware of. From the little bit of log you're showing, I'd say your "web.handler" bean not your "web.scope" didn't start correctly.

--

---
You received this message because you are subscribed to the Google Groups "red5" group.
To unsubscribe from this group and stop receiving emails from it, send an email to red5interest...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
http://gregoire.org/
http://code.google.com/p/red5/
Message has been deleted

Yamakasi

unread,
Sep 9, 2014, 4:48:31 PM9/9/14
to red5in...@googlegroups.com
Hi,

I have never seen it changing back to this line too on 1.0.2 but 1.0.3 does it seems.

I have the same issue as here: http://stackoverflow.com/questions/7697254/red5-open-source-chat-scope-rtmpclient-not-found-on-localhost

In the past this fix worked but now on 1.0.3 I seem to have this issue again and the fix doesn't work it seems and is also not right like you say.

What can I check here, on 1.0.2 my app works OK with that line you also gave me here

This is my errorlog:

[INFO] [main] org.red5.server.Context - Setting parent bean factory as core
[INFO] [main] org.red5.server.tomcat.
TomcatLoader - Loading tomcat
[INFO] [main] org.red5.server.tomcat.TomcatLoader - Server root: /opt/red5-server
[INFO] [main] org.red5.server.tomcat.TomcatLoader - Config root: /opt/red5-server/conf
[INFO] [main] org.red5.server.tomcat.TomcatLoader - Application root: /opt/red5-server/webapps
[INFO] [main] org.red5.server.tomcat.TomcatLoader - Starting Tomcat servlet engine
[INFO] [main] org.apache.catalina.core.AprLifecycleListener - The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/java/packages/lib/amd64:/usr/lib/x86_64-linux-gnu/jni:/lib/x86_64-linux-gnu:/usr/lib/x86_64-linux-gnu:/usr/lib/jni:/lib:/usr/lib
[INFO] [main] org.apache.coyote.http11.Http11NioProtocol - Initializing ProtocolHandler ["http-nio-0.0.0.0-5080"]
[INFO] [main] org.apache.tomcat.util.net.NioSelectorPool - Using a shared selector for servlet write/read
[INFO] [main] org.apache.catalina.startup.Embedded - Starting tomcat server
[INFO] [main] org.apache.catalina.core.StandardEngine - Starting Servlet Engine: Apache Tomcat/7.0.55
[WARN] [RTMPExecutor#GEISZZSNDL7ZP-1] org.red5.server.net.rtmp.RTMPHandler - Scope MyApplicationName/ not found
[INFO] [RTMPExecutor#GEISZZSNDL7ZP-1] org.red5.server.net.rtmp.RTMPHandler - No application scope found for MyApplicationName/ on host xxx.xxx.xxx.xxx
[WARN] [RTMPExecutor#GEISZZSNDL7ZP-1] org.red5.server.net.rtmp.RTMPConnManager - Connection not found for GEISZZSNDL7ZP
[INFO] [0.0.0.0-startStop-1] org.apache.catalina.core.ContainerBase.[red5Engine].[0.0.0.0].[/MyApplicationName] - No Spring WebApplicationInitializer types detected on classpath

Is 1.0.3 stable enough actually ?


Thanks Matt!


Op dinsdag 9 september 2014 22:32:27 UTC+2 schreef Mondain:

Yamakasi

unread,
Sep 9, 2014, 5:38:38 PM9/9/14
to red5in...@googlegroups.com
Some extra logging:

,658] milliseconds.
[INFO] [main] org.apache.coyote.http11.Http11NioProtocol - Starting ProtocolHandler ["http-nio-0.0.0.0-5080"]
[INFO] [main] org.red5.server.tomcat.TomcatLoader - Dedicated RTMPT server configuration was not specified
[INFO] [main] org.red5.server.ContextLoader - JEE server was found: TomcatLoader [serviceEngineName=red5Engine]
[INFO] [main] org.red5.net.websocket.WebSocketPlugin - WebSocketPlugin ctor
[INFO] [main] org.red5.net.websocket.WebSocketPlugin - WebSocketPlugin start
[INFO] [main] org.red5.server.plugin.PluginLauncher - Loaded plugin: org.red5.net.websocket.WebSocketPlugin
[INFO] [Launcher:/MyApplicationName] org.springframework.web.context.support.XmlWebApplicationContext - Refreshing Root WebApplicationContext: startup date [Tue Sep 09 23:33:19 CEST 2014]; parent: org.springframework.context.support.FileSystemXmlApplicationContext@3badb7a0
[INFO] [main] org.red5.net.websocket.WebSocketTransport - WebSocket will be bound to [localhost:8081]
[INFO] [Launcher:/MyApplicationName] org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from ServletContext resource [/WEB-INF/red5-web.xml]
[INFO] [main] org.red5.net.websocket.WebSocketTransport - started  websocket transport
Bootstrap complete
Bootstrap exit
[INFO] [Launcher:/MyApplicationName] org.springframework.beans.factory.config.PropertyPlaceholderConfigurer - Loading properties file from ServletContext resource [/WEB-INF/red5-web.properties]
Exception in thread "Launcher:/MyApplicationName" java.lang.RuntimeException: Failed to load webapplication context class
        at org.red5.server.tomcat.TomcatLoader$1.run(TomcatLoader.java:507)
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'web.context' defined in ServletContext resource [/WEB-INF/red5-web.xml]: Unsatisfied dependency expressed through bean property 'clientRegistry': : Cannot find class [org.red5.server.WebScope] for bean with name 'web.scope' defined in ServletContext resource [/WEB-INF/red5-web.xml]; nested exception is java.lang.ClassNotFoundException: org.red5.server.WebScope; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [org.red5.server.WebScope] for bean with name 'web.scope' defined in ServletContext resource [/WEB-INF/red5-web.xml]; nested exception is java.lang.ClassNotFoundException: org.red5.server.WebScope
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireByType(AbstractAutowireCapableBeanFactory.java:1278)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1170)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475)
        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:703)
        at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:760)
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:482)
        at org.red5.server.tomcat.TomcatLoader$1.run(TomcatLoader.java:479)
Caused by: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [org.red5.server.WebScope] for bean with name 'web.scope' defined in ServletContext resource [/WEB-INF/red5-web.xml]; nested exception is java.lang.ClassNotFoundException: org.red5.server.WebScope
        at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1325)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(AbstractAutowireCapableBeanFactory.java:594)
        at org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1394)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:385)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:362)
        at org.springframework.beans.factory.BeanFactoryUtils.beanNamesForTypeIncludingAncestors(BeanFactoryUtils.java:187)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1002)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:960)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:858)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireByType(AbstractAutowireCapableBeanFactory.java:1263)
        ... 11 more
Caused by: java.lang.ClassNotFoundException: org.red5.server.WebScope
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1720)
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1571)
        at org.springframework.util.ClassUtils.forName(ClassUtils.java:247)
        at org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:395)
        at org.springframework.beans.factory.support.AbstractBeanFactory.doResolveBeanClass(AbstractBeanFactory.java:1346)
        at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1317)
        ... 20 more


Op dinsdag 9 september 2014 22:18:59 UTC+2 schreef Yamakasi:

Yamakasi

unread,
Sep 10, 2014, 4:26:17 AM9/10/14
to red5in...@googlegroups.com
Just tested by copy the working versio from 1.0.2 to 1.0.3 and start it, the same error happens:


[INFO] [main] org.apache.catalina.core.StandardEngine - Starting Servlet Engine: Apache Tomcat/7.0.55
[WARN] [RTMPExecutor#FPN3NIAUIYPPR-1] org.red5.server.net.rtmp.RTMPHandler - Scope MyApplicationName not found
[INFO] [RTMPExecutor#FPN3NIAUIYPPR-1] org.red5.server.net.rtmp.RTMPHandler - No application scope found for MyApplicationName/ on host xxx.xxx.xxx.xxx



Op dinsdag 9 september 2014 22:18:59 UTC+2 schreef Yamakasi:
Hi Guys,
Reply all
Reply to author
Forward
0 new messages