Almost there: Odd error in mod_jk.log
Hi, I'm almost getting Apache and Tomcat to work together. I had some errors previously that have already been corrected. I'm now able to start both Tomcat and Apache with no errors, but I still can`t get the apache virtual hosts to redirect to Tomcat. The only error message I get is the following in mod_jk.log [jk_uri_worker_map.c (335)]: jk_uri_worker_map_t::uri_worker_map_close, NULL parameter [jk_uri_worker_map.c (185)]: In jk_uri_worker_map_t::uri_worker_map_free, NULL parameters any hints?? thanks. gunther. _ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Almost there: Odd error in mod_jk.log
What are your JkMount statements, and what are the contents of workers.properties? John -Original Message- From: G|nther Mittermayer [mailto:[EMAIL PROTECTED]] Sent: Monday, December 16, 2002 9:07 AM To: [EMAIL PROTECTED] Subject: Almost there: Odd error in mod_jk.log Hi, I'm almost getting Apache and Tomcat to work together. I had some errors previously that have already been corrected. I'm now able to start both Tomcat and Apache with no errors, but I still can`t get the apache virtual hosts to redirect to Tomcat. The only error message I get is the following in mod_jk.log [jk_uri_worker_map.c (335)]: jk_uri_worker_map_t::uri_worker_map_close, NULL parameter [jk_uri_worker_map.c (185)]: In jk_uri_worker_map_t::uri_worker_map_free, NULL parameters any hints?? thanks. gunther. _ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus -- 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: Almost there: Odd error in mod_jk.log
Hi John, Here it goes: from my httpd.conf: VirtualHost 141.19.93.41:8080 ErrorLog logs/virtualhost1.log TransferLog logs/VH1access.log JkMount /*.* worker_ajp13_1 /VirtualHost VirtualHost 141.19.93.41:8081 Errorlog logs/virtualhost2.log TransferLog logs/VH2access.log JkMount /*.* worker_ajp13_2 /VirtualHost from my workers.properties: worker.list=ajp12, worker_ajp13_1, worker_ajp13_2 #ajp12 worker definition worker.ajp12.port=8007 worker.ajp12.host=localhost worker.ajp12.type=ajp12 # First ajp13 port definition *** worker.worker_ajp13_1.port=11005 worker.worker_ajp13_1.host=localhost worker.worker_ajp13_1.type=ajp13 # Second ajp13 port definition *** worker.worker_ajp13_2.port=11009 worker.worker_ajp13_2.host=localhost worker.worker_ajp13_2.type=ajp13 when I try to access http://localhost:8080/index.jsp shouldn't it access my tomcat directory files? should I also have virtual hosts defined in Tomcat? thanks. gunther From: Turner, John [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Subject: RE: Almost there: Odd error in mod_jk.log Date: Mon, 16 Dec 2002 10:04:12 -0500 What are your JkMount statements, and what are the contents of workers.properties? John -Original Message- From: G|nther Mittermayer [mailto:[EMAIL PROTECTED]] Sent: Monday, December 16, 2002 9:07 AM To: [EMAIL PROTECTED] Subject: Almost there: Odd error in mod_jk.log Hi, I'm almost getting Apache and Tomcat to work together. I had some errors previously that have already been corrected. I'm now able to start both Tomcat and Apache with no errors, but I still can`t get the apache virtual hosts to redirect to Tomcat. The only error message I get is the following in mod_jk.log [jk_uri_worker_map.c (335)]: jk_uri_worker_map_t::uri_worker_map_close, NULL parameter [jk_uri_worker_map.c (185)]: In jk_uri_worker_map_t::uri_worker_map_free, NULL parameters any hints?? thanks. gunther. _ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus -- 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] _ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Almost there: Odd error in mod_jk.log
Nope. As far as I know, mod_jk only supports one *. *.* is invalid. If you want to send everything to Tomcat (in which case Apache and mod_jk is redundant), you would use /*. Also, this is just my personal preference, but AFAIK ajp12 serves no purpose in workers.properties, it just adds clutter. Also, if you are going to define two workers for Tomcat, then you need to define a load balancer, otherwise the first worker will get all of the requests, which makes the second worker useless. For info on load-balancing (one Apache, multiple Tomcats), see http://www.ubeans.com/tomcat John -Original Message- From: G|nther Mittermayer [mailto:[EMAIL PROTECTED]] Sent: Monday, December 16, 2002 10:20 AM To: [EMAIL PROTECTED] Subject: RE: Almost there: Odd error in mod_jk.log Hi John, Here it goes: from my httpd.conf: VirtualHost 141.19.93.41:8080 ErrorLog logs/virtualhost1.log TransferLog logs/VH1access.log JkMount /*.* worker_ajp13_1 /VirtualHost VirtualHost 141.19.93.41:8081 Errorlog logs/virtualhost2.log TransferLog logs/VH2access.log JkMount /*.* worker_ajp13_2 /VirtualHost from my workers.properties: worker.list=ajp12, worker_ajp13_1, worker_ajp13_2 #ajp12 worker definition worker.ajp12.port=8007 worker.ajp12.host=localhost worker.ajp12.type=ajp12 # First ajp13 port definition *** worker.worker_ajp13_1.port=11005 worker.worker_ajp13_1.host=localhost worker.worker_ajp13_1.type=ajp13 # Second ajp13 port definition *** worker.worker_ajp13_2.port=11009 worker.worker_ajp13_2.host=localhost worker.worker_ajp13_2.type=ajp13 when I try to access http://localhost:8080/index.jsp shouldn't it access my tomcat directory files? should I also have virtual hosts defined in Tomcat? thanks. gunther From: Turner, John [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Subject: RE: Almost there: Odd error in mod_jk.log Date: Mon, 16 Dec 2002 10:04:12 -0500 What are your JkMount statements, and what are the contents of workers.properties? John -Original Message- From: G|nther Mittermayer [mailto:[EMAIL PROTECTED]] Sent: Monday, December 16, 2002 9:07 AM To: [EMAIL PROTECTED] Subject: Almost there: Odd error in mod_jk.log Hi, I'm almost getting Apache and Tomcat to work together. I had some errors previously that have already been corrected. I'm now able to start both Tomcat and Apache with no errors, but I still can`t get the apache virtual hosts to redirect to Tomcat. The only error message I get is the following in mod_jk.log [jk_uri_worker_map.c (335)]: jk_uri_worker_map_t::uri_worker_map_close, NULL parameter [jk_uri_worker_map.c (185)]: In jk_uri_worker_map_t::uri_worker_map_free, NULL parameters any hints?? thanks. gunther. _ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus -- 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] _ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 -- 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: Almost there: Odd error in mod_jk.log
:) Thanks for the * hint, just to make sure I'm not getting it all wrong: What I really wanted to do with this virtual host lines is to have Apache forward everything from port 8080 to worker_ajp13_1 and everything from port 8081 to to worker_ajp13_1. It seems I'm not getting it done with this configuration.. what am I doing wrong? (assuming I corrected the /*.* to /*..) thanks again. gunther From: Turner, John [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Subject: RE: Almost there: Odd error in mod_jk.log Date: Mon, 16 Dec 2002 10:25:45 -0500 Nope. As far as I know, mod_jk only supports one *. *.* is invalid. If you want to send everything to Tomcat (in which case Apache and mod_jk is redundant), you would use /*. Also, this is just my personal preference, but AFAIK ajp12 serves no purpose in workers.properties, it just adds clutter. Also, if you are going to define two workers for Tomcat, then you need to define a load balancer, otherwise the first worker will get all of the requests, which makes the second worker useless. For info on load-balancing (one Apache, multiple Tomcats), see http://www.ubeans.com/tomcat John -Original Message- From: G|nther Mittermayer [mailto:[EMAIL PROTECTED]] Sent: Monday, December 16, 2002 10:20 AM To: [EMAIL PROTECTED] Subject: RE: Almost there: Odd error in mod_jk.log Hi John, Here it goes: from my httpd.conf: VirtualHost 141.19.93.41:8080 ErrorLog logs/virtualhost1.log TransferLog logs/VH1access.log JkMount /*.* worker_ajp13_1 /VirtualHost VirtualHost 141.19.93.41:8081 Errorlog logs/virtualhost2.log TransferLog logs/VH2access.log JkMount /*.* worker_ajp13_2 /VirtualHost from my workers.properties: worker.list=ajp12, worker_ajp13_1, worker_ajp13_2 #ajp12 worker definition worker.ajp12.port=8007 worker.ajp12.host=localhost worker.ajp12.type=ajp12 # First ajp13 port definition *** worker.worker_ajp13_1.port=11005 worker.worker_ajp13_1.host=localhost worker.worker_ajp13_1.type=ajp13 # Second ajp13 port definition *** worker.worker_ajp13_2.port=11009 worker.worker_ajp13_2.host=localhost worker.worker_ajp13_2.type=ajp13 when I try to access http://localhost:8080/index.jsp shouldn't it access my tomcat directory files? should I also have virtual hosts defined in Tomcat? thanks. gunther From: Turner, John [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Subject: RE: Almost there: Odd error in mod_jk.log Date: Mon, 16 Dec 2002 10:04:12 -0500 What are your JkMount statements, and what are the contents of workers.properties? John -Original Message- From: G|nther Mittermayer [mailto:[EMAIL PROTECTED]] Sent: Monday, December 16, 2002 9:07 AM To: [EMAIL PROTECTED] Subject: Almost there: Odd error in mod_jk.log Hi, I'm almost getting Apache and Tomcat to work together. I had some errors previously that have already been corrected. I'm now able to start both Tomcat and Apache with no errors, but I still can`t get the apache virtual hosts to redirect to Tomcat. The only error message I get is the following in mod_jk.log [jk_uri_worker_map.c (335)]: jk_uri_worker_map_t::uri_worker_map_close, NULL parameter [jk_uri_worker_map.c (185)]: In jk_uri_worker_map_t::uri_worker_map_free, NULL parameters any hints?? thanks. gunther. _ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus -- 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] _ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 -- 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] _ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Almost there: Odd error in mod_jk.log
I wouldn't even use Apache to do that. That said, if you want to use Apache, my guess is you would have to look into using either something like the Proxy* Apache runtime directives, or simply put your port numbers into the VirtualHost directives, like this: VirtualHost www.foo.com:8080 VirtualHost www.bar.com:8081 I'm still not sure I see the benefit of using Apache at all in this scenario. If you have requests coming in on ports 8080 and 8081, just setup Tomcat standalone with 2 HTTP connectors (one on 8080 and one on 8081) and call it good, especially if you are sending all requests to Tomcat anyway with /*. But that's me. The HTTP connector on 8080 is already defined in server.xml. John -Original Message- From: G|nther Mittermayer [mailto:[EMAIL PROTECTED]] Sent: Monday, December 16, 2002 10:35 AM To: [EMAIL PROTECTED] Subject: RE: Almost there: Odd error in mod_jk.log :) Thanks for the * hint, just to make sure I'm not getting it all wrong: What I really wanted to do with this virtual host lines is to have Apache forward everything from port 8080 to worker_ajp13_1 and everything from port 8081 to to worker_ajp13_1. It seems I'm not getting it done with this configuration.. what am I doing wrong? (assuming I corrected the /*.* to /*..) thanks again. gunther From: Turner, John [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Subject: RE: Almost there: Odd error in mod_jk.log Date: Mon, 16 Dec 2002 10:25:45 -0500 Nope. As far as I know, mod_jk only supports one *. *.* is invalid. If you want to send everything to Tomcat (in which case Apache and mod_jk is redundant), you would use /*. Also, this is just my personal preference, but AFAIK ajp12 serves no purpose in workers.properties, it just adds clutter. Also, if you are going to define two workers for Tomcat, then you need to define a load balancer, otherwise the first worker will get all of the requests, which makes the second worker useless. For info on load-balancing (one Apache, multiple Tomcats), see http://www.ubeans.com/tomcat John -Original Message- From: G|nther Mittermayer [mailto:[EMAIL PROTECTED]] Sent: Monday, December 16, 2002 10:20 AM To: [EMAIL PROTECTED] Subject: RE: Almost there: Odd error in mod_jk.log Hi John, Here it goes: from my httpd.conf: VirtualHost 141.19.93.41:8080 ErrorLog logs/virtualhost1.log TransferLog logs/VH1access.log JkMount /*.* worker_ajp13_1 /VirtualHost VirtualHost 141.19.93.41:8081 Errorlog logs/virtualhost2.log TransferLog logs/VH2access.log JkMount /*.* worker_ajp13_2 /VirtualHost from my workers.properties: worker.list=ajp12, worker_ajp13_1, worker_ajp13_2 #ajp12 worker definition worker.ajp12.port=8007 worker.ajp12.host=localhost worker.ajp12.type=ajp12 # First ajp13 port definition *** worker.worker_ajp13_1.port=11005 worker.worker_ajp13_1.host=localhost worker.worker_ajp13_1.type=ajp13 # Second ajp13 port definition *** worker.worker_ajp13_2.port=11009 worker.worker_ajp13_2.host=localhost worker.worker_ajp13_2.type=ajp13 when I try to access http://localhost:8080/index.jsp shouldn't it access my tomcat directory files? should I also have virtual hosts defined in Tomcat? thanks. gunther From: Turner, John [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Subject: RE: Almost there: Odd error in mod_jk.log Date: Mon, 16 Dec 2002 10:04:12 -0500 What are your JkMount statements, and what are the contents of workers.properties? John -Original Message- From: G|nther Mittermayer [mailto:[EMAIL PROTECTED]] Sent: Monday, December 16, 2002 9:07 AM To: [EMAIL PROTECTED] Subject: Almost there: Odd error in mod_jk.log Hi, I'm almost getting Apache and Tomcat to work together. I had some errors previously that have already been corrected. I'm now able to start both Tomcat and Apache with no errors, but I still can`t get the apache virtual hosts to redirect to Tomcat. The only error message I get is the following in mod_jk.log [jk_uri_worker_map.c (335)]: jk_uri_worker_map_t::uri_worker_map_close, NULL parameter [jk_uri_worker_map.c (185)]: In jk_uri_worker_map_t::uri_worker_map_free, NULL parameters any hints?? thanks. gunther. _ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional
RE: Almost there: Odd error in mod_jk.log
Thanks again John, but the * were there just for testing purposes. When I migrate to production I'll have only the *.jsp directed. Sorry to insist, but I'm not sure I understood what you meant with the virtualhost example... by doing the following, am I not doing the same? If not, How would apache know,in your example, which connector to look for for each port? VirtualHost 141.19.93.41:8080 ErrorLog logs/virtualhost1.log TransferLog logs/VH1access.log JkMount /*.jsp worker_ajp13_1 /VirtualHost VirtualHost 141.19.93.41:8081 Errorlog logs/virtualhost2.log TransferLog logs/VH2access.log JkMount /*.jsp worker_ajp13_2 /VirtualHost tks, gunther From: Turner, John [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Subject: RE: Almost there: Odd error in mod_jk.log Date: Mon, 16 Dec 2002 10:42:38 -0500 I wouldn't even use Apache to do that. That said, if you want to use Apache, my guess is you would have to look into using either something like the Proxy* Apache runtime directives, or simply put your port numbers into the VirtualHost directives, like this: VirtualHost www.foo.com:8080 VirtualHost www.bar.com:8081 I'm still not sure I see the benefit of using Apache at all in this scenario. If you have requests coming in on ports 8080 and 8081, just setup Tomcat standalone with 2 HTTP connectors (one on 8080 and one on 8081) and call it good, especially if you are sending all requests to Tomcat anyway with /*. But that's me. The HTTP connector on 8080 is already defined in server.xml. John -Original Message- From: G|nther Mittermayer [mailto:[EMAIL PROTECTED]] Sent: Monday, December 16, 2002 10:35 AM To: [EMAIL PROTECTED] Subject: RE: Almost there: Odd error in mod_jk.log :) Thanks for the * hint, just to make sure I'm not getting it all wrong: What I really wanted to do with this virtual host lines is to have Apache forward everything from port 8080 to worker_ajp13_1 and everything from port 8081 to to worker_ajp13_1. It seems I'm not getting it done with this configuration.. what am I doing wrong? (assuming I corrected the /*.* to /*..) thanks again. gunther From: Turner, John [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Subject: RE: Almost there: Odd error in mod_jk.log Date: Mon, 16 Dec 2002 10:25:45 -0500 Nope. As far as I know, mod_jk only supports one *. *.* is invalid. If you want to send everything to Tomcat (in which case Apache and mod_jk is redundant), you would use /*. Also, this is just my personal preference, but AFAIK ajp12 serves no purpose in workers.properties, it just adds clutter. Also, if you are going to define two workers for Tomcat, then you need to define a load balancer, otherwise the first worker will get all of the requests, which makes the second worker useless. For info on load-balancing (one Apache, multiple Tomcats), see http://www.ubeans.com/tomcat John -Original Message- From: G|nther Mittermayer [mailto:[EMAIL PROTECTED]] Sent: Monday, December 16, 2002 10:20 AM To: [EMAIL PROTECTED] Subject: RE: Almost there: Odd error in mod_jk.log Hi John, Here it goes: from my httpd.conf: VirtualHost 141.19.93.41:8080 ErrorLog logs/virtualhost1.log TransferLog logs/VH1access.log JkMount /*.* worker_ajp13_1 /VirtualHost VirtualHost 141.19.93.41:8081 Errorlog logs/virtualhost2.log TransferLog logs/VH2access.log JkMount /*.* worker_ajp13_2 /VirtualHost from my workers.properties: worker.list=ajp12, worker_ajp13_1, worker_ajp13_2 #ajp12 worker definition worker.ajp12.port=8007 worker.ajp12.host=localhost worker.ajp12.type=ajp12 # First ajp13 port definition *** worker.worker_ajp13_1.port=11005 worker.worker_ajp13_1.host=localhost worker.worker_ajp13_1.type=ajp13 # Second ajp13 port definition *** worker.worker_ajp13_2.port=11009 worker.worker_ajp13_2.host=localhost worker.worker_ajp13_2.type=ajp13 when I try to access http://localhost:8080/index.jsp shouldn't it access my tomcat directory files? should I also have virtual hosts defined in Tomcat? thanks. gunther From: Turner, John [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Subject: RE: Almost there: Odd error in mod_jk.log Date: Mon, 16 Dec 2002 10:04:12 -0500 What are your JkMount statements, and what are the contents of workers.properties? John -Original Message- From: G|nther Mittermayer [mailto:[EMAIL PROTECTED]] Sent: Monday, December 16, 2002 9:07 AM To: [EMAIL PROTECTED] Subject: Almost there: Odd error in mod_jk.log Hi, I'm almost getting Apache and Tomcat to work
RE: Almost there: Odd error in mod_jk.log
Sorry, didn't realize you had the config in your earlier messages. I came in this morning and there were 300 messages in my tomcat-user box, so I've been typing furiously trying to catch up. :) In the config you just posted, everything should work just fine, though I've never done it that way. All of my requests come in on port 80. The trick isn't the mod_jk config, the trick is getting Apache to separate each request...after that, the appropriate JkMount should take over. Putting the port number on the URL should work. If it isn't working, I would look at the absence of the ServerName as the culprit. Are there Host elements in server.xml that match Apache's virtual hosts? If Apache is sending something like 1.2.3.4 to Tomcat, Tomcat needs to be able to match that up to a Host in server.xml to understand which Context to serve. John -Original Message- From: G|nther Mittermayer [mailto:[EMAIL PROTECTED]] Sent: Monday, December 16, 2002 11:05 AM To: [EMAIL PROTECTED] Subject: RE: Almost there: Odd error in mod_jk.log Thanks again John, but the * were there just for testing purposes. When I migrate to production I'll have only the *.jsp directed. Sorry to insist, but I'm not sure I understood what you meant with the virtualhost example... by doing the following, am I not doing the same? If not, How would apache know,in your example, which connector to look for for each port? VirtualHost 141.19.93.41:8080 ErrorLog logs/virtualhost1.log TransferLog logs/VH1access.log JkMount /*.jsp worker_ajp13_1 /VirtualHost VirtualHost 141.19.93.41:8081 Errorlog logs/virtualhost2.log TransferLog logs/VH2access.log JkMount /*.jsp worker_ajp13_2 /VirtualHost tks, gunther -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Almost there: Odd error in mod_jk.log
John, If that's what you mean: Host name=141.19.93.41:8080 Context path=/ docBase=C:\Programme\Fogang\Vertmittlungsmodul\jakarta-tomcat-3.2.1\webapps\ROOT / /Host Host name=141.19.93.41:8081 Context path=/ docBase=C:\Programme\Fogang\Vertmittlungsmodul\jakarta-tomcat-3.2.1\webapps\ROOT2 / /Host then yes, I've done it. I guess I'll have to struggle a little more with Apache. Thanks anyway. :) gunther From: Turner, John [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Subject: RE: Almost there: Odd error in mod_jk.log Date: Mon, 16 Dec 2002 11:12:28 -0500 Sorry, didn't realize you had the config in your earlier messages. I came in this morning and there were 300 messages in my tomcat-user box, so I've been typing furiously trying to catch up. :) In the config you just posted, everything should work just fine, though I've never done it that way. All of my requests come in on port 80. The trick isn't the mod_jk config, the trick is getting Apache to separate each request...after that, the appropriate JkMount should take over. Putting the port number on the URL should work. If it isn't working, I would look at the absence of the ServerName as the culprit. Are there Host elements in server.xml that match Apache's virtual hosts? If Apache is sending something like 1.2.3.4 to Tomcat, Tomcat needs to be able to match that up to a Host in server.xml to understand which Context to serve. John -Original Message- From: G|nther Mittermayer [mailto:[EMAIL PROTECTED]] Sent: Monday, December 16, 2002 11:05 AM To: [EMAIL PROTECTED] Subject: RE: Almost there: Odd error in mod_jk.log Thanks again John, but the * were there just for testing purposes. When I migrate to production I'll have only the *.jsp directed. Sorry to insist, but I'm not sure I understood what you meant with the virtualhost example... by doing the following, am I not doing the same? If not, How would apache know,in your example, which connector to look for for each port? VirtualHost 141.19.93.41:8080 ErrorLog logs/virtualhost1.log TransferLog logs/VH1access.log JkMount /*.jsp worker_ajp13_1 /VirtualHost VirtualHost 141.19.93.41:8081 Errorlog logs/virtualhost2.log TransferLog logs/VH2access.log JkMount /*.jsp worker_ajp13_2 /VirtualHost tks, gunther -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Almost there: Odd error in mod_jk.log
I would take port numbers out of those tags in server.xml, AFAIK Tomcat doesn't care about them at all. Tomcat is getting it's requests on the connector port, it is trying to match name, and my guess is the port number is not included on the request that it sees. John -Original Message- From: G|nther Mittermayer [mailto:[EMAIL PROTECTED]] Sent: Monday, December 16, 2002 11:39 AM To: [EMAIL PROTECTED] Subject: RE: Almost there: Odd error in mod_jk.log John, If that's what you mean: Host name=141.19.93.41:8080 Context path=/ docBase=C:\Programme\Fogang\Vertmittlungsmodul\jakarta-tomcat -3.2.1\webapps\ROOT / /Host Host name=141.19.93.41:8081 Context path=/ docBase=C:\Programme\Fogang\Vertmittlungsmodul\jakarta-tomcat -3.2.1\webapps\ROOT2 / /Host then yes, I've done it. I guess I'll have to struggle a little more with Apache. Thanks anyway. :) gunther From: Turner, John [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Subject: RE: Almost there: Odd error in mod_jk.log Date: Mon, 16 Dec 2002 11:12:28 -0500 Sorry, didn't realize you had the config in your earlier messages. I came in this morning and there were 300 messages in my tomcat-user box, so I've been typing furiously trying to catch up. :) In the config you just posted, everything should work just fine, though I've never done it that way. All of my requests come in on port 80. The trick isn't the mod_jk config, the trick is getting Apache to separate each request...after that, the appropriate JkMount should take over. Putting the port number on the URL should work. If it isn't working, I would look at the absence of the ServerName as the culprit. Are there Host elements in server.xml that match Apache's virtual hosts? If Apache is sending something like 1.2.3.4 to Tomcat, Tomcat needs to be able to match that up to a Host in server.xml to understand which Context to serve. John -Original Message- From: G|nther Mittermayer [mailto:[EMAIL PROTECTED]] Sent: Monday, December 16, 2002 11:05 AM To: [EMAIL PROTECTED] Subject: RE: Almost there: Odd error in mod_jk.log Thanks again John, but the * were there just for testing purposes. When I migrate to production I'll have only the *.jsp directed. Sorry to insist, but I'm not sure I understood what you meant with the virtualhost example... by doing the following, am I not doing the same? If not, How would apache know,in your example, which connector to look for for each port? VirtualHost 141.19.93.41:8080 ErrorLog logs/virtualhost1.log TransferLog logs/VH1access.log JkMount /*.jsp worker_ajp13_1 /VirtualHost VirtualHost 141.19.93.41:8081 Errorlog logs/virtualhost2.log TransferLog logs/VH2access.log JkMount /*.jsp worker_ajp13_2 /VirtualHost tks, gunther -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail -- 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]