I just went through the same process (only using MS SQL Server 2000 instead of Oracle). It took me over a week to figure out what was going on. I'm all for the open source movement, but the lack of documentation has got to be the most frustrating thing I've ever dealt with.
Here's what I did, in summary: 1) install Tomcat 4. Verify Tomcat 4 (served content on port 8080, examples work). 2) install Apache 2 with DSO support, SSL and apxs. Verify Apache 2 (served content on port 80). 3) download the mod_webapp source, extract it. Read README.txt in the webapp directory after extracting the source. 3) download the Apache Portable Runtime (APR) source from CVS as stated in mod_webapp README.txt, build and install (note: I did not install ant as mentioned in the README.txt file). 4) build mod_webapp from source according to README.txt after APR is installed. Make sure the build/configure process is pointed to the right apxs (apache 1.3 or apache 2.0). configure does an "autosense" of which version of Apache you have based on which apxs it can find. 5) install mod_webapp according to INSTALL.txt 6) put the following into httpd.conf, verify with "$APACHE_HOME/bin/apachectl configtest": LoadModule webapp_module /usr/lib/apache/mod_webapp.so <IfModule mod_webapp.c> WebAppConnection warpConnection warp XXX.XXX.com:8008 WebAppInfo /webapp-info WebAppDeploy examples warpConnection /examples WebAppDeploy webdav warpConnection /webdav WebAppDeploy tomcat-docs warpConnection /tomcat-docs </IfModule> 7) in $CATALINA_HOME/conf/server.xml, on or about line 291 of 333, change the name parameter of the "Engine" directive to be the same as the ServerName directive in $APACHE_HOME/conf/httpd.conf. 8) Stop apache. 9) Stop tomcat...wait at least 10 seconds. Verify down with "ps -ef |grep java" 10) Start tomcat...wait at least 10 seconds. 11) Start apache. 12) Verify that tomcat examples work on port 80 (http://host.domain.com/examples/) Note that you need the trailing slash! Doing this got me the Tomcat servlets running from host.domain.com/examples (not host.domain.com:8080/examples which is Tomcat stand-alone), so I'm pretty sure everything is set. The Tomcat I used was the Standard version from: http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.3/bin/ The Apache I used was the standard apache 2.0.36 from one of the mirror sites. The mod_webapp connector I used was retrieved from: http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.3/src/ Hope this helps! Comments welcome. This is on a RH 7.2 machine, BTW. John Turner -----Original Message----- From: Edward Wilson [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 11, 2002 3:18 PM To: Tomcat Users List; [EMAIL PROTECTED] Subject: Connecting Apache 2 with Tomcat 4.x I would like to connect the latest version of Apache with the latest venison of Tomcat. It would be great to find a single doc that could show me how to do this quickly. I don't care about millisecond performance differentials or scalability. I am trying to upgrade a previous implementation that used Apache 1.3 with Tomcat 3.3. There doesn't seem to be a `clear and quick' way to do this. I'm getting caught up in a circular reference of you can do it this way, or that way, or even a third way, yet no signal doc actually takes me all the way through connecting and tweaking Apache 2 with Tomcat 4. There is even some talk about how the connector sub-projects have broken off from the server development and exist autonomously. I already have Apache 2 and Tomcat 4 running on RedHat 7.3 as well as a completed application running against Oracle. Everything is working great. My last issue is getting Apache to front-end the application and pass servlet control to Tomcat. I don't care which connector I use, time is limited, I wish to use whichever connector has the most complete documentation. Does anybody have a quick and furious way to get this done? Also, in the past, I was able to download a binary for intel/linux, this would be great to come across, somewhere I was reading that one would have to compile their own if using Apache 2, is this true? __________________________________________________ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
