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
Next step is making Tomcat's launch and stop scripts executable: chmod ug+x /Library/Tomcat/bin/*.sh
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
Open a Terminal and make both scripts executable:
chmod ug+x ~/startTomcat.command
chmod ug+x ~/stopTomcat.command
Change ownership of the /Libaray/Tomcat folder hierarchy:
sudo chown -R your_username /Library/Tomcat
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.