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

Click here to return to the 'Updated instructions for Apache and Tomcat' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
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 | # ]