Carlsbad Cubes Wolf Paulus

mac-osx

Installing Tomcat 6.0.18 on OS X
By Wolf Paulus <wolf@wolfpaulus.com>

Posted Monday, August 18th, 2008

  1. Make Java 1.5 (or later) the default JRE
  2. Get the core distribution from http://tomcat.apache.org/ At the time of this writing that would be: apache-tomcat-6.0.18.tar.gz
  3. Unpacking will create a apache-tomcat-6.0.18 folder, probably on your desktop. Move this folder into /usr/local, like this:

    sudo mv ~/Desktop/apache-tomcat-6.0.18 /usr/local/
  4. To make it easy to replace this release with future releases, we are going to create a symbolic link that we are going to use when revering to Tomcat:

    sudo ln -s /usr/local/apache-tomcat-6.0.18 /Library/Tomcat
  5. Next step is making Tomcat's launch and stop scripts executable:
    chmod ug+x /Library/Tomcat/bin/*.sh
Tomcat
  1. Create startup and shutdown scripts:
    Startup:
    Open TextEdit and create a startTomcat.command file in your home folder ...



    Shutdown:
    Open TextEdit and create a stopTomcat.command file in your home folder ...



  2. Open a Terminal and make both scripts executable:
    • chmod ug+x ~/startTomcat.command
    • chmod ug+x ~/stopTomcat.command
  3. Change ownership of the /Libaray/Tomcat folder hierarchy:

    sudo chown -R your_username /Library/Tomcat
  4. Start Tomcat by simply clicking the startTomcat.command icon in your home folder.
    Test with http://localhost:8080

Instead of using the start and stop scripts, you may also want to check out activata's Tomcat Controller a tiny freeware app, providing a UI to quickly start/stop Tomcat.



Disclosure: This blog is written and edited by me, it contains my words and my opinions only, and does not contain any content which might present a conflict of interest.
I am not compensated to provide opinion on products, services, websites and various other topics. This blog does not accept any form of cash advertising, sponsorship, or paid topic insertions. However, I will and do accept and keep free products, services, and other forms of compensation from companies and organizations. All advertising is in the form of advertisements generated by a third party ad network and identified as such.
I will only endorse products or services that I believe, based on my expertise, are worthy of such endorsement. Any product claim, statistic, quote or other representation about a product or service should be verified with the manufacturer or provider.

Published on: Monday, August 18th, 2008  •  Category: [mac-osx]

Article URL : http://wolfpaulus.com/journal/mac-osx/tc6013.html