Tutorials:TomcatLaszloRed5
From Red5Tutorials
Contents |
Installing Tomcat 5.5 + OpenLaszlo + Red5 Flash Server on Windows XP
by Ruben Waitz, 7 november 2006
This article explains how to install and run OpenLaszlo Presentation Server, Red5 Flash Server on top of an Apache Tomcat server. This article will quickly get you started according to the philosophy “experience first, understand later”.
OK, let’s get started!
Tomcat is a free, open source implementation of Java Servlet and JavaServer Pages (jsp) technologies.
OpenLaszlo is a free, open source platform for creating zero-install web applications with the user interface capabilities of desktop client software. Just like Adobe's® Flex Server.
Red5 is a free, open source Flash server that supports streaming and recording audio/video, live stream publishing and Flash remoting. Its commercial brother is Adobe® Flash Media Server.
Pick them up, shake them well and put it down. The result is T-O-R and the possibilities are truly amazing!
Prerequisites
Download the following files:
- JDK 5.0 Update ‘xx’ (Java SE Development Kit (JDK)) from http://java.sun.com/javase/downloads
tomcat 5.5 from http://tomcat.apache.org: - Core (windows service installer) - Administration Web Application
- openlaszlo dev kit (war file) from www.openlaszlo.org
- red5 war file from www.osflash.org/red5
On my system, I ended up with the following files:
jdk-1_5_0_09-windows-i586-p.exe apache-tomcat-5.5.20.exe apache-tomcat-5.5.20-admin.zip openlaszlo-3.4.x.war (<- don't use 3.3.3 because the Red5 video support is missing! Furthermore openlaszlo 4.0 has been released but I'm not sure whether Red5/FMS support has been put in there) red5-0.6rc1.war (<- if you use red5-0.6rc2.war you'll have to use JDK1.6 until red5 is fixed for JDK1.5)
Installing JDK + Tomcat 5.5
Estimated time to complete: 5 - 10 minutes
- Perform a standard installation of JDK (next, next... finish)
- Install Apache Tomcat (use the default server port 8080 and remember your admin login credentials)
Test the installation in your browser: http://localhost:8080
The last thing we’ve to do is installing the Admin Web Application for easy Tomcat administration.
- Stop the Tomcat Service (from taskbar)
- Open “apache-tomcat-5.5.20-admin.zip” and drop the folders “conf” and “server” into “C:\Program Files\Apache Software Foundation\Tomcat 5.5\”. (Windows warns you about already existing folders, but that’s OK. Simply ignore this)
- Start the Tomcat Service again
Test the installation again in your browser (http://localhost:8080) by clicking on “Tomcat Manager”.
Please enter your login credentials you’ve thought earlier.
You are logged in now.
Onward...!
Installing OpenLaszlo
Estimated time to complete: 1 minute
We’re going to install OpenLaszlo from within the Admin Web Application.
Login (again) into the Admin Web Application and click on “Tomcat Manager”. Locate “WAR file to deploy” and use the buttons “Browse…” and “Deploy” to install “openlaszlo-3.4.x.war”.
Test your OpenLaszlo installation by accessing the following URL: http://localhost:8080/openlaszlo-3.4.x/
All right!
Note: if you’re planning to use OpenLaszlo in a live environment use the servlet (openlaszlo-3.3.3-servlet.war) instead of the dev kit. The dev kit contains extras like examples and documentation.
Installing Red5
Estimated time to complete: 1 minute
Next, we’re going to install Red5 in the same way.
Rename “red5-0.6rc1.war” into “red5.war” to get a nice deployment URL (context path) and deploy it.
Test your Red5 installation by accessing the following URL: http://localhost:8080/red5 Also try this “real” demo: http://localhost:8080/red5/flvdemo.html
Done!
What you’ve done
You’ve completed a successful installation of Tomcat, OpenLaszlo and Red5. The next step is writing an application which makes use of OpenLaszlo and Red5. In my next article, we’ll create a Laszlo-Red5 application.

