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

Detailed how-to on Tomcat and Apache Internet
I wrote a detailed account of how to set up Tomcat servlet container on MacOS X and how to integrate it with Apache. It includes instructions on building the elusive

I hope it is useful to folks!

[Editor: I haven't installed Tomcat on my machine, but just glancing at the page of instructions linked here shows them to be easy to follow and clearly written. Probably well worth the visit if you want to get Tomcat and Apache working happily in X.]
  • Currently 3.00 / 5
  You rated: 3 / 5 (3 votes cast)

Detailed how-to on Tomcat and Apache | 5 comments | Create New Account
Click here to return to the 'Detailed how-to on Tomcat and Apache' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
You can also try here....
Authored by: theolein on Jun 03, '01 07:06:40PM

[ Reply to This | # ]
You can also try here....
Authored by: theolein on Jun 03, '01 07:36:16PM

[ Reply to This | # ]
above link broken
Authored by: javaseeds on Aug 25, '01 04:51:59PM
This one is working as of 1700EDT 08/25/2001 cheers

[ Reply to This | # ]
Updated instructions for Apache and Tomcat
Authored by: lou on Jul 13, '02 02:36:00PM
There is now a set of instructions on the apple developers web for using tomcat and apache on OSX:

I found a couple of things that need to be changed, but otherwise it seems pretty complete.

For the installation and configuration of the Web applications module, mod_webapps, the instructions do not state that the file permissions need to be changed to make it executable:

chmod +x

I don't know if this is strictly required, but all the other shared libraries in this directory are marked executable.

For the configuration of the mod_webapps module, there are instructions for the configuration of the httpd.conf file. There's a line in the file that looks something like this:

WebAppConnection warpConnection warp localhost:8008

The specification of "localhost" may not work for your configuration unless you also have all line in the httpd.conf file that looks like this:

ServerName localhost

"localhost" is fine for a development server, but for production, you will want to replace "localhost" with the name of your server. There is an example of the ServerName configuration directive in the default Apache httpd.conf file that is commented out.

The example shows how to configure Apache to serve up the Tomcat examples application. Per the example, the line of the configuration file httpd.conf that looks like:

WebAppDeploy examples warpConnection /examples/

configures Apache to server up the Tomcat "examples" application. In order to serve up your own application you will have to add a similar line in the httpd.conf. For the example hello application on the Apple site, it would look like this:

WebAppDeploy mine warpConnection /mine/

This will server the example hello application via apache at http://localhost/mine/Hi. This was the most important detail missing from the example: you must have a WebAppDeploy configuration directive in the httpd.conf file for every Tomcat application you wish to serve through Apache.

[ Reply to This | # ]
Trouble with linking Apach + Tomcat
Authored by: toby_j on Oct 23, '02 09:45:21AM

When I try to launch apache I get:
sudo apachectl restart
/usr/sbin/apachectl restart: httpd not running, trying to start
Syntax error on line 288 of /etc/httpd/httpd.conf:
Cannot get socket address information
/usr/sbin/apachectl restart: httpd could not be started

I've got a static ip address which I've assigned to the serverName directive - ServerName + in the <IfModule> bit warp + am a bit frustrated! Would really appreciate some help!

[ Reply to This | # ]