Thursday, March 10, 2005

Tomcat Live CD Howto

Trying to find a way to demo a web application for a client and having unknown firewall and system configuration issues, I decided to create a "live" cd with Embedded Tomcat.

An outline of the tasks for this project are:

  • Download Embedded Tomcat

  • build a wrapper/launcher for tomcat

  • package my web application into a war file

  • write a batch file to launch the app

  • write an Autorun.inf file to auto run the cd

  • Copy the Java SDK to the CD



First download the Embedded Tomcat (http://jakarta.apache.org/tomcat/) jakarta-tomcat-5.0.28-embed.zip

Next, create the project directories for the embedded server:
/embedded_server/lib
/embedded_server/src
/embedded_server/webapps
/embedded_server/conf

Copy all of the jars from the embedded tomcat download into the lib directory. Now, copy the war file for your project into the webapps directory (make sure your web app will run on Tomcat 5 first). Now you will need to write a Java class to get Tomcat started.

The Embedded Tomcat Launcher
The purpose of this item is to create a temporary work directory, create the engine, create a Context pointing to the war file, and start and stop the server.

permalink
Links to this post

2 Comments:

At 05 July, 2006 21:21, Anonymous Anonymous said...

Hi,

I'm student from Argentina. I think your post is so interesting.
Can you send me a detailed explanation of who create a Tomcat Live cd.
I need send my thesis to my tutor and I need find one easy way to run my web based software with jsp pages.
Thanks, and sorry for my bad english.
Ulises.

 
At 10 June, 2007 06:22, Anonymous Anonymous said...

Java, Tomcat, eclipse Live CD at
http://zartix.blogspot.com

 

Post a Comment

Subscribe to Post Comments [Atom]

<< Home

Links to this post on: