« Return to Thread: Please help with NetConnection.Connect.InvalidApp on FirstApp sample

Re: Please help with NetConnection.Connect.InvalidApp on FirstApp sample

by juanbackson :: Rate this Message:

Reply to Author | View in Thread

Hi,

Thank you so much for helping out.

If I go to http://localhost:5080, I see 404 error.
The only external I used in the firstapp Application is apache's common-log jar, and I have added it  to firstapp/lib:
debian:/usr/src/red5/webapps/firstapp/WEB-INF/lib# ls
commons-logging-1.1.1.jar

But I am still getting the same error saying NetConnection.Connect.InvalidApp.  What else could be causing the problem?

JB

 



Date: Tue, 15 Jul 2008 16:48:12 +0800Subject: Re: [Red5] Please help with NetConnection.Connect.InvalidApp on FirstApp sample



Hi,

I can see red5 running on 5080  from the server log when it sarts up:
2008-07-16 00:37:38,089 [main] INFO  org.mortbay.log - Started SelectChannelConnector@...:5080
2008-07-16 00:37:38,605 [main] INFO  org.mortbay.log - Started SslSocketConnector@...:8443
2008-07-16 00:37:38,606 [main] INFO  org.red5.server.Standalone - Startup done in: 6705 ms

I don't see any difference between your we.xml and my red5-web.xml

=============================================
red5-web.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
<beans>
   
    <bean id="placeholderConfig" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer" >
        <property name="location" value="/WEB-INF/red5-web.properties" />
    </bean>
   
    <bean id="web.context" class="org.red5.server.Context"
        autowire="byType" />
   
    <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>

    <bean id="web.handler"
        class="com.milgra.Application"
        singleton="true" />


</beans>
==================================
web.xml

<?xml version="1.0" encoding="ISO-8859-1"?>
<web-app
   xmlns="http://java.sun.com/xml/ns/j2ee"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
   version="2.4">

    <display-name>My sample Red5 application</display-name>

    <context-param>
        <param-name>webAppRootKey</param-name>
        <param-value>/firstapp</param-value>
    </context-param>


    <context-param>
        <param-name>globalScope</param-name>
        <param-value>default</param-value>
    </context-param>

    <context-param>
        <param-name>contextConfigLocation</param-name>
        <param-value>/WEB-INF/red5-*.xml</param-value>
    </context-param>

    <context-param>
        <param-name>locatorFactorySelector</param-name>
        <param-value>red5.xml</param-value>
    </context-param>

    <context-param>
        <param-name>parentContextKey</param-name>
        <param-value>default.context</param-value>
    </context-param>
   
    <context-param>
        <param-name>log4jConfigLocation</param-name>
        <param-value>/WEB-INF/log4j.properties</param-value>
    </context-param>
   

   
    <listener>
        <listener-class>org.springframework.web.util.Log4jConfigListener</listener-class>
    </listener>
   
    <listener>
        <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
    </listener>

    <!-- remove the following servlet tags if you want to disable remoting for this application -->
  

    <security-constraint>
        <web-resource-collection>
            <web-resource-name>Forbidden</web-resource-name>
            <url-pattern>/streams/*</url-pattern>
        </web-resource-collection>
        <auth-constraint/>
    </security-constraint>

</web-app>

Any clue on how to fix this problem?

Thank you so much for all your help.


Regards,
JB








Discutez sur Messenger où que vous soyez ! Mettez Messenger sur votre mobile !

_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org



_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org

 « Return to Thread: Please help with NetConnection.Connect.InvalidApp on FirstApp sample

LightInTheBox - Buy quality products at wholesale price!