RE: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent machines with mod_jk
The lines like tomcat_home etc. in workers.properties are optional. (thanks Milt!) You only need the worker definitions (like port number, etc). I'm not sure about the Alias /manager question, that is a good question. You don't need mod_jk.so on the Tomcat box, its an Apache module. John -Original Message- From: Venkat Reddy Valluri [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 19, 2002 10:47 AM To: [EMAIL PROTECTED] Subject: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent machines with mod_jk Hi, I installed Apache 2.0.40 and Tomcat 4.0.4 on different Linux(RedHat) servers and tried to make apache connect to tomcat with mod_jk module, For this I did the following things 1) I installed Apache 2.0.40 on Machine 'A' and built mod_jk.so module (./configure --with-apxs=/usr/local/apache2/bin/apxs --with-java-home=/usr/java/j2sdk1.4.0_01), It was suceesfully done and got mod_jk.so 2) I installed Tomcat 4.0.4 on machine 'B' and copied mod_jk.so from machine 'A'(Apache machine) to Machine 'B' (Tomcat machine), and modified server.xml as per the documenatation here Upon start up of tomact I got mod_jk.conf, I copied it from machine B to Machine A(Apache Machine) and included it in httpd.conf Here I did not understand Following things 1) in mod_jk.conf (on Machine 'A' Apache) Alias /manager /opt/catalina/webapps/manager -- here what I need to put, because the path mentioned is there on machine 'B' 2)in workesr.properties (on machine 'A' Apache) worker.ajp13.host= machine 'B' I am sure This is ok workers.tomcat_home=/opt/catalina workers.java_home=/opt/java/j2sdk1.4.0_01, here what I need to set up for these (because catalina_home and java_home are there in Machine 'B') here I didn't get any error in mod_jk.log (on machine 'A') Any help greatly appreciated ThksRgds Venkat -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent machines with mod_jk
In tomcat box I added following lines as per documentation Server port=8005 shutdown=SHUTDOWN debug=0 Listener className=org.apache.ajp.tomcat4.config.ApacheConfig modJk=/usr/local/apache2/modules/mod_jk.so / Host name=machine 'B' debug=1 appBase=webapps unpackWARs=true Listener className=org.apache.ajp.tomcat4.config.ApacheConfig append=true forwardAll=false modJk=/usr/local/apache2/modules/mod_jk.so / That's why I had to copy it from apache box to TOmcat box, Here When I tried apache tomcat on same box, they worked well, but when I tired on different boxes I understood that Apache is not at all connecting to TOmcat box, but in mod_jk.log Every thing seems to be fine Thanks in advance Venkat -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: Thu 9/19/2002 11:26 AM To: 'Tomcat Users List' Cc: Subject:RE: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent machines with mod_jk The lines like tomcat_home etc. in workers.properties are optional. (thanks Milt!) You only need the worker definitions (like port number, etc). I'm not sure about the Alias /manager question, that is a good question. You don't need mod_jk.so on the Tomcat box, its an Apache module. John -Original Message- From: Venkat Reddy Valluri [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 19, 2002 10:47 AM To: [EMAIL PROTECTED] Subject: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent machines with mod_jk Hi, I installed Apache 2.0.40 and Tomcat 4.0.4 on different Linux(RedHat) servers and tried to make apache connect to tomcat with mod_jk module, For this I did the following things 1) I installed Apache 2.0.40 on Machine 'A' and built mod_jk.so module (./configure --with-apxs=/usr/local/apache2/bin/apxs --with-java-home=/usr/java/j2sdk1.4.0_01), It was suceesfully done and got mod_jk.so 2) I installed Tomcat 4.0.4 on machine 'B' and copied mod_jk.so from machine 'A'(Apache machine) to Machine 'B' (Tomcat machine), and modified server.xml as per the documenatation here Upon start up of tomact I got mod_jk.conf, I copied it from machine B to Machine A(Apache Machine) and included it in httpd.conf Here I did not understand Following things 1) in mod_jk.conf (on Machine 'A' Apache) Alias /manager /opt/catalina/webapps/manager -- here what I need to put, because the path mentioned is there on machine 'B' 2)in workesr.properties (on machine 'A' Apache) worker.ajp13.host= machine 'B' I am sure This is ok workers.tomcat_home=/opt/catalina workers.java_home=/opt/java/j2sdk1.4.0_01, here what I need to set up for these (because catalina_home and java_home are there in Machine 'B') here I didn't get any error in mod_jk.log (on machine 'A') Any help greatly appreciated ThksRgds Venkat -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] winmail.dat -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent machines with mod_jk
Hi John, I followed your documenataion only, That is really awesome, so many of tomcat guys suggested your documentation Tnank you very much for great help, Can you help me connecting apache and tomcat installed on differnet boxes Thks in advance Venkat -Original Message- From: Venkat Reddy Valluri Sent: Thu 9/19/2002 11:39 AM To: Tomcat Users List Cc: Subject:RE: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent machines with mod_jk In tomcat box I added following lines as per documentation Server port=8005 shutdown=SHUTDOWN debug=0 Listener className=org.apache.ajp.tomcat4.config.ApacheConfig modJk=/usr/local/apache2/modules/mod_jk.so / Host name=machine 'B' debug=1 appBase=webapps unpackWARs=true Listener className=org.apache.ajp.tomcat4.config.ApacheConfig append=true forwardAll=false modJk=/usr/local/apache2/modules/mod_jk.so / That's why I had to copy it from apache box to TOmcat box, Here When I tried apache tomcat on same box, they worked well, but when I tired on different boxes I understood that Apache is not at all connecting to TOmcat box, but in mod_jk.log Every thing seems to be fine Thanks in advance Venkat -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: Thu 9/19/2002 11:26 AM To: 'Tomcat Users List' Cc: Subject:RE: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent machines with mod_jk The lines like tomcat_home etc. in workers.properties are optional. (thanks Milt!) You only need the worker definitions (like port number, etc). I'm not sure about the Alias /manager question, that is a good question. You don't need mod_jk.so on the Tomcat box, its an Apache module. John -Original Message- From: Venkat Reddy Valluri [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 19, 2002 10:47 AM To: [EMAIL PROTECTED] Subject: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent machines with mod_jk Hi, I installed Apache 2.0.40 and Tomcat 4.0.4 on different Linux(RedHat) servers and tried to make apache connect to tomcat with mod_jk module, For this I did the following things 1) I installed Apache 2.0.40 on Machine 'A' and built mod_jk.so module (./configure --with-apxs=/usr/local/apache2/bin/apxs --with-java-home=/usr/java/j2sdk1.4.0_01), It was suceesfully done and got mod_jk.so 2) I installed Tomcat 4.0.4 on machine 'B' and copied mod_jk.so from machine 'A'(Apache machine) to Machine 'B' (Tomcat machine), and modified server.xml as per the documenatation here Upon start up of tomact I got mod_jk.conf, I copied it from machine B to Machine A(Apache Machine) and included it in httpd.conf Here I did not understand Following things 1) in mod_jk.conf (on Machine 'A' Apache) Alias /manager /opt/catalina/webapps/manager -- here what I need to put, because the path mentioned is there on machine 'B' 2)in workesr.properties (on machine 'A' Apache) worker.ajp13.host= machine 'B' I am sure This is ok workers.tomcat_home=/opt/catalina workers.java_home=/opt/java/j2sdk1.4.0_01, here what I need to set up for these (because catalina_home and java_home are there in Machine 'B') here I didn't get any error in mod_jk.log (on machine 'A') Any help greatly appreciated ThksRgds Venkat -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] winmail.dat -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent machines with mod_jk
If you want to put Apache and Tomcat on separate boxes, and still run the Tomcat examples, you will have to copy the static (.html) files from the tomcat box to the apache box so that apache can serve them. -Mike Schulz -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 19, 2002 10:26 AM To: 'Tomcat Users List' Subject: RE: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent machines with mod_jk The lines like tomcat_home etc. in workers.properties are optional. (thanks Milt!) You only need the worker definitions (like port number, etc). I'm not sure about the Alias /manager question, that is a good question. You don't need mod_jk.so on the Tomcat box, its an Apache module. John -Original Message- From: Venkat Reddy Valluri [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 19, 2002 10:47 AM To: [EMAIL PROTECTED] Subject: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent machines with mod_jk Hi, I installed Apache 2.0.40 and Tomcat 4.0.4 on different Linux(RedHat) servers and tried to make apache connect to tomcat with mod_jk module, For this I did the following things 1) I installed Apache 2.0.40 on Machine 'A' and built mod_jk.so module (./configure --with-apxs=/usr/local/apache2/bin/apxs --with-java-home=/usr/java/j2sdk1.4.0_01), It was suceesfully done and got mod_jk.so 2) I installed Tomcat 4.0.4 on machine 'B' and copied mod_jk.so from machine 'A'(Apache machine) to Machine 'B' (Tomcat machine), and modified server.xml as per the documenatation here Upon start up of tomact I got mod_jk.conf, I copied it from machine B to Machine A(Apache Machine) and included it in httpd.conf Here I did not understand Following things 1) in mod_jk.conf (on Machine 'A' Apache) Alias /manager /opt/catalina/webapps/manager -- here what I need to put, because the path mentioned is there on machine 'B' 2)in workesr.properties (on machine 'A' Apache) worker.ajp13.host= machine 'B' I am sure This is ok workers.tomcat_home=/opt/catalina workers.java_home=/opt/java/j2sdk1.4.0_01, here what I need to set up for these (because catalina_home and java_home are there in Machine 'B') here I didn't get any error in mod_jk.log (on machine 'A') Any help greatly appreciated ThksRgds Venkat -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent machines with mod_jk
I wish I could help more, but I haven't had the need to do separate-machine Apache + Tomcat, so all I know is what's in the documentation and what's been posted to the list. I haven't tried it at all. As far as I know, you set things up according to this URL: http://www.ubeans.com/tomcat and then you just change the host parameter in workers.properties to be the fully-qualified domain name of the Tomcat host (or perhaps the IP address would be better, but then I'm not sure that Tomcat would get the host header right). Maybe this weekend I will give setting these up on different boxes a shot, if I have time. It would be an interesting experiment. John -Original Message- From: Venkat Reddy Valluri [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 19, 2002 11:44 AM To: Tomcat Users List Subject: RE: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent machines with mod_jk Hi John, I followed your documenataion only, That is really awesome, so many of tomcat guys suggested your documentation Tnank you very much for great help, Can you help me connecting apache and tomcat installed on differnet boxes Thks in advance Venkat -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent machines with mod_jk
Even though I didn't copy, Atleast Apche should have connected to tomcat and I should have executed jsp pages existed on tomcat box, here apache is serving some static files which are existing on apache boxe, but when I tried to execute http://www.xxx.com/examples/(in mod_jk.conf jkmount /examples/* ajp13) it is supposed to connect to tomcat box and execute jsp's, but it is not recognising them, because it is not even connected to tomcat -Original Message- From: Michael Schulz [mailto:[EMAIL PROTECTED]] Sent: Thu 9/19/2002 11:46 AM To: Tomcat Users List Cc: Subject:RE: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent machines with mod_jk If you want to put Apache and Tomcat on separate boxes, and still run the Tomcat examples, you will have to copy the static (.html) files from the tomcat box to the apache box so that apache can serve them. -Mike Schulz -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 19, 2002 10:26 AM To: 'Tomcat Users List' Subject: RE: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent machines with mod_jk The lines like tomcat_home etc. in workers.properties are optional. (thanks Milt!) You only need the worker definitions (like port number, etc). I'm not sure about the Alias /manager question, that is a good question. You don't need mod_jk.so on the Tomcat box, its an Apache module. John -Original Message- From: Venkat Reddy Valluri [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 19, 2002 10:47 AM To: [EMAIL PROTECTED] Subject: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent machines with mod_jk Hi, I installed Apache 2.0.40 and Tomcat 4.0.4 on different Linux(RedHat) servers and tried to make apache connect to tomcat with mod_jk module, For this I did the following things 1) I installed Apache 2.0.40 on Machine 'A' and built mod_jk.so module (./configure --with-apxs=/usr/local/apache2/bin/apxs --with-java-home=/usr/java/j2sdk1.4.0_01), It was suceesfully done and got mod_jk.so 2) I installed Tomcat 4.0.4 on machine 'B' and copied mod_jk.so from machine 'A'(Apache machine) to Machine 'B' (Tomcat machine), and modified server.xml as per the documenatation here Upon start up of tomact I got mod_jk.conf, I copied it from machine B to Machine A(Apache Machine) and included it in httpd.conf Here I did not understand Following things 1) in mod_jk.conf (on Machine 'A' Apache) Alias /manager /opt/catalina/webapps/manager -- here what I need to put, because the path mentioned is there on machine 'B' 2)in workesr.properties (on machine 'A' Apache) worker.ajp13.host= machine 'B' I am sure This is ok workers.tomcat_home=/opt/catalina workers.java_home=/opt/java/j2sdk1.4.0_01, here what I need to set up for these (because catalina_home and java_home are there in Machine 'B') here I didn't get any error in mod_jk.log (on machine 'A') Any help greatly appreciated ThksRgds Venkat -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] winmail.dat -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent machines with mod_jk
Thank you very much john, I wish you could havce been succesful Thks Venkat -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: Thu 9/19/2002 11:54 AM To: 'Tomcat Users List' Cc: Subject:RE: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent machines with mod_jk I wish I could help more, but I haven't had the need to do separate-machine Apache + Tomcat, so all I know is what's in the documentation and what's been posted to the list. I haven't tried it at all. As far as I know, you set things up according to this URL: http://www.ubeans.com/tomcat and then you just change the host parameter in workers.properties to be the fully-qualified domain name of the Tomcat host (or perhaps the IP address would be better, but then I'm not sure that Tomcat would get the host header right). Maybe this weekend I will give setting these up on different boxes a shot, if I have time. It would be an interesting experiment. John -Original Message- From: Venkat Reddy Valluri [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 19, 2002 11:44 AM To: Tomcat Users List Subject: RE: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent machines with mod_jk Hi John, I followed your documenataion only, That is really awesome, so many of tomcat guys suggested your documentation Tnank you very much for great help, Can you help me connecting apache and tomcat installed on differnet boxes Thks in advance Venkat -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] winmail.dat -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent machines with mod_jk
Venkat Reddy Valluri wrote: Hi John, I followed your documenataion only, That is really awesome, so many of tomcat guys suggested your documentation Yes I agree... of course u can always make a donation if the project is successful. Wonder what John does -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent machines with mod_jk
I *just* completed a successful configuration of Apache 2.0.40 and Tomcat 4.0.4 using the mod_jk.so connector (provided by John Turner, thanks John) on RedHat Linux 7.3 where Apache and Tomcat are running on separate machines. If Apache is not connecting to tomcat, then you should look on the Apache box for the cause (assuming that the Tomcat box is running! g). In your httpd.conf file, there should be two directives, JkLogFile and JkLogLevel. Set the JkLogLevel value to debug and restart Apache. Then when you make a request, you should be able to see what is happening via the log file. Note: If you followed John's instructions for configuring the system, you will have a problem because those instructions depend on the Tomcat listener (ApacheConfig) to generate the mod_jk.conf file. This won't work if tomcat and apache are on separate boxes, so you'll have to do that part manually (or copy the generated file from the tomcat box to the apache box). If your httpd.conf file contains this directive: include /usr/local/tomcat/conf/auto/mod_jk.conf then you will have problems, because tomcat is not on the apache box. -Mike Schulz -Original Message- From: Venkat Reddy Valluri [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 19, 2002 10:56 AM To: Tomcat Users List Subject: RE: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent machines with mod_jk Even though I didn't copy, Atleast Apche should have connected to tomcat and I should have executed jsp pages existed on tomcat box, here apache is serving some static files which are existing on apache boxe, but when I tried to execute http://www.xxx.com/examples/(in mod_jk.conf jkmount /examples/* ajp13) it is supposed to connect to tomcat box and execute jsp's, but it is not recognising them, because it is not even connected to tomcat -Original Message- From: Michael Schulz [mailto:[EMAIL PROTECTED]] Sent: Thu 9/19/2002 11:46 AM To: Tomcat Users List Cc: Subject:RE: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent machines with mod_jk If you want to put Apache and Tomcat on separate boxes, and still run the Tomcat examples, you will have to copy the static (.html) files from the tomcat box to the apache box so that apache can serve them. -Mike Schulz -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 19, 2002 10:26 AM To: 'Tomcat Users List' Subject: RE: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent machines with mod_jk The lines like tomcat_home etc. in workers.properties are optional. (thanks Milt!) You only need the worker definitions (like port number, etc). I'm not sure about the Alias /manager question, that is a good question. You don't need mod_jk.so on the Tomcat box, its an Apache module. John -Original Message- From: Venkat Reddy Valluri [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 19, 2002 10:47 AM To: [EMAIL PROTECTED] Subject: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent machines with mod_jk Hi, I installed Apache 2.0.40 and Tomcat 4.0.4 on different Linux(RedHat) servers and tried to make apache connect to tomcat with mod_jk module, For this I did the following things 1) I installed Apache 2.0.40 on Machine 'A' and built mod_jk.so module (./configure --with-apxs=/usr/local/apache2/bin/apxs --with-java-home=/usr/java/j2sdk1.4.0_01), It was suceesfully done and got mod_jk.so 2) I installed Tomcat 4.0.4 on machine 'B' and copied mod_jk.so from machine 'A'(Apache machine) to Machine 'B' (Tomcat machine), and modified server.xml as per the documenatation here Upon start up of tomact I got mod_jk.conf, I copied it from machine B to Machine A(Apache Machine) and included it in httpd.conf Here I did not understand Following things 1) in mod_jk.conf (on Machine 'A' Apache) Alias /manager /opt/catalina/webapps/manager -- here what I need to put, because the path mentioned is there on machine 'B' 2)in workesr.properties (on machine 'A' Apache) worker.ajp13.host= machine 'B' I am sure This is ok workers.tomcat_home=/opt/catalina workers.java_home=/opt/java/j2sdk1.4.0_01, here what I need to set up for these (because catalina_home and java_home are there in Machine 'B') here I didn't get any error in mod_jk.log (on machine 'A') Any help greatly appreciated ThksRgds Venkat attachment: winmail.dat -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent machines with mod_jk
Any thoughts of compiling a HOWTO, by chance? Hint, hint. :) John -Original Message- From: Michael Schulz [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 19, 2002 12:18 PM To: Tomcat Users List Subject: RE: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent machines with mod_jk I *just* completed a successful configuration of Apache 2.0.40 and Tomcat 4.0.4 using the mod_jk.so connector (provided by John Turner, thanks John) on RedHat Linux 7.3 where Apache and Tomcat are running on separate machines. If Apache is not connecting to tomcat, then you should look on the Apache box for the cause (assuming that the Tomcat box is running! g). In your httpd.conf file, there should be two directives, JkLogFile and JkLogLevel. Set the JkLogLevel value to debug and restart Apache. Then when you make a request, you should be able to see what is happening via the log file. Note: If you followed John's instructions for configuring the system, you will have a problem because those instructions depend on the Tomcat listener (ApacheConfig) to generate the mod_jk.conf file. This won't work if tomcat and apache are on separate boxes, so you'll have to do that part manually (or copy the generated file from the tomcat box to the apache box). If your httpd.conf file contains this directive: include /usr/local/tomcat/conf/auto/mod_jk.conf then you will have problems, because tomcat is not on the apache box. -Mike Schulz -Original Message- From: Venkat Reddy Valluri [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 19, 2002 10:56 AM To: Tomcat Users List Subject: RE: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent machines with mod_jk Even though I didn't copy, Atleast Apche should have connected to tomcat and I should have executed jsp pages existed on tomcat box, here apache is serving some static files which are existing on apache boxe, but when I tried to execute http://www.xxx.com/examples/(in mod_jk.conf jkmount /examples/* ajp13) it is supposed to connect to tomcat box and execute jsp's, but it is not recognising them, because it is not even connected to tomcat -Original Message- From: Michael Schulz [mailto:[EMAIL PROTECTED]] Sent: Thu 9/19/2002 11:46 AM To: Tomcat Users List Cc: Subject: RE: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent machines with mod_jk If you want to put Apache and Tomcat on separate boxes, and still run the Tomcat examples, you will have to copy the static (.html) files from the tomcat box to the apache box so that apache can serve them. -Mike Schulz -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 19, 2002 10:26 AM To: 'Tomcat Users List' Subject: RE: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent machines with mod_jk The lines like tomcat_home etc. in workers.properties are optional. (thanks Milt!) You only need the worker definitions (like port number, etc). I'm not sure about the Alias /manager question, that is a good question. You don't need mod_jk.so on the Tomcat box, its an Apache module. John -Original Message- From: Venkat Reddy Valluri [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 19, 2002 10:47 AM To: [EMAIL PROTECTED] Subject: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent machines with mod_jk Hi, I installed Apache 2.0.40 and Tomcat 4.0.4 on different Linux(RedHat) servers and tried to make apache connect to tomcat with mod_jk module, For this I did the following things 1) I installed Apache 2.0.40 on Machine 'A' and built mod_jk.so module (./configure --with-apxs=/usr/local/apache2/bin/apxs --with-java-home=/usr/java/j2sdk1.4.0_01), It was suceesfully done and got mod_jk.so 2) I installed Tomcat 4.0.4 on machine 'B' and copied mod_jk.so from machine 'A'(Apache machine) to Machine 'B' (Tomcat machine), and modified server.xml as per the documenatation here Upon start up of tomact I got mod_jk.conf, I copied it from machine B to Machine A(Apache Machine) and included it in httpd.conf Here I did not understand Following things 1) in mod_jk.conf (on Machine 'A' Apache) Alias /manager /opt/catalina/webapps/manager -- here what I need to put, because the path mentioned is there on machine 'B' 2)in workesr.properties (on machine 'A' Apache) worker.ajp13.host= machine 'B' I am sure This is ok workers.tomcat_home=/opt/catalina workers.java_home=/opt/java/j2sdk1.4.0_01, here what I need to set up for these (because catalina_home and java_home are there in Machine 'B') here I didn't get any error in mod_jk.log (on machine 'A') Any help
RE: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent machines with mod_jk
I was getting to that, but I forget to mention it before I hit send. (:o) -Mike -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 19, 2002 11:22 AM To: 'Tomcat Users List' Subject: RE: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent machines with mod_jk Any thoughts of compiling a HOWTO, by chance? Hint, hint. :) John -Original Message- From: Michael Schulz [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 19, 2002 12:18 PM To: Tomcat Users List Subject: RE: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent machines with mod_jk I *just* completed a successful configuration of Apache 2.0.40 and Tomcat 4.0.4 using the mod_jk.so connector (provided by John Turner, thanks John) on RedHat Linux 7.3 where Apache and Tomcat are running on separate machines. If Apache is not connecting to tomcat, then you should look on the Apache box for the cause (assuming that the Tomcat box is running! g). In your httpd.conf file, there should be two directives, JkLogFile and JkLogLevel. Set the JkLogLevel value to debug and restart Apache. Then when you make a request, you should be able to see what is happening via the log file. Note: If you followed John's instructions for configuring the system, you will have a problem because those instructions depend on the Tomcat listener (ApacheConfig) to generate the mod_jk.conf file. This won't work if tomcat and apache are on separate boxes, so you'll have to do that part manually (or copy the generated file from the tomcat box to the apache box). If your httpd.conf file contains this directive: include /usr/local/tomcat/conf/auto/mod_jk.conf then you will have problems, because tomcat is not on the apache box. -Mike Schulz -Original Message- From: Venkat Reddy Valluri [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 19, 2002 10:56 AM To: Tomcat Users List Subject: RE: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent machines with mod_jk Even though I didn't copy, Atleast Apche should have connected to tomcat and I should have executed jsp pages existed on tomcat box, here apache is serving some static files which are existing on apache boxe, but when I tried to execute http://www.xxx.com/examples/(in mod_jk.conf jkmount /examples/* ajp13) it is supposed to connect to tomcat box and execute jsp's, but it is not recognising them, because it is not even connected to tomcat -Original Message- From: Michael Schulz [mailto:[EMAIL PROTECTED]] Sent: Thu 9/19/2002 11:46 AM To: Tomcat Users List Cc: Subject: RE: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent machines with mod_jk If you want to put Apache and Tomcat on separate boxes, and still run the Tomcat examples, you will have to copy the static (.html) files from the tomcat box to the apache box so that apache can serve them. -Mike Schulz -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 19, 2002 10:26 AM To: 'Tomcat Users List' Subject: RE: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent machines with mod_jk The lines like tomcat_home etc. in workers.properties are optional. (thanks Milt!) You only need the worker definitions (like port number, etc). I'm not sure about the Alias /manager question, that is a good question. You don't need mod_jk.so on the Tomcat box, its an Apache module. John -Original Message- From: Venkat Reddy Valluri [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 19, 2002 10:47 AM To: [EMAIL PROTECTED] Subject: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent machines with mod_jk Hi, I installed Apache 2.0.40 and Tomcat 4.0.4 on different Linux(RedHat) servers and tried to make apache connect to tomcat with mod_jk module, For this I did the following things 1) I installed Apache 2.0.40 on Machine 'A' and built mod_jk.so module (./configure --with-apxs=/usr/local/apache2/bin/apxs --with-java-home=/usr/java/j2sdk1.4.0_01), It was suceesfully done and got mod_jk.so 2) I installed Tomcat 4.0.4 on machine 'B' and copied mod_jk.so from machine 'A'(Apache machine) to Machine 'B' (Tomcat machine), and modified server.xml as per the documenatation here Upon start up of tomact I got mod_jk.conf, I copied it from machine B to Machine A(Apache Machine) and included it in httpd.conf Here I did not understand Following things 1) in mod_jk.conf (on Machine 'A' Apache) Alias /manager /opt/catalina/webapps/manager -- here what I need to put, because the path mentioned is there on machine 'B' 2)in workesr.properties (on machine 'A' Apache) worker.ajp13.host= machine 'B' I am sure This
RE: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent machines with mod_jk
Cool! Can't wait to see it. John -Original Message- From: Michael Schulz [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 19, 2002 12:23 PM To: Tomcat Users List Subject: RE: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent machines with mod_jk I was getting to that, but I forget to mention it before I hit send. (:o) -Mike -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 19, 2002 11:22 AM To: 'Tomcat Users List' Subject: RE: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent machines with mod_jk Any thoughts of compiling a HOWTO, by chance? Hint, hint. :) John -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent machines with mod_jk
Hi Michael, Can you pl be more specific abou how to configure tomcat server.xml and how to generate mod_jk.conf manually Thks in advance Venkat -Original Message- From: Michael Schulz [mailto:[EMAIL PROTECTED]] Sent: Thu 9/19/2002 12:23 PM To: Tomcat Users List Cc: Subject:RE: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent machines with mod_jk I was getting to that, but I forget to mention it before I hit send. (:o) -Mike -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 19, 2002 11:22 AM To: 'Tomcat Users List' Subject: RE: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent machines with mod_jk Any thoughts of compiling a HOWTO, by chance? Hint, hint. :) John -Original Message- From: Michael Schulz [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 19, 2002 12:18 PM To: Tomcat Users List Subject: RE: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent machines with mod_jk I *just* completed a successful configuration of Apache 2.0.40 and Tomcat 4.0.4 using the mod_jk.so connector (provided by John Turner, thanks John) on RedHat Linux 7.3 where Apache and Tomcat are running on separate machines. If Apache is not connecting to tomcat, then you should look on the Apache box for the cause (assuming that the Tomcat box is running! g). In your httpd.conf file, there should be two directives, JkLogFile and JkLogLevel. Set the JkLogLevel value to debug and restart Apache. Then when you make a request, you should be able to see what is happening via the log file. Note: If you followed John's instructions for configuring the system, you will have a problem because those instructions depend on the Tomcat listener (ApacheConfig) to generate the mod_jk.conf file. This won't work if tomcat and apache are on separate boxes, so you'll have to do that part manually (or copy the generated file from the tomcat box to the apache box). If your httpd.conf file contains this directive: include /usr/local/tomcat/conf/auto/mod_jk.conf then you will have problems, because tomcat is not on the apache box. -Mike Schulz -Original Message- From: Venkat Reddy Valluri [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 19, 2002 10:56 AM To: Tomcat Users List Subject: RE: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent machines with mod_jk Even though I didn't copy, Atleast Apche should have connected to tomcat and I should have executed jsp pages existed on tomcat box, here apache is serving some static files which are existing on apache boxe, but when I tried to execute http://www.xxx.com/examples/(in mod_jk.conf jkmount /examples/* ajp13) it is supposed to connect to tomcat box and execute jsp's, but it is not recognising them, because it is not even connected to tomcat -Original Message- From: Michael Schulz [mailto:[EMAIL PROTECTED]] Sent: Thu 9/19/2002 11:46 AM To: Tomcat Users List Cc: Subject: RE: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent machines with mod_jk If you want to put Apache and Tomcat on separate boxes, and still run the Tomcat examples, you will have to copy the static (.html) files from the tomcat box to the apache box so that apache can serve them. -Mike Schulz -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 19, 2002 10:26 AM To: 'Tomcat Users List' Subject: RE: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent machines with mod_jk The lines like tomcat_home etc. in workers.properties are optional. (thanks Milt!) You only need the worker definitions (like port number, etc). I'm not sure about the Alias /manager question, that is a good question. You don't need mod_jk.so on the Tomcat box, its an Apache module. John -Original Message- From: Venkat Reddy Valluri [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 19, 2002 10:47 AM To: [EMAIL PROTECTED] Subject: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent machines with mod_jk Hi, I installed Apache 2.0.40 and Tomcat 4.0.4 on different Linux(RedHat) servers and tried to make apache connect to tomcat with mod_jk module, For this I did the following things 1) I installed Apache 2.0.40 on Machine 'A' and built mod_jk.so module (./configure --with-apxs=/usr/local/apache2/bin/apxs --with-java-home=/usr/java/j2sdk1.4.0_01), It was suceesfully done and got mod_jk.so 2) I installed Tomcat 4.0.4 on machine 'B' and copied mod_jk.so from machine 'A'(Apache machine) to Machine 'B' (Tomcat machine), and modified server.xml as per the documenatation here Upon start up of tomact I got mod_jk.conf, I copied it from
RE: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent machines with mod_jk
Venkat, Yes, I will give you more details, however, I've got higher priority things to do at this moment, so it will take me a few hours before I can document the details. -Mike Schulz -Original Message- From: Venkat Reddy Valluri [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 19, 2002 12:54 PM To: Tomcat Users List Subject: RE: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent machines with mod_jk Hi Michael, Can you pl be more specific abou how to configure tomcat server.xml and how to generate mod_jk.conf manually Thks in advance Venkat -Original Message- From: Michael Schulz [mailto:[EMAIL PROTECTED]] Sent: Thu 9/19/2002 12:23 PM To: Tomcat Users List Cc: Subject:RE: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent machines with mod_jk I was getting to that, but I forget to mention it before I hit send. (:o) -Mike -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 19, 2002 11:22 AM To: 'Tomcat Users List' Subject: RE: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent machines with mod_jk Any thoughts of compiling a HOWTO, by chance? Hint, hint. :) John -Original Message- From: Michael Schulz [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 19, 2002 12:18 PM To: Tomcat Users List Subject: RE: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent machines with mod_jk I *just* completed a successful configuration of Apache 2.0.40 and Tomcat 4.0.4 using the mod_jk.so connector (provided by John Turner, thanks John) on RedHat Linux 7.3 where Apache and Tomcat are running on separate machines. If Apache is not connecting to tomcat, then you should look on the Apache box for the cause (assuming that the Tomcat box is running! g). In your httpd.conf file, there should be two directives, JkLogFile and JkLogLevel. Set the JkLogLevel value to debug and restart Apache. Then when you make a request, you should be able to see what is happening via the log file. Note: If you followed John's instructions for configuring the system, you will have a problem because those instructions depend on the Tomcat listener (ApacheConfig) to generate the mod_jk.conf file. This won't work if tomcat and apache are on separate boxes, so you'll have to do that part manually (or copy the generated file from the tomcat box to the apache box). If your httpd.conf file contains this directive: include /usr/local/tomcat/conf/auto/mod_jk.conf then you will have problems, because tomcat is not on the apache box. -Mike Schulz -Original Message- From: Venkat Reddy Valluri [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 19, 2002 10:56 AM To: Tomcat Users List Subject: RE: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent machines with mod_jk Even though I didn't copy, Atleast Apche should have connected to tomcat and I should have executed jsp pages existed on tomcat box, here apache is serving some static files which are existing on apache boxe, but when I tried to execute http://www.xxx.com/examples/(in mod_jk.conf jkmount /examples/* ajp13) it is supposed to connect to tomcat box and execute jsp's, but it is not recognising them, because it is not even connected to tomcat -Original Message- From: Michael Schulz [mailto:[EMAIL PROTECTED]] Sent: Thu 9/19/2002 11:46 AM To: Tomcat Users List Cc: Subject: RE: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent machines with mod_jk If you want to put Apache and Tomcat on separate boxes, and still run the Tomcat examples, you will have to copy the static (.html) files from the tomcat box to the apache box so that apache can serve them. -Mike Schulz -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 19, 2002 10:26 AM To: 'Tomcat Users List' Subject: RE: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent machines with mod_jk The lines like tomcat_home etc. in workers.properties are optional. (thanks Milt!) You only need the worker definitions (like port number, etc). I'm not sure about the Alias /manager question, that is a good question. You don't need mod_jk.so on the Tomcat box, its an Apache module. John -Original Message- From: Venkat Reddy Valluri [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 19, 2002 10:47 AM To: [EMAIL PROTECTED] Subject: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent machines with mod_jk Hi, I installed Apache 2.0.40 and Tomcat 4.0.4 on different Linux(RedHat) servers and tried to make apache connect to tomcat with mod_jk module, For this I did the following things 1) I installed Apache 2.0.40 on Machine 'A' and built
RE: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent machines with mod_jk
Thanks Mike Venkat -Original Message- From: Michael Schulz [mailto:[EMAIL PROTECTED]] Sent: Thu 9/19/2002 3:18 PM To: Tomcat Users List Cc: Subject:RE: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent machines with mod_jk Venkat, Yes, I will give you more details, however, I've got higher priority things to do at this moment, so it will take me a few hours before I can document the details. -Mike Schulz -Original Message- From: Venkat Reddy Valluri [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 19, 2002 12:54 PM To: Tomcat Users List Subject: RE: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent machines with mod_jk Hi Michael, Can you pl be more specific abou how to configure tomcat server.xml and how to generate mod_jk.conf manually Thks in advance Venkat -Original Message- From: Michael Schulz [mailto:[EMAIL PROTECTED]] Sent: Thu 9/19/2002 12:23 PM To: Tomcat Users List Cc: Subject:RE: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent machines with mod_jk I was getting to that, but I forget to mention it before I hit send. (:o) -Mike -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 19, 2002 11:22 AM To: 'Tomcat Users List' Subject: RE: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent machines with mod_jk Any thoughts of compiling a HOWTO, by chance? Hint, hint. :) John -Original Message- From: Michael Schulz [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 19, 2002 12:18 PM To: Tomcat Users List Subject: RE: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent machines with mod_jk I *just* completed a successful configuration of Apache 2.0.40 and Tomcat 4.0.4 using the mod_jk.so connector (provided by John Turner, thanks John) on RedHat Linux 7.3 where Apache and Tomcat are running on separate machines. If Apache is not connecting to tomcat, then you should look on the Apache box for the cause (assuming that the Tomcat box is running! g). In your httpd.conf file, there should be two directives, JkLogFile and JkLogLevel. Set the JkLogLevel value to debug and restart Apache. Then when you make a request, you should be able to see what is happening via the log file. Note: If you followed John's instructions for configuring the system, you will have a problem because those instructions depend on the Tomcat listener (ApacheConfig) to generate the mod_jk.conf file. This won't work if tomcat and apache are on separate boxes, so you'll have to do that part manually (or copy the generated file from the tomcat box to the apache box). If your httpd.conf file contains this directive: include /usr/local/tomcat/conf/auto/mod_jk.conf then you will have problems, because tomcat is not on the apache box. -Mike Schulz -Original Message- From: Venkat Reddy Valluri [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 19, 2002 10:56 AM To: Tomcat Users List Subject: RE: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent machines with mod_jk Even though I didn't copy, Atleast Apche should have connected to tomcat and I should have executed jsp pages existed on tomcat box, here apache is serving some static files which are existing on apache boxe, but when I tried to execute http://www.xxx.com/examples/(in mod_jk.conf jkmount /examples/* ajp13) it is supposed to connect to tomcat box and execute jsp's, but it is not recognising them, because it is not even connected to tomcat -Original Message- From: Michael Schulz [mailto:[EMAIL PROTECTED]] Sent: Thu 9/19/2002 11:46 AM To: Tomcat Users List Cc: Subject: RE: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent machines with mod_jk If you want to put Apache and Tomcat on separate boxes, and still run the Tomcat examples, you will have to copy the static (.html) files from the tomcat box to the apache box so that apache can serve them. -Mike Schulz -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 19, 2002 10:26 AM To: 'Tomcat Users List' Subject: RE: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent machines with mod_jk The lines like tomcat_home etc. in workers.properties are optional. (thanks Milt!) You only need the worker definitions (like port number, etc). I'm not sure about the Alias /manager question, that is a good question. You don't need mod_jk.so on the Tomcat box, its an Apache module. John -Original Message- From: Venkat Reddy Valluri [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 19, 2002 10:47 AM To: [EMAIL PROTECTED] Subject: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent