Re: JSP vs C#/.NET
Sorry, guys, I posted this messages a few days ago. And I don't why it comes up again. Xingqun - Original Message - From: Xingqun Jiang [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, August 25, 2003 4:16 PM Subject: JSP vs C#/.NET Hi, I am a pure java supporter. I don't like C# or .Net because of Microsoft's monopolization (sorry, kind of prejudice). However, I notice that more and more people pick up C#/.NET due to their new advantages. I also heard that C# is much faster than Java. My concern is, can Java/JSP still be competitive to Microsoft's products? I don't like to see java be beaten by Microsoft since it borrowed so many ideas from java to make up the so-called C#. ok, feel free to talk about this topic. Lance - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JSP vs C#/.NET
Hi, I am a pure java supporter. I don't like C# or .Net because of Microsoft's monopolization (sorry, kind of prejudice). However, I notice that more and more people pick up C#/.NET due to their new advantages. I also heard that C# is much faster than Java. My concern is, can Java/JSP still be competitive to Microsoft's products? I don't like to see java be beaten by Microsoft since it borrowed so many ideas from java to make up the so-called C#. ok, feel free to talk about this topic. Lance
Java/JSP vs C#/.NET
Hi, I am a pure java supporter. I don't like C# or .Net because of Microsoft's monopolization (sorry, kind of prejudice). However, I notice that more and more people pick up C#/.NET due to their new advantages. I also heard that C# is much faster than Java. My concern is, can Java/JSP still be competitive to Microsoft's products? I don't like to see java be beaten by Microsoft since it borrowed so many ideas from java to make up the so-called C#. ok, feel free to talk about this topic. Lance - 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
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
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
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
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]