Was in a Taverna (http://taverna.sourceforge.net) workshop the other day and one of the exercises requires Tomcat to be installed, so I set out to find the quickest, as well as the easiest, way of installing Tomcat on my PowerBook. It turned out to be pretty straight-forward after a bit of Googling, and here is how:
Download the latest *Core* binary distributions of Tomcat from http://tomcat.apache.org (currently in 6.0.13 as of writing).
p.s. Do not download the Windows service installer.
Unzip the downloaded binary file into an empty folder of your choice and rename that folder from “apache-tomcat-x-x-xx” to something simpler, e.g. “Tomcat”.
Move that folder to a directory of your choice (preferably the “Library” directory under the Root, i.e. ~/Library/) and there you go the Tomcat is installed.
To test and see if your Tomcat installation is successful, start your Terminal and move to the “bin” folder within Tomcat directory (e.g. ~/Library/Tomcat/bin/) and run the following shell script:
and you should see something similar to the following info in your terminal:
/Library/Tomcat/bin andytseng$ ./startup.sh
Using CATALINA_BASE: /Library/Tomcat
Using CATALINA_HOME: /Library/Tomcat
Using CATALINA_TMPDIR: /Library/Tomcat/temp
Using JRE_HOME: /System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home
If you see the above information, then open your Web browser and type in the following into your URL:
To stop the Tomcat, issue the following command:
That’s it, simple!! 🙂