Re: Configuration problems: mod_webapp with Tomcat 4.0.3 and Apache 2.0.35
because the Tomcat-Apache Service listens on port 8008 ( see your server.xml, at the end ) best regards carlos ferreira Jeffrey Bonevich wrote: Why would I do that when Tomcat is listening on 8080? Actually did a little more research and there is already a bug registered that covers this issue. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4042 Looks as though there has been no action on this one for a while, and now it is very pertinent as the Port directive no longer exists for Apache 2. jeff Jay Gardner wrote: Try localhost:8008 instead --Jay Gardner -Original Message- From: Jeffrey Bonevich [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 18, 2002 5:57 PM To: [EMAIL PROTECTED] Subject: Configuration problems: mod_webapp with Tomcat 4.0.3 and Apache 2.0.35 Ok, on to the next set of issues! Finally got mod_webapp compiled properly and installed in Apache 2 (configtest returns Syntax Ok). Then I add the VirtualHost section: NameVirtualHost 65.186.165.33 VirtualHost 65.186.165.33 ServerName tomcat.bonevich.com DocumentRoot /usr/local/tomcat/webapps/ WebAppConnection warpConnection warp localhost:8080 WebAppDeploy examples warpConnection /examples /VirtualHost ...and when I do another configtest I get errors: [root@strider apache2]# bin/apachectl configtest Syntax error on line 995 of /usr/local/apache2/conf/httpd.conf: Invalid port number (p1) No Port statement found Line 995 is the WebAppDeploy directive. Is this mod_webapp looking for the (now depracated) Port statement in the main body of the config? If so, time to update code. If not, what am I missing? (As a side note, tried the VirtualHost directives with 127.0.0.1, with :80 appended, and with just *; same error each time.) jeff -- Jeffrey Bonevich Ann Arbor, Michigan [EMAIL PROTECTED] http://www.bonevich.com Hwæt! Wë Gär-Dena in geär-dagum, peod-cyninga, prym gefrünon, hü ða aepelingas ellen fremedon! -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Configuration problems: mod_webapp with Tomcat 4.0.3 and Apache 2.0.35
Emil - I think you meant this to go to Georg. Georg - yes, please provide relevant lines from httpd.conf. From what I can tell, the source code is not even getting the port as specified by Listen. I have the following in my httpd.conf, and it does not work: [skip] Listen 65.186.165.33:80 #Listen 80 [skip] LoadModule webapp_module modules/mod_webapp.so [skip] ServerName www.bonevich.com:80 [skip] NameVirtualHost 65.186.165.33:80 VirtualHost 65.186.165.33:80 ServerName tomcat.bonevich.com DocumentRoot /usr/local/tomcat/webapps/ WebAppConnection warpConnection warp localhost:8008 WebAppDeploy examples warpConnection /examples /VirtualHost Thanx! jeff Emil Olovsson wrote: Can you provide an example of how to write this, I cant get it working. -Original Message- From: Georg Huettenegger [mailto:[EMAIL PROTECTED]] Sent: den 19 april 2002 09:18 To: Tomcat Users List; [EMAIL PROTECTED] Subject: Re: Configuration problems: mod_webapp with Tomcat 4.0.3 and Apache 2.0.35 hi, 1) the mod_webapp should connect to localhost:8008 as teh connector is listeneing on 8008 while tomcat is listening on 8080 for http requests 2) it seems that for the moment one has to provide the correct port to apache with the Listen directive and at the same time append the port number as part of the server name. with this setup it worked for me. bye, georg On Fri, 19 Apr 2002, Jeffrey Bonevich wrote: Regardless, it still does not work. The issue I am concerned with appears to be a bug - could be in mod_webapp or it could actually be in the Apache 2 code (server_rec is not getting a port number assigned to it, even after Listen supplies it). jeff Andrew Logan wrote: I believe the difference is that Tomcat's HTTP listener is on port 8080, but Tomcat's servlet container is listening on 8008 (default set up of course). [EMAIL PROTECTED] 19/04/2002 15:31:50 Why would I do that when Tomcat is listening on 8080? Actually did a little more research and there is already a bug registered that covers this issue. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4042 Looks as though there has been no action on this one for a while, and now it is very pertinent as the Port directive no longer exists for Apache 2. jeff Jay Gardner wrote: Try localhost:8008 instead --Jay Gardner -Original Message- From: Jeffrey Bonevich [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 18, 2002 5:57 PM To: [EMAIL PROTECTED] Subject: Configuration problems: mod_webapp with Tomcat 4.0.3 and Apache 2.0.35 Ok, on to the next set of issues! Finally got mod_webapp compiled properly and installed in Apache 2 (configtest returns Syntax Ok). Then I add the VirtualHost section: NameVirtualHost 65.186.165.33 VirtualHost 65.186.165.33 ServerName tomcat.bonevich.com DocumentRoot /usr/local/tomcat/webapps/ WebAppConnection warpConnection warp localhost:8080 WebAppDeploy examples warpConnection /examples /VirtualHost ...and when I do another configtest I get errors: [root@strider apache2]# bin/apachectl configtest Syntax error on line 995 of /usr/local/apache2/conf/httpd.conf: Invalid port number (p1) No Port statement found Line 995 is the WebAppDeploy directive. Is this mod_webapp looking for the (now depracated) Port statement in the main body of the config? If so, time to update code. If not, what am I missing? (As a side note, tried the VirtualHost directives with 127.0.0.1, with :80 appended, and with just *; same error each time.) jeff -- Jeffrey Bonevich Ann Arbor, Michigan [EMAIL PROTECTED] http://www.bonevich.com Hwæt! Wë Gär-Dena in geär-dagum, peod-cyninga, prym gefrünon, hü ða aepelingas ellen fremedon! -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- Jeffrey Bonevich Ann Arbor, Michigan [EMAIL PROTECTED] http://www.bonevich.com Hwæt! Wë Gär-Dena in geär-dagum, peod-cyninga, prym gefrünon, hü ða aepelingas ellen fremedon! -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- Jeffrey Bonevich Ann Arbor, Michigan [EMAIL PROTECTED] http://www.bonevich.com Hwæt! Wë Gär-Dena in geär-dagum, peod-cyninga, prym gefrünon, hü ða aepelingas ellen fremedon! -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Configuration problems: mod_webapp with Tomcat 4.0.3 and Apache 2.0.35
Ohmygoditworks! All of that crap about setting up a virtual host really confuses the matter (I still maintain that there is a bug, either in Apache getting the port set using Listen into server_rec, or with mod_webapp relying on server_rec to supply the port number). Thank you very much! I am going to try to put together exactly what I had to do to get mod_webapp working with Tomcat 4 and Apache 2 and post it to the list. jeff Georg Huettenegger wrote: hi, my httpd.conf contains the following relevant: ServerName abc.def.com:3072 Listen 3072 LoadModule webapp_module modules/mod_webapp.so IfModule mod_webapp.c WebAppConnection warpConnection warp localhost:8008 WebAppDeploy examples warpConnection /examples /IfModule bye, georg On Fri, 19 Apr 2002, Jeffrey Bonevich wrote: Emil - I think you meant this to go to Georg. Georg - yes, please provide relevant lines from httpd.conf. From what I can tell, the source code is not even getting the port as specified by Listen. I have the following in my httpd.conf, and it does not work: [skip] Listen 65.186.165.33:80 #Listen 80 [skip] LoadModule webapp_module modules/mod_webapp.so [skip] ServerName www.bonevich.com:80 [skip] NameVirtualHost 65.186.165.33:80 VirtualHost 65.186.165.33:80 ServerName tomcat.bonevich.com DocumentRoot /usr/local/tomcat/webapps/ WebAppConnection warpConnection warp localhost:8008 WebAppDeploy examples warpConnection /examples /VirtualHost Thanx! jeff Emil Olovsson wrote: Can you provide an example of how to write this, I cant get it working. -Original Message- From: Georg Huettenegger [mailto:[EMAIL PROTECTED]] Sent: den 19 april 2002 09:18 To: Tomcat Users List; [EMAIL PROTECTED] Subject: Re: Configuration problems: mod_webapp with Tomcat 4.0.3 and Apache 2.0.35 hi, 1) the mod_webapp should connect to localhost:8008 as teh connector is listeneing on 8008 while tomcat is listening on 8080 for http requests 2) it seems that for the moment one has to provide the correct port to apache with the Listen directive and at the same time append the port number as part of the server name. with this setup it worked for me. bye, georg On Fri, 19 Apr 2002, Jeffrey Bonevich wrote: Regardless, it still does not work. The issue I am concerned with appears to be a bug - could be in mod_webapp or it could actually be in the Apache 2 code (server_rec is not getting a port number assigned to it, even after Listen supplies it). jeff Andrew Logan wrote: I believe the difference is that Tomcat's HTTP listener is on port 8080, but Tomcat's servlet container is listening on 8008 (default set up of course). [EMAIL PROTECTED] 19/04/2002 15:31:50 Why would I do that when Tomcat is listening on 8080? Actually did a little more research and there is already a bug registered that covers this issue. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4042 Looks as though there has been no action on this one for a while, and now it is very pertinent as the Port directive no longer exists for Apache 2. jeff Jay Gardner wrote: Try localhost:8008 instead --Jay Gardner -Original Message- From: Jeffrey Bonevich [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 18, 2002 5:57 PM To: [EMAIL PROTECTED] Subject: Configuration problems: mod_webapp with Tomcat 4.0.3 and Apache 2.0.35 Ok, on to the next set of issues! Finally got mod_webapp compiled properly and installed in Apache 2 (configtest returns Syntax Ok). Then I add the VirtualHost section: NameVirtualHost 65.186.165.33 VirtualHost 65.186.165.33 ServerName tomcat.bonevich.com DocumentRoot /usr/local/tomcat/webapps/ WebAppConnection warpConnection warp localhost:8080 WebAppDeploy examples warpConnection /examples /VirtualHost ...and when I do another configtest I get errors: [root@strider apache2]# bin/apachectl configtest Syntax error on line 995 of /usr/local/apache2/conf/httpd.conf: Invalid port number (p1) No Port statement found Line 995 is the WebAppDeploy directive. Is this mod_webapp looking for the (now depracated) Port statement in the main body of the config? If so, time to update code. If not, what am I missing? (As a side note, tried the VirtualHost directives with 127.0.0.1, with :80 appended, and with just *; same error each time.) jeff -- Jeffrey Bonevich Ann Arbor, Michigan [EMAIL PROTECTED] http://www.bonevich.com Hwæt! Wë Gär-Dena in geär-dagum, peod-cyninga, prym gefrünon, hü ða aepelingas ellen fremedon! -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- Jeffrey Bonevich Ann Arbor, Michigan [EMAIL PROTECTED] http://www.bonevich.com Hwæt! Wë Gär-Dena in geär-dagum, peod-cyninga, prym gefrünon, hü ða aepelingas ellen fremedon! -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL
RE: Configuration problems: mod_webapp with Tomcat 4.0.3 and Apache 2.0.35
Try localhost:8008 instead --Jay Gardner -Original Message- From: Jeffrey Bonevich [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 18, 2002 5:57 PM To: [EMAIL PROTECTED] Subject: Configuration problems: mod_webapp with Tomcat 4.0.3 and Apache 2.0.35 Ok, on to the next set of issues! Finally got mod_webapp compiled properly and installed in Apache 2 (configtest returns Syntax Ok). Then I add the VirtualHost section: NameVirtualHost 65.186.165.33 VirtualHost 65.186.165.33 ServerName tomcat.bonevich.com DocumentRoot /usr/local/tomcat/webapps/ WebAppConnection warpConnection warp localhost:8080 WebAppDeploy examples warpConnection /examples /VirtualHost ...and when I do another configtest I get errors: [root@strider apache2]# bin/apachectl configtest Syntax error on line 995 of /usr/local/apache2/conf/httpd.conf: Invalid port number (p1) No Port statement found Line 995 is the WebAppDeploy directive. Is this mod_webapp looking for the (now depracated) Port statement in the main body of the config? If so, time to update code. If not, what am I missing? (As a side note, tried the VirtualHost directives with 127.0.0.1, with :80 appended, and with just *; same error each time.) jeff -- Jeffrey Bonevich Ann Arbor, Michigan [EMAIL PROTECTED] http://www.bonevich.com Hwæt! Wë Gär-Dena in geär-dagum, peod-cyninga, prym gefrünon, hü ða aepelingas ellen fremedon! -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Configuration problems: mod_webapp with Tomcat 4.0.3 and Apache 2.0.35
Why would I do that when Tomcat is listening on 8080? Actually did a little more research and there is already a bug registered that covers this issue. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4042 Looks as though there has been no action on this one for a while, and now it is very pertinent as the Port directive no longer exists for Apache 2. jeff Jay Gardner wrote: Try localhost:8008 instead --Jay Gardner -Original Message- From: Jeffrey Bonevich [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 18, 2002 5:57 PM To: [EMAIL PROTECTED] Subject: Configuration problems: mod_webapp with Tomcat 4.0.3 and Apache 2.0.35 Ok, on to the next set of issues! Finally got mod_webapp compiled properly and installed in Apache 2 (configtest returns Syntax Ok). Then I add the VirtualHost section: NameVirtualHost 65.186.165.33 VirtualHost 65.186.165.33 ServerName tomcat.bonevich.com DocumentRoot /usr/local/tomcat/webapps/ WebAppConnection warpConnection warp localhost:8080 WebAppDeploy examples warpConnection /examples /VirtualHost ...and when I do another configtest I get errors: [root@strider apache2]# bin/apachectl configtest Syntax error on line 995 of /usr/local/apache2/conf/httpd.conf: Invalid port number (p1) No Port statement found Line 995 is the WebAppDeploy directive. Is this mod_webapp looking for the (now depracated) Port statement in the main body of the config? If so, time to update code. If not, what am I missing? (As a side note, tried the VirtualHost directives with 127.0.0.1, with :80 appended, and with just *; same error each time.) jeff -- Jeffrey Bonevich Ann Arbor, Michigan [EMAIL PROTECTED] http://www.bonevich.com Hwæt! Wë Gär-Dena in geär-dagum, peod-cyninga, prym gefrünon, hü ða aepelingas ellen fremedon! -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- Jeffrey Bonevich Ann Arbor, Michigan [EMAIL PROTECTED] http://www.bonevich.com Hwæt! Wë Gär-Dena in geär-dagum, peod-cyninga, prym gefrünon, hü ða aepelingas ellen fremedon! -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Configuration problems: mod_webapp with Tomcat 4.0.3 and Apache 2.0.35
Regardless, it still does not work. The issue I am concerned with appears to be a bug - could be in mod_webapp or it could actually be in the Apache 2 code (server_rec is not getting a port number assigned to it, even after Listen supplies it). jeff Andrew Logan wrote: I believe the difference is that Tomcat's HTTP listener is on port 8080, but Tomcat's servlet container is listening on 8008 (default set up of course). [EMAIL PROTECTED] 19/04/2002 15:31:50 Why would I do that when Tomcat is listening on 8080? Actually did a little more research and there is already a bug registered that covers this issue. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4042 Looks as though there has been no action on this one for a while, and now it is very pertinent as the Port directive no longer exists for Apache 2. jeff Jay Gardner wrote: Try localhost:8008 instead --Jay Gardner -Original Message- From: Jeffrey Bonevich [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 18, 2002 5:57 PM To: [EMAIL PROTECTED] Subject: Configuration problems: mod_webapp with Tomcat 4.0.3 and Apache 2.0.35 Ok, on to the next set of issues! Finally got mod_webapp compiled properly and installed in Apache 2 (configtest returns Syntax Ok). Then I add the VirtualHost section: NameVirtualHost 65.186.165.33 VirtualHost 65.186.165.33 ServerName tomcat.bonevich.com DocumentRoot /usr/local/tomcat/webapps/ WebAppConnection warpConnection warp localhost:8080 WebAppDeploy examples warpConnection /examples /VirtualHost ...and when I do another configtest I get errors: [root@strider apache2]# bin/apachectl configtest Syntax error on line 995 of /usr/local/apache2/conf/httpd.conf: Invalid port number (p1) No Port statement found Line 995 is the WebAppDeploy directive. Is this mod_webapp looking for the (now depracated) Port statement in the main body of the config? If so, time to update code. If not, what am I missing? (As a side note, tried the VirtualHost directives with 127.0.0.1, with :80 appended, and with just *; same error each time.) jeff -- Jeffrey Bonevich Ann Arbor, Michigan [EMAIL PROTECTED] http://www.bonevich.com Hwæt! Wë Gär-Dena in geär-dagum, peod-cyninga, prym gefrünon, hü ða aepelingas ellen fremedon! -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- Jeffrey Bonevich Ann Arbor, Michigan [EMAIL PROTECTED] http://www.bonevich.com Hwæt! Wë Gär-Dena in geär-dagum, peod-cyninga, prym gefrünon, hü ða aepelingas ellen fremedon! -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]