msgbartop
Various ramblings-on, mostly about Red5
msgbarbottom

18 Jan 09 Spring configs and Red5 applications

This is just a quick post to let you all know about a problem Carl and I ran into with one of his example applications for red5. The application seemed to start and there where no errors in the logs, even at TRACE level for com, net, and org; it seemed that Spring or Red5 were swallowing whatever error or misconfiguration was occurring. The final resolution was found by replacing config sections with those from the oflaDemo example, one-by-one; which is what we often tell readers of the mailing list. So here is the section that silently fails

<bean id="web.scope" class="org.red5.server.WebScope" init-method="register"
    p:server-ref="red5.server"
    p:parent-ref="global.scope"
    p:context-ref="web.context"
    p:handler-ref="global.handler"
    p:contextPath="${webapp.contextPath}"
    p:virtualHosts="${webapp.virtualHosts}"/>

and here is the version that works

<bean id="web.scope" class="org.red5.server.WebScope" init-method="register">
    <property name="server" ref="red5.server" />
    <property name="parent" ref="global.scope" />
    <property name="context" ref="web.context" />
    <property name="handler" ref="web.handler" />
    <property name="contextPath" value="${webapp.contextPath}" />
    <property name="virtualHosts" value="${webapp.virtualHosts}" />
</bean>    

Tags: , ,



Reader's Comments

  1. |

    Seems like
    xmlns:p=”http://www.springframework.org/schema/p”
    is missing from xml namespace declaration.

    http://static.springframework.org/spring/docs/2.5.x/reference/beans.html#beans-p-namespace



Leave a Comment


Fatal error: Call to undefined function akismet_counter() in C:\xampp\htdocs\paulgregoireblog\wp-content\themes\googlechrome\footer.php on line 9