[Red5] Deploying Apps to RED5 (WAR edition)

mattmadhavan mattmadhavan at yahoo.com
Tue Nov 13 15:28:53 PST 2007


Hi,
I ran into similar problem my self (I have mac as well). You need to
download the java5 version and not Java6 version of the sample.

Thanks
Matt



novotny 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
> 
> 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/demos and 
>> 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>> 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>> 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>
>>     >> http://osflash.org/mailman/listinfo/red5_osflash.org
>>     >>
>>     >>
>>     >
>>     >
>>     > --
>>     > lp,
>>     > Anže
>>     >
>>     > _______________________________________________
>>     > Red5 mailing list
>>     > Red5 at osflash.org <mailto:Red5 at 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>.
>>
>>
>>     _______________________________________________
>>     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
>> http://osflash.org/mailman/listinfo/red5_osflash.org
>>   
> 
> 
> _______________________________________________
> Red5 mailing list
> Red5 at 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#a13737053
Sent from the Red5 - English mailing list archive at Nabble.com.




More information about the Red5 mailing list