Wednesday, January 7, 2009

Installing Tomcat 5.5 + OpenLaszlo + Red5 Flash Server on Windows XP

Resource founded at http://weblogs.amtex.nl/media/users/admin/Installing_Tomcat_Openlaszlo_Red5.pdf


This are the very useful and convenient alternative way on setting up a server that needs ADOBE Flash Media Server which is very expensive. I recommend using an opensource server, the "red5". :)


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. In fact, it’s a
free Adobe® 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.3.3.war
red5-0.6rc1.war
Installing JRK + 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.3.3.war”.

Test your OpenLaszlo installation by accessing the following URL:
http://localhost:8080/openlaszlo-3.3.3/

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.

No comments:

Most Viewed