Talk:Tutorials:Getting Started With Red5 Server
From Red5Tutorials
hi everybody,
I try to get started with red5 server the last 5 weekends and it doesnt work.
My system: windows vista Home Premium sp2, red5 v0.6
I did everything like explained in that tutorial but it doesnt work. The main error in my flashlog.txt after trying to connect is:
NetConnection.Connect.InvalidApp
I created the java application in eclipse, build it without errors. I have the following document structure:
red5/
webapps/
firstapp/
WEB-INF/
log4j.properties
red5-web.properties
red5-web.xml
web.xml
classes/
com/
milgra/
Application.class
src/
com/
milgra/
Application.java
and my client
red5/
webapps/
root/
testclient/
Red5FirstClient.swf
I called the client with http://127.0.0.1:5080/testclient/Red5FirstClient.swf
The connect returns netStatus: NetConnection.Connect.InvalidApp
If I change the
nc.connect( "rtmp://localhost/firstapp" , true );
to
nc.connect( "rtmp://localhost/fitcDemo" , true );
I got some errors (Error #2044: AsyncErrorEvent), but finally: NetConnection.Connect.Success
Something must be wrong with my application or my xml-files. But I did everything like explained.
Any ideas?
SOLUTION
Ok it works!!!
The default servicehandler in red5-web.xml copied from red5/doc/templates/myapp/WEB-INF caused an red5 [ERROR] 3240
<bean id="myhandler.service" class="the.path.to.my.ServiceHandler" singleton="true" ></bean>
oh man. stupid mistake. after removing that useless bean it worked. I hope this topic is useful for anybody with the same brainbug.

