Tried to get Apace-2.0.39 + Tomcat 4.x working based on the pointers here, and I must say I did not have too many problems. Fyi, I just built the native portions of the connectors (mod_jk.so, mod_jk2.so), and got mod_jk.so to work with (the binaries of ) Tomcat 4.0.4 and and 4.1.5 on multiple machines. I did not try to configure mod_jk2!
Here's a summary of what I did... Step 1 -------- make and install Apache 2.0.39 into /opt/apache2 Step 2 -------- - get tomcat-connectors from: http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.4/src/jakar ta-tomcat-connectors-4.0.4-src.tar.gz - extract into ${conn_dir} - Set up build.properties -- cd ${conn_dir}/jk -- cp build.properties.sample build.properties -- vi build.properties -- set tomcat40.home -- comment out tomcat41.home and tomcat33.home -- comment out everything except apache2.home in the webservers location section -- set debug=false, optimize=true, profile=false in compile-time options section -- add 'linux=true' as the last line of build.properties - Set up build.xml -- vi build.xml -- go to the native target section and change it to <target name="native" depends="jkant,detect,report" > <ant dir="native" antfile="build.xml" target="apache20" /> <ant dir="native2" antfile="build.xml" target="apache20" /> </target> - Build -- ant native This builds up both mod_jk.so and mod_jk2.so under ${conn_dir}/jk/build/jk/apache2 and ${conn_dir}/jk/build/jk2/apache2 Step 3 -------- Get Apache-2.0.39/mod_jk.so to work with Tomcat 4.0.x and 4.1.x with the .so built above - Put the following workers.properties in /opt/apache2/conf # Sample workers.properties worker.list=ajp13 # Definition for Ajp13 worker # worker.ajp13.port=8009 # worker.ajp13.host=localhost worker.ajp13.host=192.168.0.1 worker.ajp13.type=ajp13 - Put the following lines at the end of your httpd.conf LoadModule jk_module modules/mod_jk.so # AddModule mod_jk.c JkWorkersFile "/opt/apache2/conf/workers.properties" JkLogFile "/opt/apache2/logs/mod_jk.log" JkLogLevel info JkMount /*.jsp ajp13 JkMount /*.do ajp13 JkMount /servlet/* ajp13 JkMount /manager/* ajp13 - Start either Tomcat 4.0.x or 4.1.x on the machine which workers.properties is pointing to (make sure that the AJP13 connector on port 8009 is uncommented in server.xml), and try: http://apache2.host/examples/jsp/num/numguess.jsp - It should work! Cheers, - Lalit ----- Original Message ----- From: "Daniel Farinha" <[EMAIL PROTECTED]> To: "'Tomcat Users List'" <[EMAIL PROTECTED]> Sent: Saturday, July 06, 2002 10:11 PM Subject: RE: tomcat_4.0.4 + apache_2.0.39 + mod_jk2 (linux): a failed attempt > Of course! > > I did read somewhere that you can use mod_jk, but I must admit after so > many frustrating hours trying to make mod_jk2 work I forgot about that > and was just about to go back to Apache 1.3. > Thank you for reminding me, I have now linked tomcat4 and apache2 with > mod_jk. > > Still, in order to compile mod_jk from the connectors-4.0.4 source I had > first to compile the coyote code, and therefore hack the source as I > mentioned in my original post. This didn't happen with connectors-4.0.2. > A bit of a nuisance... > > Anyway, with this working my next task is to get it working with tomcat > and apache on separate boxes. More hours of frustration I bet ;) > I could hardly find any documentation regarding this kind of setup, can > anyone offer any useful pointers? > > Andrew, thanks again for the tip. > > Dan -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
