Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Running Jakarta Tomcat on OS X Apps
This must be common knowledge by now but since no-one has mentioned it ... after you install the Developer Tools, the generic *nix distribution of Tomcat (an environment for working with Java Server Pages) works fine on MOSX.

The one you want is in this directory on the Jakarta Tomcat site, and the particular file you want is jakarta-tomcat-3.2.1.tar.gz. The 'Mac-ported' .sea & .hqx versions seem to have a classpath issue & look as if they are actually running in MRJ, not under OSX (sorry, I haven't had a really good look yet).

The version above runs exactly like on Linux - ie. started & stopped with the command-line, so you get to see errors & messages. One problem, with http on MOSX generally though, I simply can't access localhost from browsers running under Classic!

  • Currently 1.71 / 5
  You rated: 2 / 5 (7 votes cast)

Running Jakarta Tomcat on OS X | 5 comments | Create New Account
Click here to return to the 'Running Jakarta Tomcat on OS X' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
How do i?
Authored by: parel on Apr 12, '01 07:57:55PM

How can i intall this
can you help me?

[ Reply to This | # ]
Remember the port number!
Authored by: tomhackett on Apr 13, '01 03:24:33AM
I couldn't seem to get Tom Cat working for the longest time until I remembered to add on the port number so the URL would look like http://your-ip-address:8080/

Other tips for people running Tom Cat are that there is actually a symbolic Link for the JAVA_HOME location on MacOS X inside the Java Framework.

Also there is a pretty good website abot JSP for Macs at oddly enough. :)

- Tom Hackett

[ Reply to This | # ]
I've built a nice .pkg package installer
Authored by: MurrayTodd on May 14, '01 08:55:32PM

I'm working on a package installer to make Tomcat 3.2.1 (and as an added bonus, XML Apache Cocoon) run under OS X release 10.0. The package has the added benefits: (1) Tomcat automatically starts up when you start up OS X, (2) Tomcat runs cooperatively through Apache using mod_jk.

Check out my pages at

[ Reply to This | # ]
Running Jakarta Tomcat on OS X
Authored by: Youjie on Apr 23, '04 01:58:14PM

I'd like to know proper steps to make CLASSPATH in the way of Mac.
I'm beginner. It seems failure to read-out by ".tcshrc" file under Mac which specified some "jar" file. That is to let JAVA program I made to import particular Class.
For example : "javax.servlet.http.HttpServletRequest" of "Servlet.jar" plus JDBC Driver.

1) Package name is written in header of some JAVA files (Servlet, Bean, Interface). Compiler says "package javax.servlet.http does not exist" But the class file which was compiled in PC(= Windows, command prompt) can be able to work in my Macintosh. But compiler doesn't allow it to make class file after modifying sources (Servlet, Bean, Interface) in my Macintosh due to lack of package.

2) Specified JDBC Driver below :
Of course class-file including above line surely locate under context and it worked well unless one need database. In PC it runs well.

I prepared ".tcshrc" file and put it under root of Home directory. Following line written on it:
setenv CLASSPATH /usr/local/jakarta-tomcat-4.1.18/lib/mysql-connector-java-3.0.11-stable-bin.jar:.
setenv CLASSPATH /usr/local/jakarta-tomcat-4.1.18/common/lib/servlet.jar:.

Already make sure path of JDBC Driver (mysql-connector-java-3.0.11-stable-bin.jar) I set are same location.
Suspect CLASSPATH doesn't work recognition maybe?

Does anyone know how to do?

[ Reply to This | # ]
Running Jakarta Tomcat on OS X
Authored by: johndude on Jan 22, '07 02:41:52PM
There is a handy (and free) application for starting and stopping tomcat on OS X. Download from here

[ Reply to This | # ]