Re: Problem in Integrating Tomcat with Apache
Lance, I've used John Turners method for Windows 2000 many times without a problem. One thing you might want to do if you have followed all the instructions is to add the following to the bottom of your Apache conf file: JkWorkersFile d:\java\Tomcat41\conf\jk\workers.properties - change to what ever your Tomcat reference is JkLogFile d:\java\Tomcat41\logs\mod_jk.log - change to what ever your Tomcat reference is Include d:/java/Tomcat41/conf/auto/mod_jk.conf - change to what ever your Tomcat reference is JkMount /myapp ajp13 - change myapp to whatever your app is in the Tomcat webapp directory JkMount /myapp/* ajp13 Restart Tomcat and Apache Hopes this helps. Lenny Sorey JkWorkersFile d:\java\Tomcat41\conf\jk\workers.properties JkLogFile d:\java\Tomcat41\logs\mod_jk.log Include d:/java/Tomcat41/conf/auto/mod_jk.conf JkMount /wilsondodge ajp13 JkMount /wilsondodge/* ajp13 On Sun, 10 Aug 2003 14:25:25 -0400, Xingqun Jiang wrote: Hi, Mike I followed this article to do the set-up: http://www.johnturner.com/howto/winxp-howto.html But the problem still exists. I cannot open the jsp page from another computer, without adding port number. :-( The article you forwarded to me is for Linux, Is there any for WindowsXP? Thanks Lance - Original Message - From: Mike Millson [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Sunday, August 10, 2003 1:51 PM Subject: Re: Problem in Integrating Tomcat with Apache On Sun, 2003-08-10 at 13:31, Xingqun Jiang wrote: Hi, Mike Thanks a lot!!! I also searched some documents online. One of them said, when we install the Apache, we need to set the domain name and server name as localhost. I simply left them in default values. So I am reinstalling the apache. Do you think that will make difference? If you see the Apache default install page when you type http://localhost in your browser then apache is working and there's no need to reinstall it, just set up the configuration to achieve what you want. What operating system are you using? I will check out the artiles you forwarded. Thanks! Lance - Original Message - From: Mike Millson [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Sunday, August 10, 2003 1:27 PM Subject: Re: Problem in Integrating Tomcat with Apache No, it doesn't appear you have integrated tomcat. When you access tomcat via port 8080, you are accessing tomcat directly. When you are accessing tomcat through apache, apache communicates w/ tomcat via port 8009. I think the best way to approach integrating tomcat w/ apache for the 1st time is to forget about all the examples and config files that come w/ tomcat and start w/ a bare bones approach. This document may prove helpful: pdf: http://www.meritonlinesystems.com/docs/howto_apache_tomcat.pdf OpenOffice doc: http://www.meritonlinesystems.com/docs/howto_apache_tomcat.sxw Mike On Sat, 2003-08-09 at 23:27, Xingqun Jiang wrote: Hi, I tried to integrate Tomcat (on port 8080) with Apache (on port 80). When I tested on the local machine(192.168.2.3), the following two urls pointed to the same page: http://localhost/examples/jsp/dates/date.jsp http://localhost:8080/examples/jsp/dates/date.jsp However, when I tested on another computer, only this url works: http://192.168.2.3:8080/examples/jsp/dates/date.jsp The other address: http://192.168.2.3/examples/jsp/dates/date.jsp says page cannot be found Did I sucessfully intergrate Tomcat with Apache? Help me! Lance - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem in Integrating Tomcat with Apache
Hi, John I followed your instruction, plus adding a few lines in Apache conf file, suggested by Lenny. And I tested on another computer, it seemed working fine. So do I still need to some other configurations? Lenny's suggestion is below: Lance, I've used John Turners method for Windows 2000 many times without a problem. One thing you might want to do if you have followed all the instructions is to add the following to the bottom of your Apache conf file: JkWorkersFile d:\java\Tomcat41\conf\jk\workers.properties - change to what ever your Tomcat reference is JkLogFile d:\java\Tomcat41\logs\mod_jk.log - change to what ever your Tomcat reference is Include d:/java/Tomcat41/conf/auto/mod_jk.conf - change to what ever your Tomcat reference is JkMount /myapp ajp13 - change myapp to whatever your app is in the Tomcat webapp directory JkMount /myapp/* ajp13 Restart Tomcat and Apache Hopes this helps. Lenny Sorey - Original Message - From: John Turner [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, August 11, 2003 10:58 AM Subject: Re: Problem in Integrating Tomcat with Apache I am saying that you only need what you want to resolve. If you want to serve requests for 1.2.3.4, then you have to set Tomcat to do so. If you want to serve requests for www.foobar.com then you have to set Tomcat to do so. Tomcat is only set to serve requests by default for localhost. Exactly localhost. Not the IP address that goes to the same machine as localhost but exactly localhost. Tomcat has a defaultHost in server.xml that will take unresolved requests. The problem is that people, especially newbies, do not understand that localhost in a URL will NEVER work from a remote node. If you want machine B to access Tomcat on machine A, then you must give Tomcat a virtual host name that is NOT localhost, and you must use that name in the URL in the browser on machine B. That's the only way it can work. This can be either an IP address or a name like www.foobar.com. How you set up your Tomcat virtual hosts is up to you, you can use the Host element or the Alias directive within Host. My point is that Tomcat is fairly literal...just because localhost works does not automatically mean any.name.I.choose will work. John Geralyn M Hollerman wrote: John Turner wrote: localhost is a distinct virtual host name that ONLY WORKS ON THE LOCAL COMPUTER. some.ip.address is a distinct virtual host name, just like localhost or my.host.com. If you don't have that IP address set up as a hostname in Apache's httpd.conf and Tomcat's server.xml, you will not get a successful request. But...one thing that was never clear to me - are you saying that you need to have BOTH localhost AND the IP address set up as hostnames in httpd.conf and server.xml? If there's no localhost defined, are there some particular repercussions? Thanks! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem in Integrating Tomcat with Apache
John Turner wrote: localhost is a distinct virtual host name that ONLY WORKS ON THE LOCAL COMPUTER. some.ip.address is a distinct virtual host name, just like localhost or my.host.com. If you don't have that IP address set up as a hostname in Apache's httpd.conf and Tomcat's server.xml, you will not get a successful request. But...one thing that was never clear to me - are you saying that you need to have BOTH localhost AND the IP address set up as hostnames in httpd.conf and server.xml? If there's no localhost defined, are there some particular repercussions? Thanks! -- Lynn Hollerman. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem in Integrating Tomcat with Apache
On Sun, 2003-08-10 at 14:25, Xingqun Jiang wrote: Hi, Mike I followed this article to do the set-up: http://www.johnturner.com/howto/winxp-howto.html I don't use windows, but I have seen John help countless people. I would re-read his instructions and try again, following what he says very closely. But the problem still exists. I cannot open the jsp page from another computer, without adding port number. :-( The article you forwarded to me is for Linux, Is there any for WindowsXP? Thanks Lance - Original Message - From: Mike Millson [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Sunday, August 10, 2003 1:51 PM Subject: Re: Problem in Integrating Tomcat with Apache On Sun, 2003-08-10 at 13:31, Xingqun Jiang wrote: Hi, Mike Thanks a lot!!! I also searched some documents online. One of them said, when we install the Apache, we need to set the domain name and server name as localhost. I simply left them in default values. So I am reinstalling the apache. Do you think that will make difference? If you see the Apache default install page when you type http://localhost in your browser then apache is working and there's no need to reinstall it, just set up the configuration to achieve what you want. What operating system are you using? I will check out the artiles you forwarded. Thanks! Lance - Original Message - From: Mike Millson [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Sunday, August 10, 2003 1:27 PM Subject: Re: Problem in Integrating Tomcat with Apache No, it doesn't appear you have integrated tomcat. When you access tomcat via port 8080, you are accessing tomcat directly. When you are accessing tomcat through apache, apache communicates w/ tomcat via port 8009. I think the best way to approach integrating tomcat w/ apache for the 1st time is to forget about all the examples and config files that come w/ tomcat and start w/ a bare bones approach. This document may prove helpful: pdf: http://www.meritonlinesystems.com/docs/howto_apache_tomcat.pdf OpenOffice doc: http://www.meritonlinesystems.com/docs/howto_apache_tomcat.sxw Mike On Sat, 2003-08-09 at 23:27, Xingqun Jiang wrote: Hi, I tried to integrate Tomcat (on port 8080) with Apache (on port 80). When I tested on the local machine(192.168.2.3), the following two urls pointed to the same page: http://localhost/examples/jsp/dates/date.jsp http://localhost:8080/examples/jsp/dates/date.jsp However, when I tested on another computer, only this url works: http://192.168.2.3:8080/examples/jsp/dates/date.jsp The other address: http://192.168.2.3/examples/jsp/dates/date.jsp says page cannot be found Did I sucessfully intergrate Tomcat with Apache? Help me! Lance - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem in Integrating Tomcat with Apache
Lenny, I followed the steps you gave, adding the lines in Apache httpd.conf file, and, IT IS WORKING :-) I am suprised how you figured out this problem, since in John's tutorial it did address to do this. Anyway I have spent too much time to make tomcat and apache together, and you saved me from the trap. Thank you a ton!!! :-) Xingqun - Original Message - From: Lenny Sorey [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Sunday, August 10, 2003 2:41 PM Subject: Re: Problem in Integrating Tomcat with Apache Lance, I've used John Turners method for Windows 2000 many times without a problem. One thing you might want to do if you have followed all the instructions is to add the following to the bottom of your Apache conf file: JkWorkersFile d:\java\Tomcat41\conf\jk\workers.properties - change to what ever your Tomcat reference is JkLogFile d:\java\Tomcat41\logs\mod_jk.log - change to what ever your Tomcat reference is Include d:/java/Tomcat41/conf/auto/mod_jk.conf - change to what ever your Tomcat reference is JkMount /myapp ajp13 - change myapp to whatever your app is in the Tomcat webapp directory JkMount /myapp/* ajp13 Restart Tomcat and Apache Hopes this helps. Lenny Sorey JkWorkersFile d:\java\Tomcat41\conf\jk\workers.properties JkLogFile d:\java\Tomcat41\logs\mod_jk.log Include d:/java/Tomcat41/conf/auto/mod_jk.conf JkMount /wilsondodge ajp13 JkMount /wilsondodge/* ajp13 On Sun, 10 Aug 2003 14:25:25 -0400, Xingqun Jiang wrote: Hi, Mike I followed this article to do the set-up: http://www.johnturner.com/howto/winxp-howto.html But the problem still exists. I cannot open the jsp page from another computer, without adding port number. :-( The article you forwarded to me is for Linux, Is there any for WindowsXP? Thanks Lance - Original Message - From: Mike Millson [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Sunday, August 10, 2003 1:51 PM Subject: Re: Problem in Integrating Tomcat with Apache On Sun, 2003-08-10 at 13:31, Xingqun Jiang wrote: Hi, Mike Thanks a lot!!! I also searched some documents online. One of them said, when we install the Apache, we need to set the domain name and server name as localhost. I simply left them in default values. So I am reinstalling the apache. Do you think that will make difference? If you see the Apache default install page when you type http://localhost in your browser then apache is working and there's no need to reinstall it, just set up the configuration to achieve what you want. What operating system are you using? I will check out the artiles you forwarded. Thanks! Lance - Original Message - From: Mike Millson [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Sunday, August 10, 2003 1:27 PM Subject: Re: Problem in Integrating Tomcat with Apache No, it doesn't appear you have integrated tomcat. When you access tomcat via port 8080, you are accessing tomcat directly. When you are accessing tomcat through apache, apache communicates w/ tomcat via port 8009. I think the best way to approach integrating tomcat w/ apache for the 1st time is to forget about all the examples and config files that come w/ tomcat and start w/ a bare bones approach. This document may prove helpful: pdf: http://www.meritonlinesystems.com/docs/howto_apache_tomcat.pdf OpenOffice doc: http://www.meritonlinesystems.com/docs/howto_apache_tomcat.sxw Mike On Sat, 2003-08-09 at 23:27, Xingqun Jiang wrote: Hi, I tried to integrate Tomcat (on port 8080) with Apache (on port 80). When I tested on the local machine(192.168.2.3), the following two urls pointed to the same page: http://localhost/examples/jsp/dates/date.jsp http://localhost:8080/examples/jsp/dates/date.jsp However, when I tested on another computer, only this url works: http://192.168.2.3:8080/examples/jsp/dates/date.jsp The other address: http://192.168.2.3/examples/jsp/dates/date.jsp says page cannot be found Did I sucessfully intergrate Tomcat with Apache? Help me! Lance - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED
Re: Problem in Integrating Tomcat with Apache
Hi, Mike I followed this article to do the set-up: http://www.johnturner.com/howto/winxp-howto.html But the problem still exists. I cannot open the jsp page from another computer, without adding port number. :-( The article you forwarded to me is for Linux, Is there any for WindowsXP? Thanks Lance - Original Message - From: Mike Millson [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Sunday, August 10, 2003 1:51 PM Subject: Re: Problem in Integrating Tomcat with Apache On Sun, 2003-08-10 at 13:31, Xingqun Jiang wrote: Hi, Mike Thanks a lot!!! I also searched some documents online. One of them said, when we install the Apache, we need to set the domain name and server name as localhost. I simply left them in default values. So I am reinstalling the apache. Do you think that will make difference? If you see the Apache default install page when you type http://localhost in your browser then apache is working and there's no need to reinstall it, just set up the configuration to achieve what you want. What operating system are you using? I will check out the artiles you forwarded. Thanks! Lance - Original Message - From: Mike Millson [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Sunday, August 10, 2003 1:27 PM Subject: Re: Problem in Integrating Tomcat with Apache No, it doesn't appear you have integrated tomcat. When you access tomcat via port 8080, you are accessing tomcat directly. When you are accessing tomcat through apache, apache communicates w/ tomcat via port 8009. I think the best way to approach integrating tomcat w/ apache for the 1st time is to forget about all the examples and config files that come w/ tomcat and start w/ a bare bones approach. This document may prove helpful: pdf: http://www.meritonlinesystems.com/docs/howto_apache_tomcat.pdf OpenOffice doc: http://www.meritonlinesystems.com/docs/howto_apache_tomcat.sxw Mike On Sat, 2003-08-09 at 23:27, Xingqun Jiang wrote: Hi, I tried to integrate Tomcat (on port 8080) with Apache (on port 80). When I tested on the local machine(192.168.2.3), the following two urls pointed to the same page: http://localhost/examples/jsp/dates/date.jsp http://localhost:8080/examples/jsp/dates/date.jsp However, when I tested on another computer, only this url works: http://192.168.2.3:8080/examples/jsp/dates/date.jsp The other address: http://192.168.2.3/examples/jsp/dates/date.jsp says page cannot be found Did I sucessfully intergrate Tomcat with Apache? Help me! Lance - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem in Integrating Tomcat with Apache
Anybody did it with Windows 2003 server and IIS 6.0? I'm having some problems in getting the page up with that config. Any help is appreciated. Thanks Kiran - Original Message - From: Xingqun Jiang [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Sunday, August 10, 2003 9:37 PM Subject: Re: Problem in Integrating Tomcat with Apache Hi, Mike Lenny told me that I need to add a few lines after following John's instruction. I tried that and it worked!! Check out what Lenny told me here: Lance, I've used John Turners method for Windows 2000 many times without a problem. One thing you might want to do if you have followed all the instructions is to add the following to the bottom of your Apache conf file: JkWorkersFile d:\java\Tomcat41\conf\jk\workers.properties - change to what ever your Tomcat reference is JkLogFile d:\java\Tomcat41\logs\mod_jk.log - change to what ever your Tomcat reference is Include d:/java/Tomcat41/conf/auto/mod_jk.conf - change to what ever your Tomcat reference is JkMount /myapp ajp13 - change myapp to whatever your app is in the Tomcat webapp directory JkMount /myapp/* ajp13 Restart Tomcat and Apache Hopes this helps. Lenny Sorey JkWorkersFile d:\java\Tomcat41\conf\jk\workers.properties JkLogFile d:\java\Tomcat41\logs\mod_jk.log Include d:/java/Tomcat41/conf/auto/mod_jk.conf JkMount /wilsondodge ajp13 JkMount /wilsondodge/* ajp13 - Original Message - From: Mike Millson [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Sunday, August 10, 2003 10:26 PM Subject: Re: Problem in Integrating Tomcat with Apache On Sun, 2003-08-10 at 14:25, Xingqun Jiang wrote: Hi, Mike I followed this article to do the set-up: http://www.johnturner.com/howto/winxp-howto.html I don't use windows, but I have seen John help countless people. I would re-read his instructions and try again, following what he says very closely. But the problem still exists. I cannot open the jsp page from another computer, without adding port number. :-( The article you forwarded to me is for Linux, Is there any for WindowsXP? Thanks Lance - Original Message - From: Mike Millson [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Sunday, August 10, 2003 1:51 PM Subject: Re: Problem in Integrating Tomcat with Apache On Sun, 2003-08-10 at 13:31, Xingqun Jiang wrote: Hi, Mike Thanks a lot!!! I also searched some documents online. One of them said, when we install the Apache, we need to set the domain name and server name as localhost. I simply left them in default values. So I am reinstalling the apache. Do you think that will make difference? If you see the Apache default install page when you type http://localhost in your browser then apache is working and there's no need to reinstall it, just set up the configuration to achieve what you want. What operating system are you using? I will check out the artiles you forwarded. Thanks! Lance - Original Message - From: Mike Millson [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Sunday, August 10, 2003 1:27 PM Subject: Re: Problem in Integrating Tomcat with Apache No, it doesn't appear you have integrated tomcat. When you access tomcat via port 8080, you are accessing tomcat directly. When you are accessing tomcat through apache, apache communicates w/ tomcat via port 8009. I think the best way to approach integrating tomcat w/ apache for the 1st time is to forget about all the examples and config files that come w/ tomcat and start w/ a bare bones approach. This document may prove helpful: pdf: http://www.meritonlinesystems.com/docs/howto_apache_tomcat.pdf OpenOffice doc: http://www.meritonlinesystems.com/docs/howto_apache_tomcat.sxw Mike On Sat, 2003-08-09 at 23:27, Xingqun Jiang wrote: Hi, I tried to integrate Tomcat (on port 8080) with Apache (on port 80). When I tested on the local machine(192.168.2.3), the following two urls pointed to the same page: http://localhost/examples/jsp/dates/date.jsp http://localhost:8080/examples/jsp/dates/date.jsp However, when I tested on another computer, only this url works: http://192.168.2.3:8080/examples/jsp/dates/date.jsp The other address: http://192.168.2.3/examples/jsp/dates/date.jsp says page cannot be found Did I sucessfully intergrate Tomcat with Apache? Help me! Lance
Re: Problem in Integrating Tomcat with Apache
Yes, I could see the page at http://localhost but It just doesn't work on another computer when I replace the localhost with its ip address. I am using WindowsXP pro j2sdk1.4.1_01 tomcat 4.1.27 apache 2.0.47 I am going through the configuration instructions. Thanks a lot, Mike! Xingqun - Original Message - From: Mike Millson [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Sunday, August 10, 2003 1:51 PM Subject: Re: Problem in Integrating Tomcat with Apache On Sun, 2003-08-10 at 13:31, Xingqun Jiang wrote: Hi, Mike Thanks a lot!!! I also searched some documents online. One of them said, when we install the Apache, we need to set the domain name and server name as localhost. I simply left them in default values. So I am reinstalling the apache. Do you think that will make difference? If you see the Apache default install page when you type http://localhost in your browser then apache is working and there's no need to reinstall it, just set up the configuration to achieve what you want. What operating system are you using? I will check out the artiles you forwarded. Thanks! Lance - Original Message - From: Mike Millson [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Sunday, August 10, 2003 1:27 PM Subject: Re: Problem in Integrating Tomcat with Apache No, it doesn't appear you have integrated tomcat. When you access tomcat via port 8080, you are accessing tomcat directly. When you are accessing tomcat through apache, apache communicates w/ tomcat via port 8009. I think the best way to approach integrating tomcat w/ apache for the 1st time is to forget about all the examples and config files that come w/ tomcat and start w/ a bare bones approach. This document may prove helpful: pdf: http://www.meritonlinesystems.com/docs/howto_apache_tomcat.pdf OpenOffice doc: http://www.meritonlinesystems.com/docs/howto_apache_tomcat.sxw Mike On Sat, 2003-08-09 at 23:27, Xingqun Jiang wrote: Hi, I tried to integrate Tomcat (on port 8080) with Apache (on port 80). When I tested on the local machine(192.168.2.3), the following two urls pointed to the same page: http://localhost/examples/jsp/dates/date.jsp http://localhost:8080/examples/jsp/dates/date.jsp However, when I tested on another computer, only this url works: http://192.168.2.3:8080/examples/jsp/dates/date.jsp The other address: http://192.168.2.3/examples/jsp/dates/date.jsp says page cannot be found Did I sucessfully intergrate Tomcat with Apache? Help me! Lance - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem in Integrating Tomcat with Apache
If you look at my WinXP HOWTO, you will see a section that says: NOTE: in Tomcat, virtual hosts are Hosts. That is, as far as Tomcat is concerned, localhost is a virtual host. So, if you want to setup www.server-a.com and www.server-b.com, you just need more copies of the Host container included in the default server.xml that comes with Tomcat. Doing it in production is a little more complicated than that, but that's the essence of how to get Tomcat to work for more than localhost. Because this HOWTO describes using the Apache auto-config option of JK, getting Tomcat to work with your virtual hosts means Apache will work. This means that you can test your URL and your application contexts using :8080 on your URL without affecting Apache. When you have it working, simply restart Apache so that it picks up the new mod_jk.conf file generated by Tomcat and you should be well on your way. I suggest you take a moment to read about virtual hosts, especially how to configure them in Apache's httpd.conf. John Xingqun Jiang wrote: Lenny, I followed the steps you gave, adding the lines in Apache httpd.conf file, and, IT IS WORKING :-) I am suprised how you figured out this problem, since in John's tutorial it did address to do this. Anyway I have spent too much time to make tomcat and apache together, and you saved me from the trap. Thank you a ton!!! :-) Xingqun - Original Message - From: Lenny Sorey [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Sunday, August 10, 2003 2:41 PM Subject: Re: Problem in Integrating Tomcat with Apache Lance, I've used John Turners method for Windows 2000 many times without a problem. One thing you might want to do if you have followed all the instructions is to add the following to the bottom of your Apache conf file: - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem in Integrating Tomcat with Apache
TCP/IP 101. localhost is a distinct virtual host name that ONLY WORKS ON THE LOCAL COMPUTER. some.ip.address is a distinct virtual host name, just like localhost or my.host.com. If you don't have that IP address set up as a hostname in Apache's httpd.conf and Tomcat's server.xml, you will not get a successful request. John Xingqun Jiang wrote: Yes, I could see the page at http://localhost but It just doesn't work on another computer when I replace the localhost with its ip address. I am using WindowsXP pro j2sdk1.4.1_01 tomcat 4.1.27 apache 2.0.47 I am going through the configuration instructions. Thanks a lot, Mike! Xingqun - Original Message - From: Mike Millson [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Sunday, August 10, 2003 1:51 PM Subject: Re: Problem in Integrating Tomcat with Apache On Sun, 2003-08-10 at 13:31, Xingqun Jiang wrote: Hi, Mike Thanks a lot!!! I also searched some documents online. One of them said, when we install the Apache, we need to set the domain name and server name as localhost. I simply left them in default values. So I am reinstalling the apache. Do you think that will make difference? If you see the Apache default install page when you type http://localhost in your browser then apache is working and there's no need to reinstall it, just set up the configuration to achieve what you want. What operating system are you using? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem in Integrating Tomcat with Apache
Well, if you had followed my instructions, you wouldn't need additional stuff, as those lines like JkWorkersFile are in mod_jk.conf. So, I'm confused. My confusion aside, if its working the way you want it to work, I would call it good and have fun. John Xingqun Jiang wrote: Hi, John I followed your instruction, plus adding a few lines in Apache conf file, suggested by Lenny. And I tested on another computer, it seemed working fine. So do I still need to some other configurations? Lenny's suggestion is below: Lance, I've used John Turners method for Windows 2000 many times without a problem. One thing you might want to do if you have followed all the instructions is to add the following to the bottom of your Apache conf file: JkWorkersFile d:\java\Tomcat41\conf\jk\workers.properties - change to what ever your Tomcat reference is JkLogFile d:\java\Tomcat41\logs\mod_jk.log - change to what ever your Tomcat reference is Include d:/java/Tomcat41/conf/auto/mod_jk.conf - change to what ever your Tomcat reference is JkMount /myapp ajp13 - change myapp to whatever your app is in the Tomcat webapp directory JkMount /myapp/* ajp13 Restart Tomcat and Apache Hopes this helps. Lenny Sorey - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem in Integrating Tomcat with Apache
No, it doesn't appear you have integrated tomcat. When you access tomcat via port 8080, you are accessing tomcat directly. When you are accessing tomcat through apache, apache communicates w/ tomcat via port 8009. I think the best way to approach integrating tomcat w/ apache for the 1st time is to forget about all the examples and config files that come w/ tomcat and start w/ a bare bones approach. This document may prove helpful: pdf: http://www.meritonlinesystems.com/docs/howto_apache_tomcat.pdf OpenOffice doc: http://www.meritonlinesystems.com/docs/howto_apache_tomcat.sxw Mike On Sat, 2003-08-09 at 23:27, Xingqun Jiang wrote: Hi, I tried to integrate Tomcat (on port 8080) with Apache (on port 80). When I tested on the local machine(192.168.2.3), the following two urls pointed to the same page: http://localhost/examples/jsp/dates/date.jsp http://localhost:8080/examples/jsp/dates/date.jsp However, when I tested on another computer, only this url works: http://192.168.2.3:8080/examples/jsp/dates/date.jsp The other address: http://192.168.2.3/examples/jsp/dates/date.jsp says page cannot be found Did I sucessfully intergrate Tomcat with Apache? Help me! Lance - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem in Integrating Tomcat with Apache
Hi, Mike Lenny told me that I need to add a few lines after following John's instruction. I tried that and it worked!! Check out what Lenny told me here: Lance, I've used John Turners method for Windows 2000 many times without a problem. One thing you might want to do if you have followed all the instructions is to add the following to the bottom of your Apache conf file: JkWorkersFile d:\java\Tomcat41\conf\jk\workers.properties - change to what ever your Tomcat reference is JkLogFile d:\java\Tomcat41\logs\mod_jk.log - change to what ever your Tomcat reference is Include d:/java/Tomcat41/conf/auto/mod_jk.conf - change to what ever your Tomcat reference is JkMount /myapp ajp13 - change myapp to whatever your app is in the Tomcat webapp directory JkMount /myapp/* ajp13 Restart Tomcat and Apache Hopes this helps. Lenny Sorey JkWorkersFile d:\java\Tomcat41\conf\jk\workers.properties JkLogFile d:\java\Tomcat41\logs\mod_jk.log Include d:/java/Tomcat41/conf/auto/mod_jk.conf JkMount /wilsondodge ajp13 JkMount /wilsondodge/* ajp13 - Original Message - From: Mike Millson [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Sunday, August 10, 2003 10:26 PM Subject: Re: Problem in Integrating Tomcat with Apache On Sun, 2003-08-10 at 14:25, Xingqun Jiang wrote: Hi, Mike I followed this article to do the set-up: http://www.johnturner.com/howto/winxp-howto.html I don't use windows, but I have seen John help countless people. I would re-read his instructions and try again, following what he says very closely. But the problem still exists. I cannot open the jsp page from another computer, without adding port number. :-( The article you forwarded to me is for Linux, Is there any for WindowsXP? Thanks Lance - Original Message - From: Mike Millson [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Sunday, August 10, 2003 1:51 PM Subject: Re: Problem in Integrating Tomcat with Apache On Sun, 2003-08-10 at 13:31, Xingqun Jiang wrote: Hi, Mike Thanks a lot!!! I also searched some documents online. One of them said, when we install the Apache, we need to set the domain name and server name as localhost. I simply left them in default values. So I am reinstalling the apache. Do you think that will make difference? If you see the Apache default install page when you type http://localhost in your browser then apache is working and there's no need to reinstall it, just set up the configuration to achieve what you want. What operating system are you using? I will check out the artiles you forwarded. Thanks! Lance - Original Message - From: Mike Millson [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Sunday, August 10, 2003 1:27 PM Subject: Re: Problem in Integrating Tomcat with Apache No, it doesn't appear you have integrated tomcat. When you access tomcat via port 8080, you are accessing tomcat directly. When you are accessing tomcat through apache, apache communicates w/ tomcat via port 8009. I think the best way to approach integrating tomcat w/ apache for the 1st time is to forget about all the examples and config files that come w/ tomcat and start w/ a bare bones approach. This document may prove helpful: pdf: http://www.meritonlinesystems.com/docs/howto_apache_tomcat.pdf OpenOffice doc: http://www.meritonlinesystems.com/docs/howto_apache_tomcat.sxw Mike On Sat, 2003-08-09 at 23:27, Xingqun Jiang wrote: Hi, I tried to integrate Tomcat (on port 8080) with Apache (on port 80). When I tested on the local machine(192.168.2.3), the following two urls pointed to the same page: http://localhost/examples/jsp/dates/date.jsp http://localhost:8080/examples/jsp/dates/date.jsp However, when I tested on another computer, only this url works: http://192.168.2.3:8080/examples/jsp/dates/date.jsp The other address: http://192.168.2.3/examples/jsp/dates/date.jsp says page cannot be found Did I sucessfully intergrate Tomcat with Apache? Help me! Lance - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED
Re: Problem in Integrating Tomcat with Apache
On Sun, 2003-08-10 at 13:31, Xingqun Jiang wrote: Hi, Mike Thanks a lot!!! I also searched some documents online. One of them said, when we install the Apache, we need to set the domain name and server name as localhost. I simply left them in default values. So I am reinstalling the apache. Do you think that will make difference? If you see the Apache default install page when you type http://localhost in your browser then apache is working and there's no need to reinstall it, just set up the configuration to achieve what you want. What operating system are you using? I will check out the artiles you forwarded. Thanks! Lance - Original Message - From: Mike Millson [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Sunday, August 10, 2003 1:27 PM Subject: Re: Problem in Integrating Tomcat with Apache No, it doesn't appear you have integrated tomcat. When you access tomcat via port 8080, you are accessing tomcat directly. When you are accessing tomcat through apache, apache communicates w/ tomcat via port 8009. I think the best way to approach integrating tomcat w/ apache for the 1st time is to forget about all the examples and config files that come w/ tomcat and start w/ a bare bones approach. This document may prove helpful: pdf: http://www.meritonlinesystems.com/docs/howto_apache_tomcat.pdf OpenOffice doc: http://www.meritonlinesystems.com/docs/howto_apache_tomcat.sxw Mike On Sat, 2003-08-09 at 23:27, Xingqun Jiang wrote: Hi, I tried to integrate Tomcat (on port 8080) with Apache (on port 80). When I tested on the local machine(192.168.2.3), the following two urls pointed to the same page: http://localhost/examples/jsp/dates/date.jsp http://localhost:8080/examples/jsp/dates/date.jsp However, when I tested on another computer, only this url works: http://192.168.2.3:8080/examples/jsp/dates/date.jsp The other address: http://192.168.2.3/examples/jsp/dates/date.jsp says page cannot be found Did I sucessfully intergrate Tomcat with Apache? Help me! Lance - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem in Integrating Tomcat with Apache
Hi, I tried to integrate Tomcat (on port 8080) with Apache (on port 80). When I tested on the local machine(192.168.2.3), the following two urls pointed to the same page: http://localhost/examples/jsp/dates/date.jsp http://localhost:8080/examples/jsp/dates/date.jsp However, when I tested on another computer, only this url works: http://192.168.2.3:8080/examples/jsp/dates/date.jsp The other address: http://192.168.2.3/examples/jsp/dates/date.jsp says page cannot be found Did I sucessfully intergrate Tomcat with Apache? Help me! Lance
Re: Problem in Integrating Tomcat with Apache
Hi, Mike Thanks a lot!!! I also searched some documents online. One of them said, when we install the Apache, we need to set the domain name and server name as localhost. I simply left them in default values. So I am reinstalling the apache. Do you think that will make difference? I will check out the artiles you forwarded. Thanks! Lance - Original Message - From: Mike Millson [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Sunday, August 10, 2003 1:27 PM Subject: Re: Problem in Integrating Tomcat with Apache No, it doesn't appear you have integrated tomcat. When you access tomcat via port 8080, you are accessing tomcat directly. When you are accessing tomcat through apache, apache communicates w/ tomcat via port 8009. I think the best way to approach integrating tomcat w/ apache for the 1st time is to forget about all the examples and config files that come w/ tomcat and start w/ a bare bones approach. This document may prove helpful: pdf: http://www.meritonlinesystems.com/docs/howto_apache_tomcat.pdf OpenOffice doc: http://www.meritonlinesystems.com/docs/howto_apache_tomcat.sxw Mike On Sat, 2003-08-09 at 23:27, Xingqun Jiang wrote: Hi, I tried to integrate Tomcat (on port 8080) with Apache (on port 80). When I tested on the local machine(192.168.2.3), the following two urls pointed to the same page: http://localhost/examples/jsp/dates/date.jsp http://localhost:8080/examples/jsp/dates/date.jsp However, when I tested on another computer, only this url works: http://192.168.2.3:8080/examples/jsp/dates/date.jsp The other address: http://192.168.2.3/examples/jsp/dates/date.jsp says page cannot be found Did I sucessfully intergrate Tomcat with Apache? Help me! Lance - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem in Integrating Tomcat with Apache
That's because my HOWTO only addresses setting up localhost and not some.other.host.com. You have to do the same that is done for localhost for every other host you want to use. You might want to read up a little on what a virtual host is, and how it is setup in Apache. It works with Tomcat because Tomcat has a defaultHost parameter in server.xml that is set equal to localhost by default, which is why your IP address works with Tomcat but not Apache. John Xingqun Jiang wrote: Hi, Mike I followed this article to do the set-up: http://www.johnturner.com/howto/winxp-howto.html But the problem still exists. I cannot open the jsp page from another computer, without adding port number. :-( The article you forwarded to me is for Linux, Is there any for WindowsXP? Thanks Lance - Original Message - From: Mike Millson [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Sunday, August 10, 2003 1:51 PM Subject: Re: Problem in Integrating Tomcat with Apache - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem in Integrating Tomcat with Apache
I am saying that you only need what you want to resolve. If you want to serve requests for 1.2.3.4, then you have to set Tomcat to do so. If you want to serve requests for www.foobar.com then you have to set Tomcat to do so. Tomcat is only set to serve requests by default for localhost. Exactly localhost. Not the IP address that goes to the same machine as localhost but exactly localhost. Tomcat has a defaultHost in server.xml that will take unresolved requests. The problem is that people, especially newbies, do not understand that localhost in a URL will NEVER work from a remote node. If you want machine B to access Tomcat on machine A, then you must give Tomcat a virtual host name that is NOT localhost, and you must use that name in the URL in the browser on machine B. That's the only way it can work. This can be either an IP address or a name like www.foobar.com. How you set up your Tomcat virtual hosts is up to you, you can use the Host element or the Alias directive within Host. My point is that Tomcat is fairly literal...just because localhost works does not automatically mean any.name.I.choose will work. John Geralyn M Hollerman wrote: John Turner wrote: localhost is a distinct virtual host name that ONLY WORKS ON THE LOCAL COMPUTER. some.ip.address is a distinct virtual host name, just like localhost or my.host.com. If you don't have that IP address set up as a hostname in Apache's httpd.conf and Tomcat's server.xml, you will not get a successful request. But...one thing that was never clear to me - are you saying that you need to have BOTH localhost AND the IP address set up as hostnames in httpd.conf and server.xml? If there's no localhost defined, are there some particular repercussions? Thanks! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]