The Artima Developer Community
Sponsored Link

Java Buzz Forum
Installing Tomcat 6.0.x on OS X

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Wolf Paulus

Posts: 692
Nickname: wolfpaulus
Registered: Jan, 2004

Wolf Paulus is an experienced software developer focusing on Java, XML, Mac OS X, wireless/mobile ..
Installing Tomcat 6.0.x on OS X Posted: Aug 8, 2007 1:49 PM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by Wolf Paulus.
Original Post: Installing Tomcat 6.0.x on OS X
Feed Title: Wolf's Web Journal
Feed URL: http://wolfpaulus.com/feed/
Feed Description: Journal - dedicated to excellence, and motivated by enthusiasm to trying new things
Latest Java Buzz Posts
Latest Java Buzz Posts by Wolf Paulus
Latest Posts From Wolf's Web Journal

Advertisement

Tomcat
  1. Make Java 1.5 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.13.tar.gz
  3. Unpacking will create a apache-tomcat-6.0.13 folder, probably on your desktop. Move this folder into /usr/local, like this:

    sudo mv ~/Desktop/apache-tomcat-6.0.13 /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.13 /Library/Tomcat
  5. Next step is making Tomcat's launch and stop scripts executable:
    chmod ug+x /Library/Tomcat/bin/*.sh
  6. Create startup and shutdown scripts:
    Startup:
    Open TextEdit and create a startTomcat.command file in your home folder ...

    #!/bin/sh # -------------------------------------------------- # Start Script for the Tomcat Server # -------------------------------------------------- export CATALINA_HOME=/Library/Tomcat export JAVA_HOME=/Library/Java/Home $CATALINA_HOME/bin/startup.sh

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

    #!/bin/sh # --------------------------------------------------- # Start Script for the Tomcat Server # --------------------------------------------------- export CATALINA_HOME=/Library/Tomcat export JAVA_HOME=/Library/Java/Home $CATALINA_HOME/bin/shutdown.sh

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

    sudo chown -R your_username /Library/Tomcat
  9. 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.


Read: Installing Tomcat 6.0.x on OS X

Topic: links for 2007-07-30 from PeopleOverProcess.com Previous Topic   Next Topic Topic: Links for 2007-07-28 [del.icio.us]

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use