Hi All,

 

I am trying to work out how to run a servlet called MyServlet which is
located in my webapp 'test'. 

 

I have defined 'webapp.contextPath=/test' in file
\webapps\test\WEB-INF\red5-web.properties.

The file \webapps\test\WEB-INF\red5-web.xml contains:
<?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.PropertyPlaceholderConfigure
r">
            <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="org.red5.server.webapp.test.Application" 
                singleton="true" />
                
        <bean id="test.service" 
            class="org.red5.server.webapp.test.TestService" 
                singleton="true" />     

        <bean id="echo.service" 
            class="org.red5.samples.services.EchoService" 
                singleton="true" />     
</beans>

To the file \webapps\test\WEB-INF\web.xml I have added:

    <servlet>
        <servlet-name>MyServlet</servlet-name>
        <servlet-class>MyServlet</servlet-class>
    </servlet>
    
    <servlet-mapping>
        <servlet-name>MyServlet</servlet-name>
        <url-pattern>/example</url-pattern>
    </servlet-mapping>

I have put my compiled example program MyServlet.class into directory
'\webapps\test\WEB-INF\classes'

I try http://localhost/example/MyServlet, 
http://localhost/test/MyServlet, http://localhost/test/example/MyServlet
etc but always HTTP 404 error.,

 

Can somebody please tell me what I am missing or doing wrong?

 

 

Regards,

 

David Schulberg

email: [EMAIL PROTECTED]

 

_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org

Reply via email to