...
- Download the freeware BatChmod, a GUI wrapper around the Unix "chmod" command.
http://macchampion.com/arbysoft/
- Drap and drop the entire Tomcat folder onto BatChmod.
...
- Navigate to the Tomcat folder (apache-tomcat-5.5.16):
cd ~/apache-tomcat-5.5.16
- Run the startup script:
./bin/startup.sh
- You should see something like this:
Using CATALINA_BASE: /Users/basilbourque/apache-tomcat-5.5.16 Using CATALINA_HOME: /Users/basilbourque/apache-tomcat-5.5.16 Using CATALINA_TMPDIR: /Users/basilbourque/apache-tomcat-5.5.16/temp Using JRE_HOME: /System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home
- Notice that somehow the startup script(s) have used Java 5 on Mac OS X even though it is not the default Java runtime at the command line. I hope to parse that script later to discover how they did this.
...
- Add a rule to do port-forwarding from port 80 to Tomcat's default port 8080. Type this in the Terminal:
sudo ipfw add 100 fwd 127.0.0.1,8080 tcp from any to any 80 in
Or use this nifty program, another GUI wrapper around the ipfw command line, Simple Port Forwarder: http://www.4dresources.com/files/
The Sharing SysPref will get cranky when you add an ipfw rule behind its back; it disables its user interface. To use the Sharing SysPref again you'll have to clear that rule, the one we added and numbered 100. To delete a rule, either read the ipfw man page, or use Simple Port Forwarder again. Quit the System Preferences program, and re-launch it to re-enable its Firewall panel.
...
- Launch a web browser such as Safari.
- Goto: http://127.0.0.1/
Notice that we left off the port number this time, so the web browser defaults to port 80. Or you can explicitly say port 80: http://127.0.0.1:80/
- You should see the cute Tomcat logo on the welcome page.
- To be sure it is working, and not cached by the browser:
• Try another browser.
• Click the Reload button in the toolbar of the browser.
• Choose the Reload command, such as View > Reload Page in Safari.
(9) Walk the dog
- Enjoy an all-too-rare moment of computing satisfaction.
...