[Red5] Deploying Apps to RED5 (WAR edition)

David Foley solutions at ondevice.ie
Tue Nov 13 06:47:16 PST 2007


Hi Lenny,

glad to hear things CAN work smoothly - I'm a bit frustrated at the moment
coming from the other side of the spectrum - new to Java, well versed in
Flash. How can I obtain the latest version of Red5.war from cvs? Maybe you
could detail your deployment strategy in more depth - I'd really appreciate
it.

Thanks

David

On Nov 13, 2007 1:14 PM, Lenny Sorey <lrsorey at gmail.com> wrote:

> Hey Guys,
>
> Glad to see other Tomcat users in the list.
>
> I would suggest just go ahead and and use the latest code from svn.
>
> It is very stable and it keeps you up with the latest changes.
>
> I have been downloading RED5 from SVN since around October 2006.
>
> And Like you guys, learning Flex was a new experience for me as well.
>
> I also come from a Java / Spring background so RED5 is a great choice.
>
> If you want to get a good look at Flex I would suggest you download Flex
> Builder
> and use it for the entire "free" demo period.  Then if you need to move to
> Flash Develop
> you can do so when FB expires.
>
> Some hints for RED5 / Tomcat.
>
> Spend some time in the red5/conf/war folder. This is where you will lean
> the proper setup for your apps bean references.
> Trust me, if this is not setup properly, you will experience heartaches
> with RED5 / Tomcat.
>
> As a rule for me I always expand my war files in the red5/dist folders so
> I can remove any unnecessary *-web.xml files in the
> WEB-INF/classes. This is because once I have my build.xml set, I usually
> don't change it. Just to easy for me to remove what I don't need
> after I rebuild.
>
> Be sure to read the Red5 war.pdf doc as well. This will help a lot.
>
> Tomcat works fine with RED5.
>
> Currently, I have Tomcat 6.0.14, Java 1.6_02, Mod_JK, Apache 2.2.4, MySQL
> 5 & PostgreSQL, PHP 5.0.14 Working nicely together.
>
> Take a look: http://red5.fatdot.com
>
> Good luck!!
>
> Lenny
>
>
>
>
> On 11/12/07, David Foley <solutions at ondevice.ie> wrote:
> >
> > Hi Jason -
> >
> > this *might* help in the short term: if you go to the download page<http://osflash.org/red5/063final>on OSFlash, you can download and install the standalone version of red5 -
> > its the only way I could find sample application sources - the war doesn't
> > appear to come packaged with them. Go ahead and install it, (no need to
> > actually run the standalone server). In the install directory you should see
> > a folder named swf, and in there, a sub-directory named DEV_Source. There
> > you should find source mxml applications. In the webapps folder, you should
> > find some Java source files. A heads up though - no offence to the
> > producers, but a lot of the flash applications, are, well, not that well
> > designed with code dispersed over timelines, frames and stage symbols in
> > some cases.
> >
> > To get to grips with client-side coding, try downloading FMS2 and
> > reading through the pdf's - they outline the architcture that Red5 models
> >
> > if work eases off, I'll email you next week and maybe we can exhange
> > notes if you want. I've only been using red5 for a day, but I'm pretty
> > certain I've got the basics down. RE: MXML - if your are new to flex, you
> > may want to consider coding light in FlashDevelop as an alternative to
> > eclispe/flex builder?
> >
> > Good luck!
> >
> > D
> >
> > On Nov 13, 2007 1:54 AM, Jason Novotny <novotny at gridsphere.org> wrote:
> >
> > >
> > > Ok no worries! I was able to checkout the code from SVN as advised in
> > > an
> > > earlier message, did "ant webwar" and copied the dist/ROOT.war into
> > > red5.war in my Tomcat 6.0.14 and voila it works!
> > >
> > > My issue is very similar to Matt's request. I'm new to flex and red5,
> > > but strong in Spring/Java. I basically have some spring/ibatis
> > > services
> > > that I want to deploy to red5. If you or anyone has a sample for doing
> > >
> > > this and a sample MXML client for testing, I would be really
> > > appreciative. In fact, this would be a really great sample to add to
> > > the
> > > demos!
> > >
> > >    Cheers, Jason
> > >
> > > David Foley wrote:
> > > > Em.. I'm using Java 6 on windows xp - when I wrote those
> > > instructions
> > > > I wan't thinking of mac, and I dont have much experience with any
> > > mac
> > > > os, although as far as i know java 6 is not available for mac as of
> > > > yet. That could be the problem - I dont know enough to provide you
> > > > with any hard facts, but to mention that there was a thread earlier
> > > > today titled 'apple does it again' that seemed to have some bearing
> > > on
> > > > the matter. You might want to check that out.
> > > >
> > > > Best,
> > > >
> > > > David.
> > > >
> > > > On Nov 13, 2007 1:32 AM, Jason Novotny < novotny at gridsphere.org
> > >
> > > > <mailto:novotny at gridsphere.org>> wrote:
> > > >
> > > >
> > > >     Hi Matt,
> > > >
> > > >        I just followed your instructions verbatim and deployed to a
> > > fresh
> > > >     tomcat-6.0.14 install and when I go to
> > >
> > > >       http://localhost:8080/red5/demos <
> > > http://localhost:8080/red5/demos>
> > >  >
> > > >     I get
> > > >
> > > >
> > > >      HTTP Status 503 - This application is not currently available
> > > >
> > > >     in my catalina.out logfile I see:
> > > >
> > > >     *SEVERE: Null component
> > > >     Catalina:type=JspMonitor,name=jsp,WebModule=//localhost/r
> > > >     ed5,J2EEApplication=none,J2EEServer=none
> > > >     Nov 12, 2007 8:31:02 PM org.apache.catalina.startup.HostConfig
> > > >     deployWAR
> > > >     SEVERE: Error deploying web application archive red5.war
> > > >     java.lang.UnsupportedClassVersionError : Bad version number in
> > > >     .class file
> > > >            at java.lang.ClassLoader.defineClass1 (Native Method)
> > > >            at java.lang.ClassLoader.defineClass(ClassLoader.java
> > > :675)
> > > >            at
> > > >     java.security.SecureClassLoader.defineClass (
> > > SecureClassLoader.java:12
> > > >
> > > >
> > > >     *Any ideas are greatly appreciated! This is on Mac OS X leopard
> > > >     java 1.5
> > > >     latest
> > > >
> > > >     Thanks, Jason
> > > >
> > > >     David Foley wrote:
> > > >     > Hi Matt,
> > > >     >
> > > >     > not sure that I can help, but I can tell you what I did (and
> > > >     btw, all
> > > >     > seems to be working for me right now). Step by step
> > > installation
> > > >     of war:
> > > >     >
> > > >     > download the war from this link:
> > > >     > http://dl.fancycode.com/red5/0.6.3/war/java6/ROOT.war .
> > > >     >
> > > >     > the instructions for Red5 war distribution can be found at
> > > >     > http://dl.fancycode.com/red5/0.6.3/war/Red5%20War.pdf
> > > >     > < http://dl.fancycode.com/red5/0.6.3/war/Red5%20War.pdf >
> > > >     >
> > > >     > The most common advice is to just deposit ROOT.war within
> > > >     > Tomcat/webapps. Tomcat automatically expands war files into
> > > >     > directories when the server starts, however, this would mean
> > > >     that the
> > > >     > root directory would be overwritten, which was not an option
> > > for me,
> > > >     > so I renamed ROOT.war to red5.war.
> > > >     >
> > > >     > start Tomcat (or whatever you have to do with JBOSS - sorry
> > > cant
> > > >     help
> > > >     > you there).
> > > >     >
> > > >     > war should have expanded, and if you look in the webapps
> > > folder, you
> > > >     > should see a directory called red5. That is your application
> > > >     directory
> > > >     > for red5. You will have to nest your applications (in part)
> > > within
> > > >     > that directory in order for them to work. You can check that
> > > red5 is
> > > >     > working correctly by going to http://localhost:8080/red5/demosand
> > > >     > exploring those demos.
> > > >     >
> > > >     > As for communicating with flex, I can help you there too, but
> > > see if
> > > >     > you can that running first.
> > > >     >
> > > >     > Hope thats some help...
> > > >     >
> > > >     >
> > > >     > On Nov 12, 2007 11:52 PM, mattmadhavan <
> > > mattmadhavan at yahoo.com
> > > >     <mailto:mattmadhavan at yahoo.com>
> > >
> > > >     > <mailto: mattmadhavan at yahoo.com <mailto:mattmadhavan at yahoo.com
> > > >>>
> > >  >     wrote:
> > > >     >
> > > >     >
> > > >     >     Hi there,
> > > >     >     I am doing the same right now (trying to reploy red5 war
> > > file).
> > > >     >     Standalone
> > > >     >     configuration is out of question for my client's
> > > environment.
> > > >     >
> > > >     >     Can you please share with me the step by step installation
> > > for
> > > >     >     red5.war as a
> > > >     >     regular web app( We use JBoss)? And how do you create  a
> > > >     flex app
> > > >     >     to connect
> > > >     >     to the server. Please any pointers will help me at this
> > > point -
> > > >     >     for I am
> > > >     >     lost currently.
> > > >     >
> > > >     >     Thanks
> > > >     >     Matt
> > > >     >
> > > >     >
> > > >     >
> > > >     >     Anze Cesar wrote:
> > > >     >     >
> > > >     >     > I had a similar problem ...
> > > >     >     > I was using red5 standalone on my development machine
> > > and
> > > >     red5
> > > >     >     war was
> > > >     >     > running on the production server. We were struggling in
> > > >     making my
> > > >     >     > applications work with the war version, but in the long
> > > run it
> > > >     >     turned out,
> > > >     >     > it wasnt as maintainable as we'd like. So, we switched
> > > to
> > > >     red5
> > > >     >     standalone.
> > > >     >     >
> > > >     >     > But I am probably not the right guy to say something
> > > useful
> > > >     >     here, since I
> > > >     >     > never made it work successfully :) I have no problems
> > > with
> > > >     red5
> > > >     >     running in
> > > >     >     > standalone. Performance-wise I see no impact ...
> > > >     >     >
> > > >     >     > On Nov 12, 2007 2:07 PM, David Foley
> > > >     < solutions at ondevice.ie <mailto:solutions at ondevice.ie>
> > >
> > > >     >     <mailto: solutions at ondevice.ie
> > >  >     <mailto:solutions at ondevice.ie>>> wrote:
> > > >     >     >
> > > >     >     >> Hi all
> > > >     >     >>
> > > >     >     >> - new to Red5 (dont run away!) and am using version
> > > 0.6.3. I
> > > >     >     have two
> > > >     >     >> (hopefully easy) questions for anyone to answer. The
> > > >     first concerns
> > > >     >     >> deployment of Red5 apps on Tomcat 6.0.14 using Red5
> > > WAR. The
> > > >     >     second is
> > > >     >     >> not
> > > >     >     >> directly related to Red5, but I would like some advice
> > > if
> > > >     there
> > > >     >     is any to
> > > >     >     >> be
> > > >     >     >> ventured.
> > > >     >     >>
> > > >     >     >> [1] As I plan on using Tomcat to deliver more
> > > >     applications than
> > > >     >     Red5, I
> > > >     >     >> renamed ROOT.war (the red5 web application archive
> > > >     downloaded from
> > > >     >     >> OSFlash) to red5.war. When I launched tomcat, it
> > > expanded the
> > > >     >     archive
> > > >     >     >> into
> > > >     >     >> tomcat/webapps/red5 as expected and I was able to use
> > > the
> > > >     demos
> > > >     >     provided
> > > >     >     >> and
> > > >     >     >> test a really quite silly application of my own
> > > successfully,
> > > >     >     using the
> > > >     >     >> RemoteApp example as a reference, and Red5 War.pdf for
> > > a
> > > >     >     walkthrough (
> > > >     >     >> http://dl.fancycode.com/red5/0.6.3/war/).
> > > >     >     >>
> > > >     >     >> Experimenting with the build, I noticed that as long as
> > > I
> > > >     placed
> > > >     >     >> [myApplicationName]-web.xml and compiled classes within
> > > >     >     >> tomcat/webapps/red5/WEB-INF/classes, there was
> > > (seemingly) no
> > > >     >     need to
> > > >     >     >> also
> > > >     >     >> have my applications classes also installed within
> > > >     >     >> tomcat/webapps/[myApplicationName]/WEB-INF/classes. I
> > > had
> > > >     >     thought it a
> > > >     >     >> bit
> > > >     >     >> redundant to have to put my application classes in two
> > > >     >     locations - can
> > > >     >     >> some
> > > >     >     >> one please clarify that I only need to keep my libs
> > > folder in
> > > >     >     my 'remote'
> > > >     >     >> application folder, and that one copy of my application
> > > >     classes
> > > >     >     within
> > > >     >     >> tomcat/webapps/red5/etc?
> > > >     >     >>
> > > >     >     >> Yikes - that sounds confusing. I'm going to skip the
> > > second
> > > >     >     question
> > > >     >     >> (anyone with experience using NetBeans 6 to deploy Red5
> > >
> > > >     >     applications).
> > > >     >     >> Thanks in advance,
> > > >     >     >>
> > > >     >     >> best,
> > > >     >     >>
> > > >     >     >> David
> > > >     >     >>
> > > >     >     >>
> > > >     >     >> _______________________________________________
> > > >     >     >> Red5 mailing list
> > > >     >     >> Red5 at osflash.org <mailto: Red5 at osflash.org>
> > >
> > > >     <mailto:Red5 at osflash.org <mailto: Red5 at osflash.org>>
> > > >     >     >> http://osflash.org/mailman/listinfo/red5_osflash.org
> > > >     >     >>
> > > >     >     >>
> > > >     >     >
> > > >     >     >
> > > >     >     > --
> > > >     >     > lp,
> > > >     >     > Anže
> > > >     >     >
> > > >     >     > _______________________________________________
> > > >     >     > Red5 mailing list
> > > >     >     > Red5 at osflash.org <mailto:Red5 at osflash.org>
> > >
> > > >     <mailto: Red5 at osflash.org <mailto:Red5 at osflash.org>>
> > > >     >     > http://osflash.org/mailman/listinfo/red5_osflash.org
> > >
> > > >     <http://osflash.org/mailman/listinfo/red5_osflash.org >
> > > >     >     >
> > > >     >     >
> > > >     >
> > > >     >     --
> > > >     >     View this message in context:
> > > >     >
> > > >
> > > http://www.nabble.com/Deploying-Apps-to-RED5-%28WAR-edition%29-tf4790987.html#a13716957
> > > >     >     Sent from the Red5 - English mailing list archive at
> > > >     Nabble.com <http://nabble.com/> <http://Nabble.com<http://nabble.com/>
> > > >
> > > >     >     < http://Nabble.com <http://nabble.com/>>.
> > > >     >
> > > >     >
> > > >     >     _______________________________________________
> > > >     >     Red5 mailing list
> > > >     >     Red5 at osflash.org <mailto: Red5 at osflash.org>
> > >
> > > >     <mailto: Red5 at osflash.org <mailto:Red5 at osflash.org>>
> > > >     >     http://osflash.org/mailman/listinfo/red5_osflash.org
> > >
> > > >     < http://osflash.org/mailman/listinfo/red5_osflash.org>
> > > >     >
> > > >     >
> > > >     >
> > > >
> > > ------------------------------------------------------------------------
> > > >     >
> > > >     > _______________________________________________
> > > >     > Red5 mailing list
> > > >     > Red5 at osflash.org <mailto: Red5 at osflash.org>
> > > >     > http://osflash.org/mailman/listinfo/red5_osflash.org
> > > >     >
> > > >
> > > >
> > > >     _______________________________________________
> > > >     Red5 mailing list
> > >
> > > >     Red5 at osflash.org <mailto: Red5 at osflash.org>
> > > >     http://osflash.org/mailman/listinfo/red5_osflash.org
> > >
> > >  >     <http://osflash.org/mailman/listinfo/red5_osflash.org>
> > > >
> > > >
> > > >
> > > ------------------------------------------------------------------------
> > > >
> > > > _______________________________________________
> > > > Red5 mailing list
> > > > Red5 at osflash.org
> > > > http://osflash.org/mailman/listinfo/red5_osflash.org
> > > >
> > >
> > >
> > > _______________________________________________
> > > Red5 mailing list
> > > Red5 at osflash.org
> > > http://osflash.org/mailman/listinfo/red5_osflash.org
> > >
> > >
> >
> >
> > _______________________________________________
> > Red5 mailing list
> > Red5 at osflash.org
> > http://osflash.org/mailman/listinfo/red5_osflash.org
> >
> >
>
> _______________________________________________
> Red5 mailing list
> Red5 at osflash.org
> http://osflash.org/mailman/listinfo/red5_osflash.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/red5_osflash.org/attachments/20071113/779ed455/attachment-0001.html 


More information about the Red5 mailing list