[Red5] deploying a red5 application

rameau rameau1982 rameau1982 at hotmail.com
Sat Jul 18 10:04:51 PDT 2009



I've done all you said (I had already done it) and no index.html is visible... also reviewed the configuration files and are pointing to the correct place.

If I place myapp folder under webapp folder, applications such as installer or admin fail:  NetConnection.Connect.Failed
If I remove it, the other applications do work (everything stopping and restarting the server).

 

About the .jar files look at this link:  http://osflash.org/pipermail/osflash_osflash.org/2007-July/013774.html  here it says that a .jar must be included

but when trying to export a jar with eclipse it produces nothing.

 

Any ideas?

 

Thank's





From: poon.fung at gmail.com
To: red5 at osflash.org
Date: Sat, 18 Jul 2009 09:30:04 -0700
Subject: Re: [Red5] deploying a red5 application




It is fairly simple to deploy a webapp. Webapp is a Java thing, not Red5 specific. You should be able to get a lot of good documentation form Apache Tomcat site. 
 
Here is a quick summary:
 
1. change to <red5 install root>/webapp directory
2. create a dir (say myapp)
    any name will do, normally this name is also used in the url to access this particular webapp (i.e., http://localhost:5080/myapp)
3. create dir <red5 root>/webapp/myapp/WEB-INF
4. create dir <red5 root>/webapp/myapp/WEB-INF/classes
    you can put all you class file in classes and they will be pickup by the server automatically. Of course, the name of the files may look like <red5 root>/webapp/myapp/WEB-INF/classes/com/mycompany/myapp/MyClass.class.
5. In <red5 root>/webapp/myapp/WEB-INF, you will need web.xml, red5-web.xml, red5-web.properties.
    The best way is to copy the dir <red5 root>/doc/templates/myapp. It contains all of these files. You need to edit them if your project name is not myapp.
6. To test if your webapp is deployed properly, the simplest thing is to add a index.html file in <red5 root>/webapp/myapp (say hello world). When you enter http://localhost:5080/myapp/index.html, it should show the HTML file. Now you know the basic webapp config is working.
 
You do not need to package you classes into red5.jar. Normally, each webapp is packaged into a myapp.war file. (war file is just a jar file, and jar file is just a zip file).
 
Hope this helps.
 
 



From: red5-bounces at osflash.org [mailto:red5-bounces at osflash.org] On Behalf Of rameau rameau1982
Sent: Saturday, July 18, 2009 8:51 AM
To: red5 at osflash.org
Subject: Re: [Red5] deploying a red5 application


ok, I think it's a basic thing that everybody knows ... could somebody explain it to me?
 
thank's
 


From: rameau1982 at hotmail.com
To: red5 at osflash.org
Date: Sat, 18 Jul 2009 02:44:39 +0200
Subject: [Red5] deploying a red5 application



Hi,
 
I'm new to red5. Following some tutorials I've created a simple application and a flex client. But I need to deploy it on red5 and I don't know how.
Searching at google I've found some issues:
 


add a directory under webapps calling it with the name specified at the .xml archives and putting there all the WEB-INF 
add my classes to red5.jar 
Well, the second point I've been unable to do it because winRar doesn't let me add nothing... is there another option without winRar??
 
And the first point is correct or I should place all under webapps->root->myapplication ??
 
Is it the right way to deploy applications on red5? (without ant server)



Diferentes formas de estar en contacto con amigos y familiares. Descúbrelas. Descúbrelas.


Comparte tus fotos con tus amigos. Más fácil con Windows Live
_________________________________________________________________
Chatea sin límites en Messenger con la tarifa plana de Orange
 http://serviciosmoviles.es.msn.com/messenger/orange.aspx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://osflash.org/pipermail/red5_osflash.org/attachments/20090718/a427323b/attachment-0001.html>


More information about the Red5 mailing list