Installing Apache Tomcat 6 on Snow Leopard ( OSX 10.6 )

It’s been a long time since I worked on a JSP project and I’m now tasked with the setup of a workspace in Eclipse, this time I’m solely using OS X to develop on. Here are the steps I took to setup my local workspace.

Download the Apache Tomcat

Found under Binary Distribution as a tar.gz under ‘Core’

Move and untar

    $ cd /usr/local
    $ mv ~/Downloads/apache-tomcat-6.0.24.tar .
    $ tar -xzvf apache-tomcat-6.0.24.tar
    $ mv apache-tomcat-6.0.24 tomcat6
    

    Starting and Stopping Tomcat

    $ mkdir bin
    $ cd bin
    

    Create a file under called start_tomcat ( e.g. ~/bin/start_tomcat ) with the following contents:

    #!/bin/sh
    export CATALINA_HOME=/usr/local/tomcat6
    export JAVA_HOME=/usr
    $CATALINA_HOME/bin/startup.sh
    

    ..and another for stopping tomcat ( e.g. stop_tomcat )

    #!/bin/sh
    export CATALINA_HOME=/usr/local/tomcat6
    export JAVA_HOME=/usr
    $CATALINA_HOME/bin/shutdown.sh
    

    Make the files executable:

    $ chmod ug+x start_tomcat stop_tomcat
    

    Now you can start and stop tomcat with commands these commands:

    ~/bin/start_tomcat
    ~/bin/stop_tomcat
    

    Apple has some good docs on tomcat, even if they’re out of date.

    About the Author, Dan Cameron:

    I'm the owner and solution engineer , a web solutions company that specializes in web development including WordPress.

    I started my first blog in 2003 and transitioned to WordPress in 2004. Since moving to WordPress I've written a few plugins and themes for public consumption. Lately I'm busy engineering/building/coding and have only been able to share a few code snippets.

    If you're in need of some web development, web design or custom WordPress plugins and/or themes contact me, I'll be happy to discuss it with you.

    Read More »

    Comment Feed

    No Responses (yet)



    Some HTML is OK

    or, reply to this post via trackback.

    blog comments powered by Disqus