Re: Error using ajp13 protocol
Hi Marc, Telnet to the port 8009 shows that your JK connecter is listening on port 8009. You won't get any output. Now there can be the conflict of host now. What is the defaulthost attribute of your Engine tag and name attribute of the Host tag in your server.xml? Are they both set to localhost? Can you post your complete server.xml file? BTW, are you running apache and tomcat on the same host? Raj Marc wrote: Hi Raj (and thank you for your help yesterday)... I tried to connect using telenet to localhost 8009 and... there wasn't connection refused, but the connection wasn't accepted (showed the Escape character ... ), finally I killed the telnet process because no response was given. I think that the ajp13 connector (tomcat) is not running in the rigth way, because, seems that apache finds the worker (the worker name is ok): [Tue Oct 08 02:49:21 2002] [jk_worker.c (187)]: wc_create_worker, done [Tue Oct 08 02:49:21 2002] [jk_worker.c (238)]: build_worker_map, removing old local_pt1 worker [Tue Oct 08 02:49:21 2002] [jk_worker.c (250)]: build_worker_map, done [Tue Oct 08 02:49:21 2002] [jk_worker.c (111)]: wc_open, done 1 My workers.properties is: ps=/ worker.list=local_pt1 worker.local_pt1.port=8009 worker.local_pt1.host=localhost worker.local_pt1.type=ajp13 worker.local_pt1.lbfactor=1 My server.xml: !-- Define an AJP 1.3 Connector on port 8009 -- Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8009 minProcessors=5 maxProcessors=75 acceptCount=10 debug=0/ And, in catalina_log, seems that the connector starts all threads: 2002-10-08 02:35:06 Ajp13Connector[8009] Opening server socket on all host IP addresses 2002-10-08 02:35:06 Ajp13Connector[8009] Starting background thread 2002-10-08 02:35:06 Ajp13Processor[8009][0] Starting background thread 2002-10-08 02:35:06 Ajp13Processor[8009][1] Starting background thread 2002-10-08 02:35:06 Ajp13Processor[8009][2] Starting background thread 2002-10-08 02:35:06 Ajp13Processor[8009][3] Starting background thread 2002-10-08 02:35:06 Ajp13Processor[8009][4] Starting background thread Any ideas? Regards! Marc Raj Saini wrote: Hi Marc, Though I am not expert in the JK Connectors, But it is very clear that mod_jk part at apache is not able to connect to the tomcat process. There may be three reason for this:- 1. Your JK connector on tomcat is not listening on port 8009. 2. The host name of the worker in worker.properties and tomcat does not match. 3. Tomct is not running at all. Pleas double check your JK connector configuration in server.xml. Check the default host name in tomcat and worker.properties for the local_pt1 match. Try telneting to the host and port you have configured in worker.properties. Raj Marc Vila Pérez wrote: Hi! I'm trying to connect apache with tomcat, using jk (ajp13), in my mod_jk.log (debug log level), I can read this: [Tue Oct 08 02:49:20 2002] [jk_uri_worker_map.c (172)]: Into jk_uri_worker_map_t::uri_worker_map_alloc [Tue Oct 08 02:49:20 2002] [jk_uri_worker_map.c (375)]: Into jk_uri_worker_map_t::uri_worker_map_open [Tue Oct 08 02:49:20 2002] [jk_uri_worker_map.c (396)]: jk_uri_worker_map_t::uri_worker_map_open, rule map size is 1 [Tue Oct 08 02:49:20 2002] [jk_uri_worker_map.c (299)]: Into jk_uri_worker_map_t::uri_worker_map_open, suffix rule /.jsp=local_pt1 was added [Tue Oct 08 02:49:20 2002] [jk_uri_worker_map.c (408)]: Into jk_uri_worker_map_t::uri_worker_map_open, there are 1 rules [Tue Oct 08 02:49:20 2002] [jk_uri_worker_map.c (422)]: jk_uri_worker_map_t::uri_worker_map_open, done [Tue Oct 08 02:49:20 2002] [jk_worker.c (88)]: Into wc_open [Tue Oct 08 02:49:20 2002] [jk_worker.c (222)]: Into build_worker_map, creating 1 workers [Tue Oct 08 02:49:20 2002] [jk_worker.c (228)]: build_worker_map, creating worker local_pt1 [Tue Oct 08 02:49:20 2002] [jk_worker.c (148)]: Into wc_create_worker [Tue Oct 08 02:49:20 2002] [jk_worker.c (162)]: wc_create_worker, about to create instance local_pt1 of ajp13 [Tue Oct 08 02:49:20 2002] [jk_ajp13_worker.c (108)]: Into ajp13_worker_factory [Tue Oct 08 02:49:20 2002] [jk_worker.c (171)]: wc_create_worker, about to validate and init local_pt1 [Tue Oct 08 02:49:20 2002] [jk_ajp_common.c (1206)]: Into jk_worker_t::validate [Tue Oct 08 02:49:20 2002] [jk_ajp_common.c (1226)]: In jk_worker_t::validate for worker local_pt1 contact is localhost:8009 [Tue Oct 08 02:49:20 2002] [jk_ajp_common.c (1254)]: Into jk_worker_t::init [Tue Oct 08 02:49:20 2002] [jk_ajp_common.c (1274)]: In jk_worker_t::init, setting socket timeout to 0 [Tue Oct 08 02:49:20 2002] [jk_worker.c (187)]: wc_create_worker, done [Tue Oct 08 02:49:20 2002] [jk_worker.c (238)]: build_worker_map, removing old local_pt1 worker [Tue Oct 08 02:49:20 2002]
Re: Error using ajp13 protocol
whih verison of mod_jk u'r using specify . when u try to run the apache is it showing any error . try to connect the tomcat directly nto through apache + tomcat . regards Sonam Singh --- Raj Saini [EMAIL PROTECTED] wrote: Hi Marc, Telnet to the port 8009 shows that your JK connecter is listening on port 8009. You won't get any output. Now there can be the conflict of host now. What is the defaulthost attribute of your Engine tag and name attribute of the Host tag in your server.xml? Are they both set to localhost? Can you post your complete server.xml file? BTW, are you running apache and tomcat on the same host? Raj Marc wrote: Hi Raj (and thank you for your help yesterday)... I tried to connect using telenet to localhost 8009 and... there wasn't connection refused, but the connection wasn't accepted (showed the Escape character ... ), finally I killed the telnet process because no response was given. I think that the ajp13 connector (tomcat) is not running in the rigth way, because, seems that apache finds the worker (the worker name is ok): [Tue Oct 08 02:49:21 2002] [jk_worker.c (187)]: wc_create_worker, done [Tue Oct 08 02:49:21 2002] [jk_worker.c (238)]: build_worker_map, removing old local_pt1 worker [Tue Oct 08 02:49:21 2002] [jk_worker.c (250)]: build_worker_map, done [Tue Oct 08 02:49:21 2002] [jk_worker.c (111)]: wc_open, done 1 My workers.properties is: ps=/ worker.list=local_pt1 worker.local_pt1.port=8009 worker.local_pt1.host=localhost worker.local_pt1.type=ajp13 worker.local_pt1.lbfactor=1 My server.xml: !-- Define an AJP 1.3 Connector on port 8009 -- Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8009 minProcessors=5 maxProcessors=75 acceptCount=10 debug=0/ And, in catalina_log, seems that the connector starts all threads: 2002-10-08 02:35:06 Ajp13Connector[8009] Opening server socket on all host IP addresses 2002-10-08 02:35:06 Ajp13Connector[8009] Starting background thread 2002-10-08 02:35:06 Ajp13Processor[8009][0] Starting background thread 2002-10-08 02:35:06 Ajp13Processor[8009][1] Starting background thread 2002-10-08 02:35:06 Ajp13Processor[8009][2] Starting background thread 2002-10-08 02:35:06 Ajp13Processor[8009][3] Starting background thread 2002-10-08 02:35:06 Ajp13Processor[8009][4] Starting background thread Any ideas? Regards! Marc Raj Saini wrote: Hi Marc, Though I am not expert in the JK Connectors, But it is very clear that mod_jk part at apache is not able to connect to the tomcat process. There may be three reason for this:- 1. Your JK connector on tomcat is not listening on port 8009. 2. The host name of the worker in worker.properties and tomcat does not match. 3. Tomct is not running at all. Pleas double check your JK connector configuration in server.xml. Check the default host name in tomcat and worker.properties for the local_pt1 match. Try telneting to the host and port you have configured in worker.properties. Raj Marc Vila Pérez wrote: Hi! I'm trying to connect apache with tomcat, using jk (ajp13), in my mod_jk.log (debug log level), I can read this: [Tue Oct 08 02:49:20 2002] [jk_uri_worker_map.c (172)]: Into jk_uri_worker_map_t::uri_worker_map_alloc [Tue Oct 08 02:49:20 2002] [jk_uri_worker_map.c (375)]: Into jk_uri_worker_map_t::uri_worker_map_open [Tue Oct 08 02:49:20 2002] [jk_uri_worker_map.c (396)]: jk_uri_worker_map_t::uri_worker_map_open, rule map size is 1 [Tue Oct 08 02:49:20 2002] [jk_uri_worker_map.c (299)]: Into jk_uri_worker_map_t::uri_worker_map_open, suffix rule /.jsp=local_pt1 was added [Tue Oct 08 02:49:20 2002] [jk_uri_worker_map.c (408)]: Into jk_uri_worker_map_t::uri_worker_map_open, there are 1 rules [Tue Oct 08 02:49:20 2002] [jk_uri_worker_map.c (422)]: jk_uri_worker_map_t::uri_worker_map_open, done [Tue Oct 08 02:49:20 2002] [jk_worker.c (88)]: Into wc_open [Tue Oct 08 02:49:20 2002] [jk_worker.c (222)]: Into build_worker_map, creating 1 workers [Tue Oct 08 02:49:20 2002] [jk_worker.c (228)]: build_worker_map, creating worker local_pt1 [Tue Oct 08 02:49:20 2002] [jk_worker.c (148)]: Into wc_create_worker [Tue Oct 08 02:49:20 2002] [jk_worker.c (162)]: wc_create_worker, about to create instance local_pt1 of ajp13 [Tue Oct 08 02:49:20 2002] [jk_ajp13_worker.c (108)]: Into ajp13_worker_factory [Tue Oct 08 02:49:20 2002] [jk_worker.c (171)]: wc_create_worker, about to validate and init local_pt1 [Tue Oct 08 02:49:20 2002] [jk_ajp_common.c (1206)]: Into === message truncated === __ Do you Yahoo!? Faith Hill -
Re: Error using ajp13 protocol
Hi, here I attach my conf files: I've modified server.xml and workers.properties (submitted by Raj), just creating a new context on the server.xml to support my default application, at the root path. I can connect to this page, located in /var/www/html using - Tomcat, on port 8080 - Apache, on port 80 (before configuring the ajp13 worker) I'm using the mod_jk, no eapi version, provided in the last jk1.2 release. Seems that the connector is running, because in catalina_log.2002-10-08.txt: 2002-10-08 21:26:34 Ajp13Connector[8009] Opening server socket on all host IP addresses 2002-10-08 21:26:34 Ajp13Connector[8009] Starting background thread 2002-10-08 21:26:34 Ajp13Processor[8009][0] Starting background thread 2002-10-08 21:26:34 Ajp13Processor[8009][1] Starting background thread 2002-10-08 21:26:34 Ajp13Processor[8009][2] Starting background thread 2002-10-08 21:26:34 Ajp13Processor[8009][3] Starting background thread 2002-10-08 21:26:34 Ajp13Processor[8009][4] Starting background thread 2002-10-08 21:26:34 Ajp13Processor[8009][5] Starting background thread 2002-10-08 21:26:34 Ajp13Processor[8009][6] Starting background thread 2002-10-08 21:26:34 Ajp13Processor[8009][7] Starting background thread 2002-10-08 21:26:34 Ajp13Processor[8009][8] Starting background thread 2002-10-08 21:26:34 Ajp13Processor[8009][9] Starting background thread When I start apache (after tomcat starts), seems that all is ok: [Tue Oct 08 21:29:24 2002] [jk_uri_worker_map.c (172)]: Into jk_uri_worker_map_t::uri_worker_map_alloc [Tue Oct 08 21:29:24 2002] [jk_uri_worker_map.c (375)]: Into jk_uri_worker_map_t::uri_worker_map_open [Tue Oct 08 21:29:24 2002] [jk_uri_worker_map.c (396)]: jk_uri_worker_map_t::uri_worker_map_open, rule map size is 1 [Tue Oct 08 21:29:24 2002] [jk_uri_worker_map.c (299)]: Into jk_uri_worker_map_t::uri_worker_map_open, suffix rule /.jsp=local_pt1 was added [Tue Oct 08 21:29:24 2002] [jk_uri_worker_map.c (408)]: Into jk_uri_worker_map_t::uri_worker_map_open, there are 1 rules [Tue Oct 08 21:29:24 2002] [jk_uri_worker_map.c (422)]: jk_uri_worker_map_t::uri_worker_map_open, done [Tue Oct 08 21:29:24 2002] [jk_worker.c (88)]: Into wc_open [Tue Oct 08 21:29:24 2002] [jk_worker.c (222)]: Into build_worker_map, creating 1 workers [Tue Oct 08 21:29:24 2002] [jk_worker.c (228)]: build_worker_map, creating worker local_pt1 [Tue Oct 08 21:29:24 2002] [jk_worker.c (148)]: Into wc_create_worker [Tue Oct 08 21:29:24 2002] [jk_worker.c (162)]: wc_create_worker, about to create instance local_pt1 of ajp13 [Tue Oct 08 21:29:24 2002] [jk_ajp13_worker.c (108)]: Into ajp13_worker_factory [Tue Oct 08 21:29:24 2002] [jk_worker.c (171)]: wc_create_worker, about to validate and init local_pt1 [Tue Oct 08 21:29:24 2002] [jk_ajp_common.c (1206)]: Into jk_worker_t::validate [Tue Oct 08 21:29:24 2002] [jk_ajp_common.c (1226)]: In jk_worker_t::validate for worker local_pt1 contact is localhost:8009 [Tue Oct 08 21:29:24 2002] [jk_ajp_common.c (1254)]: Into jk_worker_t::init [Tue Oct 08 21:29:24 2002] [jk_ajp_common.c (1274)]: In jk_worker_t::init, setting socket timeout to 0 [Tue Oct 08 21:29:24 2002] [jk_worker.c (187)]: wc_create_worker, done [Tue Oct 08 21:29:24 2002] [jk_worker.c (238)]: build_worker_map, removing old local_pt1 worker [Tue Oct 08 21:29:24 2002] [jk_worker.c (250)]: build_worker_map, done [Tue Oct 08 21:29:24 2002] [jk_worker.c (111)]: wc_open, done 1 (I don't know why the previos actions are repeated, seems that mounts the worker two times) [Tue Oct 08 21:29:25 2002] [jk_uri_worker_map.c (172)]: Into jk_uri_worker_map_t::uri_worker_map_alloc [Tue Oct 08 21:29:25 2002] [jk_uri_worker_map.c (375)]: Into jk_uri_worker_map_t::uri_worker_map_open [Tue Oct 08 21:29:25 2002] [jk_uri_worker_map.c (396)]: jk_uri_worker_map_t::uri_worker_map_open, rule map size is 1 [Tue Oct 08 21:29:25 2002] [jk_uri_worker_map.c (299)]: Into jk_uri_worker_map_t::uri_worker_map_open, suffix rule /.jsp=local_pt1 was added [Tue Oct 08 21:29:25 2002] [jk_uri_worker_map.c (408)]: Into jk_uri_worker_map_t::uri_worker_map_open, there are 1 rules [Tue Oct 08 21:29:25 2002] [jk_uri_worker_map.c (422)]: jk_uri_worker_map_t::uri_worker_map_open, done [Tue Oct 08 21:29:25 2002] [jk_worker.c (88)]: Into wc_open [Tue Oct 08 21:29:25 2002] [jk_worker.c (222)]: Into build_worker_map, creating 1 workers [Tue Oct 08 21:29:25 2002] [jk_worker.c (228)]: build_worker_map, creating worker local_pt1 [Tue Oct 08 21:29:25 2002] [jk_worker.c (148)]: Into wc_create_worker [Tue Oct 08 21:29:25 2002] [jk_worker.c (162)]: wc_create_worker, about to create instance local_pt1 of ajp13 [Tue Oct 08 21:29:25 2002] [jk_ajp13_worker.c (108)]: Into ajp13_worker_factory [Tue Oct 08 21:29:25 2002] [jk_worker.c (171)]: wc_create_worker, about to validate and init local_pt1 [Tue Oct 08 21:29:25 2002] [jk_ajp_common.c (1206)]: Into jk_worker_t::validate [Tue Oct 08 21:29:25 2002] [jk_ajp_common.c (1226)]: In jk_worker_t::validate for
Re: Error using ajp13 protocol
Hi Marc, I had a look you on your server.xml. Do you have a ROOT directory in your server.xml? If yes, move it out of the webapps and they restart your Tomcat and test. Alternativly, try giving a context name other then root to your context in server.xml. In server.xml Context path=/foo docBase=/var/www/html debug=9/ in httpd.conf JkMount /foo local_pt1 JkMount /foo/*.jsp local_pt1 Let me know if it works. Raj Marc wrote: Hi, here I attach my conf files: I've modified server.xml and workers.properties (submitted by Raj), just creating a new context on the server.xml to support my default application, at the root path. I can connect to this page, located in /var/www/html using - Tomcat, on port 8080 - Apache, on port 80 (before configuring the ajp13 worker) I'm using the mod_jk, no eapi version, provided in the last jk1.2 release. Seems that the connector is running, because in catalina_log.2002-10-08.txt: 2002-10-08 21:26:34 Ajp13Connector[8009] Opening server socket on all host IP addresses 2002-10-08 21:26:34 Ajp13Connector[8009] Starting background thread 2002-10-08 21:26:34 Ajp13Processor[8009][0] Starting background thread 2002-10-08 21:26:34 Ajp13Processor[8009][1] Starting background thread 2002-10-08 21:26:34 Ajp13Processor[8009][2] Starting background thread 2002-10-08 21:26:34 Ajp13Processor[8009][3] Starting background thread 2002-10-08 21:26:34 Ajp13Processor[8009][4] Starting background thread 2002-10-08 21:26:34 Ajp13Processor[8009][5] Starting background thread 2002-10-08 21:26:34 Ajp13Processor[8009][6] Starting background thread 2002-10-08 21:26:34 Ajp13Processor[8009][7] Starting background thread 2002-10-08 21:26:34 Ajp13Processor[8009][8] Starting background thread 2002-10-08 21:26:34 Ajp13Processor[8009][9] Starting background thread When I start apache (after tomcat starts), seems that all is ok: [Tue Oct 08 21:29:24 2002] [jk_uri_worker_map.c (172)]: Into jk_uri_worker_map_t::uri_worker_map_alloc [Tue Oct 08 21:29:24 2002] [jk_uri_worker_map.c (375)]: Into jk_uri_worker_map_t::uri_worker_map_open [Tue Oct 08 21:29:24 2002] [jk_uri_worker_map.c (396)]: jk_uri_worker_map_t::uri_worker_map_open, rule map size is 1 [Tue Oct 08 21:29:24 2002] [jk_uri_worker_map.c (299)]: Into jk_uri_worker_map_t::uri_worker_map_open, suffix rule /.jsp=local_pt1 was added [Tue Oct 08 21:29:24 2002] [jk_uri_worker_map.c (408)]: Into jk_uri_worker_map_t::uri_worker_map_open, there are 1 rules [Tue Oct 08 21:29:24 2002] [jk_uri_worker_map.c (422)]: jk_uri_worker_map_t::uri_worker_map_open, done [Tue Oct 08 21:29:24 2002] [jk_worker.c (88)]: Into wc_open [Tue Oct 08 21:29:24 2002] [jk_worker.c (222)]: Into build_worker_map, creating 1 workers [Tue Oct 08 21:29:24 2002] [jk_worker.c (228)]: build_worker_map, creating worker local_pt1 [Tue Oct 08 21:29:24 2002] [jk_worker.c (148)]: Into wc_create_worker [Tue Oct 08 21:29:24 2002] [jk_worker.c (162)]: wc_create_worker, about to create instance local_pt1 of ajp13 [Tue Oct 08 21:29:24 2002] [jk_ajp13_worker.c (108)]: Into ajp13_worker_factory [Tue Oct 08 21:29:24 2002] [jk_worker.c (171)]: wc_create_worker, about to validate and init local_pt1 [Tue Oct 08 21:29:24 2002] [jk_ajp_common.c (1206)]: Into jk_worker_t::validate [Tue Oct 08 21:29:24 2002] [jk_ajp_common.c (1226)]: In jk_worker_t::validate for worker local_pt1 contact is localhost:8009 [Tue Oct 08 21:29:24 2002] [jk_ajp_common.c (1254)]: Into jk_worker_t::init [Tue Oct 08 21:29:24 2002] [jk_ajp_common.c (1274)]: In jk_worker_t::init, setting socket timeout to 0 [Tue Oct 08 21:29:24 2002] [jk_worker.c (187)]: wc_create_worker, done [Tue Oct 08 21:29:24 2002] [jk_worker.c (238)]: build_worker_map, removing old local_pt1 worker [Tue Oct 08 21:29:24 2002] [jk_worker.c (250)]: build_worker_map, done [Tue Oct 08 21:29:24 2002] [jk_worker.c (111)]: wc_open, done 1 (I don't know why the previos actions are repeated, seems that mounts the worker two times) [Tue Oct 08 21:29:25 2002] [jk_uri_worker_map.c (172)]: Into jk_uri_worker_map_t::uri_worker_map_alloc [Tue Oct 08 21:29:25 2002] [jk_uri_worker_map.c (375)]: Into jk_uri_worker_map_t::uri_worker_map_open [Tue Oct 08 21:29:25 2002] [jk_uri_worker_map.c (396)]: jk_uri_worker_map_t::uri_worker_map_open, rule map size is 1 [Tue Oct 08 21:29:25 2002] [jk_uri_worker_map.c (299)]: Into jk_uri_worker_map_t::uri_worker_map_open, suffix rule /.jsp=local_pt1 was added [Tue Oct 08 21:29:25 2002] [jk_uri_worker_map.c (408)]: Into jk_uri_worker_map_t::uri_worker_map_open, there are 1 rules [Tue Oct 08 21:29:25 2002] [jk_uri_worker_map.c (422)]: jk_uri_worker_map_t::uri_worker_map_open, done [Tue Oct 08 21:29:25 2002] [jk_worker.c (88)]: Into wc_open [Tue Oct 08 21:29:25 2002] [jk_worker.c (222)]: Into build_worker_map, creating 1 workers [Tue Oct 08 21:29:25 2002] [jk_worker.c (228)]: build_worker_map, creating worker local_pt1 [Tue Oct 08
Re: Error using ajp13 protocol
Hi Marc, Though I am not expert in the JK Connectors, But it is very clear that mod_jk part at apache is not able to connect to the tomcat process. There may be three reason for this:- 1. Your JK connector on tomcat is not listening on port 8009. 2. The host name of the worker in worker.properties and tomcat does not match. 3. Tomct is not running at all. Pleas double check your JK connector configuration in server.xml. Check the default host name in tomcat and worker.properties for the local_pt1 match. Try telneting to the host and port you have configured in worker.properties. Raj Marc Vila Pérez wrote: Hi! I'm trying to connect apache with tomcat, using jk (ajp13), in my mod_jk.log (debug log level), I can read this: [Tue Oct 08 02:49:20 2002] [jk_uri_worker_map.c (172)]: Into jk_uri_worker_map_t::uri_worker_map_alloc [Tue Oct 08 02:49:20 2002] [jk_uri_worker_map.c (375)]: Into jk_uri_worker_map_t::uri_worker_map_open [Tue Oct 08 02:49:20 2002] [jk_uri_worker_map.c (396)]: jk_uri_worker_map_t::uri_worker_map_open, rule map size is 1 [Tue Oct 08 02:49:20 2002] [jk_uri_worker_map.c (299)]: Into jk_uri_worker_map_t::uri_worker_map_open, suffix rule /.jsp=local_pt1 was added [Tue Oct 08 02:49:20 2002] [jk_uri_worker_map.c (408)]: Into jk_uri_worker_map_t::uri_worker_map_open, there are 1 rules [Tue Oct 08 02:49:20 2002] [jk_uri_worker_map.c (422)]: jk_uri_worker_map_t::uri_worker_map_open, done [Tue Oct 08 02:49:20 2002] [jk_worker.c (88)]: Into wc_open [Tue Oct 08 02:49:20 2002] [jk_worker.c (222)]: Into build_worker_map, creating 1 workers [Tue Oct 08 02:49:20 2002] [jk_worker.c (228)]: build_worker_map, creating worker local_pt1 [Tue Oct 08 02:49:20 2002] [jk_worker.c (148)]: Into wc_create_worker [Tue Oct 08 02:49:20 2002] [jk_worker.c (162)]: wc_create_worker, about to create instance local_pt1 of ajp13 [Tue Oct 08 02:49:20 2002] [jk_ajp13_worker.c (108)]: Into ajp13_worker_factory [Tue Oct 08 02:49:20 2002] [jk_worker.c (171)]: wc_create_worker, about to validate and init local_pt1 [Tue Oct 08 02:49:20 2002] [jk_ajp_common.c (1206)]: Into jk_worker_t::validate [Tue Oct 08 02:49:20 2002] [jk_ajp_common.c (1226)]: In jk_worker_t::validate for worker local_pt1 contact is localhost:8009 [Tue Oct 08 02:49:20 2002] [jk_ajp_common.c (1254)]: Into jk_worker_t::init [Tue Oct 08 02:49:20 2002] [jk_ajp_common.c (1274)]: In jk_worker_t::init, setting socket timeout to 0 [Tue Oct 08 02:49:20 2002] [jk_worker.c (187)]: wc_create_worker, done [Tue Oct 08 02:49:20 2002] [jk_worker.c (238)]: build_worker_map, removing old local_pt1 worker [Tue Oct 08 02:49:20 2002] [jk_worker.c (250)]: build_worker_map, done [Tue Oct 08 02:49:20 2002] [jk_worker.c (111)]: wc_open, done 1 [Tue Oct 08 02:49:21 2002] [jk_uri_worker_map.c (172)]: Into jk_uri_worker_map_t::uri_worker_map_alloc [Tue Oct 08 02:49:21 2002] [jk_uri_worker_map.c (375)]: Into jk_uri_worker_map_t::uri_worker_map_open [Tue Oct 08 02:49:21 2002] [jk_uri_worker_map.c (396)]: jk_uri_worker_map_t::uri_worker_map_open, rule map size is 1 [Tue Oct 08 02:49:21 2002] [jk_uri_worker_map.c (299)]: Into jk_uri_worker_map_t::uri_worker_map_open, suffix rule /.jsp=local_pt1 was added [Tue Oct 08 02:49:21 2002] [jk_uri_worker_map.c (408)]: Into jk_uri_worker_map_t::uri_worker_map_open, there are 1 rules [Tue Oct 08 02:49:21 2002] [jk_uri_worker_map.c (422)]: jk_uri_worker_map_t::uri_worker_map_open, done [Tue Oct 08 02:49:21 2002] [jk_worker.c (88)]: Into wc_open [Tue Oct 08 02:49:21 2002] [jk_worker.c (222)]: Into build_worker_map, creating 1 workers [Tue Oct 08 02:49:21 2002] [jk_worker.c (228)]: build_worker_map, creating worker local_pt1 [Tue Oct 08 02:49:21 2002] [jk_worker.c (148)]: Into wc_create_worker [Tue Oct 08 02:49:21 2002] [jk_worker.c (162)]: wc_create_worker, about to create instance local_pt1 of ajp13 [Tue Oct 08 02:49:21 2002] [jk_ajp13_worker.c (108)]: Into ajp13_worker_factory [Tue Oct 08 02:49:21 2002] [jk_worker.c (171)]: wc_create_worker, about to validate and init local_pt1 [Tue Oct 08 02:49:21 2002] [jk_ajp_common.c (1206)]: Into jk_worker_t::validate [Tue Oct 08 02:49:21 2002] [jk_ajp_common.c (1226)]: In jk_worker_t::validate for worker local_pt1 contact is localhost:8009 [Tue Oct 08 02:49:21 2002] [jk_ajp_common.c (1254)]: Into jk_worker_t::init [Tue Oct 08 02:49:21 2002] [jk_ajp_common.c (1274)]: In jk_worker_t::init, setting socket timeout to 0 [Tue Oct 08 02:49:21 2002] [jk_worker.c (187)]: wc_create_worker, done [Tue Oct 08 02:49:21 2002] [jk_worker.c (238)]: build_worker_map, removing old local_pt1 worker [Tue Oct 08 02:49:21 2002] [jk_worker.c (250)]: build_worker_map, done [Tue Oct 08 02:49:21 2002] [jk_worker.c (111)]: wc_open, done 1 (I don't know why repeat two times the sames, but seems that start ok) [Tue Oct 08 02:50:10 2002] [jk_uri_worker_map.c (460)]: Into
Re: Error using ajp13 protocol
Hi Raj (and thank you for your help yesterday)... I tried to connect using telenet to localhost 8009 and... there wasn't connection refused, but the connection wasn't accepted (showed the Escape character ... ), finally I killed the telnet process because no response was given. I think that the ajp13 connector (tomcat) is not running in the rigth way, because, seems that apache finds the worker (the worker name is ok): [Tue Oct 08 02:49:21 2002] [jk_worker.c (187)]: wc_create_worker, done [Tue Oct 08 02:49:21 2002] [jk_worker.c (238)]: build_worker_map, removing old local_pt1 worker [Tue Oct 08 02:49:21 2002] [jk_worker.c (250)]: build_worker_map, done [Tue Oct 08 02:49:21 2002] [jk_worker.c (111)]: wc_open, done 1 My workers.properties is: ps=/ worker.list=local_pt1 worker.local_pt1.port=8009 worker.local_pt1.host=localhost worker.local_pt1.type=ajp13 worker.local_pt1.lbfactor=1 My server.xml: !-- Define an AJP 1.3 Connector on port 8009 -- Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8009 minProcessors=5 maxProcessors=75 acceptCount=10 debug=0/ And, in catalina_log, seems that the connector starts all threads: 2002-10-08 02:35:06 Ajp13Connector[8009] Opening server socket on all host IP addresses 2002-10-08 02:35:06 Ajp13Connector[8009] Starting background thread 2002-10-08 02:35:06 Ajp13Processor[8009][0] Starting background thread 2002-10-08 02:35:06 Ajp13Processor[8009][1] Starting background thread 2002-10-08 02:35:06 Ajp13Processor[8009][2] Starting background thread 2002-10-08 02:35:06 Ajp13Processor[8009][3] Starting background thread 2002-10-08 02:35:06 Ajp13Processor[8009][4] Starting background thread Any ideas? Regards! Marc Raj Saini wrote: Hi Marc, Though I am not expert in the JK Connectors, But it is very clear that mod_jk part at apache is not able to connect to the tomcat process. There may be three reason for this:- 1. Your JK connector on tomcat is not listening on port 8009. 2. The host name of the worker in worker.properties and tomcat does not match. 3. Tomct is not running at all. Pleas double check your JK connector configuration in server.xml. Check the default host name in tomcat and worker.properties for the local_pt1 match. Try telneting to the host and port you have configured in worker.properties. Raj Marc Vila Pérez wrote: Hi! I'm trying to connect apache with tomcat, using jk (ajp13), in my mod_jk.log (debug log level), I can read this: [Tue Oct 08 02:49:20 2002] [jk_uri_worker_map.c (172)]: Into jk_uri_worker_map_t::uri_worker_map_alloc [Tue Oct 08 02:49:20 2002] [jk_uri_worker_map.c (375)]: Into jk_uri_worker_map_t::uri_worker_map_open [Tue Oct 08 02:49:20 2002] [jk_uri_worker_map.c (396)]: jk_uri_worker_map_t::uri_worker_map_open, rule map size is 1 [Tue Oct 08 02:49:20 2002] [jk_uri_worker_map.c (299)]: Into jk_uri_worker_map_t::uri_worker_map_open, suffix rule /.jsp=local_pt1 was added [Tue Oct 08 02:49:20 2002] [jk_uri_worker_map.c (408)]: Into jk_uri_worker_map_t::uri_worker_map_open, there are 1 rules [Tue Oct 08 02:49:20 2002] [jk_uri_worker_map.c (422)]: jk_uri_worker_map_t::uri_worker_map_open, done [Tue Oct 08 02:49:20 2002] [jk_worker.c (88)]: Into wc_open [Tue Oct 08 02:49:20 2002] [jk_worker.c (222)]: Into build_worker_map, creating 1 workers [Tue Oct 08 02:49:20 2002] [jk_worker.c (228)]: build_worker_map, creating worker local_pt1 [Tue Oct 08 02:49:20 2002] [jk_worker.c (148)]: Into wc_create_worker [Tue Oct 08 02:49:20 2002] [jk_worker.c (162)]: wc_create_worker, about to create instance local_pt1 of ajp13 [Tue Oct 08 02:49:20 2002] [jk_ajp13_worker.c (108)]: Into ajp13_worker_factory [Tue Oct 08 02:49:20 2002] [jk_worker.c (171)]: wc_create_worker, about to validate and init local_pt1 [Tue Oct 08 02:49:20 2002] [jk_ajp_common.c (1206)]: Into jk_worker_t::validate [Tue Oct 08 02:49:20 2002] [jk_ajp_common.c (1226)]: In jk_worker_t::validate for worker local_pt1 contact is localhost:8009 [Tue Oct 08 02:49:20 2002] [jk_ajp_common.c (1254)]: Into jk_worker_t::init [Tue Oct 08 02:49:20 2002] [jk_ajp_common.c (1274)]: In jk_worker_t::init, setting socket timeout to 0 [Tue Oct 08 02:49:20 2002] [jk_worker.c (187)]: wc_create_worker, done [Tue Oct 08 02:49:20 2002] [jk_worker.c (238)]: build_worker_map, removing old local_pt1 worker [Tue Oct 08 02:49:20 2002] [jk_worker.c (250)]: build_worker_map, done [Tue Oct 08 02:49:20 2002] [jk_worker.c (111)]: wc_open, done 1 [Tue Oct 08 02:49:21 2002] [jk_uri_worker_map.c (172)]: Into jk_uri_worker_map_t::uri_worker_map_alloc [Tue Oct 08 02:49:21 2002] [jk_uri_worker_map.c (375)]: Into jk_uri_worker_map_t::uri_worker_map_open [Tue Oct 08 02:49:21 2002] [jk_uri_worker_map.c (396)]: jk_uri_worker_map_t::uri_worker_map_open, rule
RE: Error using ajp13 protocol
Hi, According to you, every thing is fine(i.e ajp13 is working fine and listeneing on 8009), can you just verify your mod_jk.conf and check if you are using hostname as localhost and verify in server.xml if you use same name for host and engine (localhost) if you use same name then how do you configure your context and appbase? if you send me details i may help you -Original Message- From: Marc [mailto:[EMAIL PROTECTED]] Sent: Tue 10/8/2002 8:56 AM To: Tomcat Users List Cc: Subject:Re: Error using ajp13 protocol Hi Raj (and thank you for your help yesterday)... I tried to connect using telenet to localhost 8009 and... there wasn't connection refused, but the connection wasn't accepted (showed the Escape character ... ), finally I killed the telnet process because no response was given. I think that the ajp13 connector (tomcat) is not running in the rigth way, because, seems that apache finds the worker (the worker name is ok): [Tue Oct 08 02:49:21 2002] [jk_worker.c (187)]: wc_create_worker, done [Tue Oct 08 02:49:21 2002] [jk_worker.c (238)]: build_worker_map, removing old local_pt1 worker [Tue Oct 08 02:49:21 2002] [jk_worker.c (250)]: build_worker_map, done [Tue Oct 08 02:49:21 2002] [jk_worker.c (111)]: wc_open, done 1 My workers.properties is: ps=/ worker.list=local_pt1 worker.local_pt1.port=8009 worker.local_pt1.host=localhost worker.local_pt1.type=ajp13 worker.local_pt1.lbfactor=1 My server.xml: !-- Define an AJP 1.3 Connector on port 8009 -- Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8009 minProcessors=5 maxProcessors=75 acceptCount=10 debug=0/ And, in catalina_log, seems that the connector starts all threads: 2002-10-08 02:35:06 Ajp13Connector[8009] Opening server socket on all host IP addresses 2002-10-08 02:35:06 Ajp13Connector[8009] Starting background thread 2002-10-08 02:35:06 Ajp13Processor[8009][0] Starting background thread 2002-10-08 02:35:06 Ajp13Processor[8009][1] Starting background thread 2002-10-08 02:35:06 Ajp13Processor[8009][2] Starting background thread 2002-10-08 02:35:06 Ajp13Processor[8009][3] Starting background thread 2002-10-08 02:35:06 Ajp13Processor[8009][4] Starting background thread Any ideas? Regards! Marc Raj Saini wrote: Hi Marc, Though I am not expert in the JK Connectors, But it is very clear that mod_jk part at apache is not able to connect to the tomcat process. There may be three reason for this:- 1. Your JK connector on tomcat is not listening on port 8009. 2. The host name of the worker in worker.properties and tomcat does not match. 3. Tomct is not running at all. Pleas double check your JK connector configuration in server.xml. Check the default host name in tomcat and worker.properties for the local_pt1 match. Try telneting to the host and port you have configured in worker.properties. Raj Marc Vila Pérez wrote: Hi! I'm trying to connect apache with tomcat, using jk (ajp13), in my mod_jk.log (debug log level), I can read this: [Tue Oct 08 02:49:20 2002] [jk_uri_worker_map.c (172)]: Into jk_uri_worker_map_t::uri_worker_map_alloc [Tue Oct 08 02:49:20 2002] [jk_uri_worker_map.c (375)]: Into jk_uri_worker_map_t::uri_worker_map_open [Tue Oct 08 02:49:20 2002] [jk_uri_worker_map.c (396)]: jk_uri_worker_map_t::uri_worker_map_open, rule map size is 1 [Tue Oct 08 02:49:20 2002] [jk_uri_worker_map.c (299)]: Into jk_uri_worker_map_t::uri_worker_map_open, suffix rule /.jsp=local_pt1 was added [Tue Oct 08 02:49:20 2002] [jk_uri_worker_map.c (408)]: Into jk_uri_worker_map_t::uri_worker_map_open, there are 1 rules [Tue Oct 08 02:49:20 2002] [jk_uri_worker_map.c (422)]: jk_uri_worker_map_t::uri_worker_map_open, done [Tue Oct 08 02:49:20 2002] [jk_worker.c (88)]: Into wc_open [Tue Oct 08 02:49:20 2002] [jk_worker.c (222)]: Into build_worker_map, creating 1 workers [Tue Oct 08 02:49:20 2002] [jk_worker.c (228)]: build_worker_map, creating worker local_pt1 [Tue Oct 08 02:49:20 2002] [jk_worker.c (148)]: Into wc_create_worker [Tue Oct 08 02:49:20 2002] [jk_worker.c (162)]: wc_create_worker, about to create instance local_pt1 of ajp13 [Tue Oct 08 02:49:20 2002] [jk_ajp13_worker.c (108)]: Into ajp13_worker_factory [Tue Oct 08 02:49:20 2002] [jk_worker.c (171)]: wc_create_worker, about to validate and init local_pt1 [Tue Oct 08 02:49:20 2002] [jk_ajp_common.c (1206)]: Into jk_worker_t::validate [Tue Oct 08 02:49:20 2002] [jk_ajp_common.c (1226)]: In jk_worker_t::validate for worker local_pt1 contact is localhost:8009 [Tue Oct 08 02:49:20 2002] [jk_ajp_common.c (1254)]: Into jk_worker_t::init [Tue Oct 08 02:49:20 2002] [jk_ajp_common.c (1274)]: In jk_worker_t::init, setting socket timeout to 0 [Tue Oct 08 02:49:20 2002] [jk_worker.c (187)]: wc_create_worker, done [Tue
Error using ajp13 protocol
Hi! I'm trying to connect apache with tomcat, using jk (ajp13), in my mod_jk.log (debug log level), I can read this: [Tue Oct 08 02:49:20 2002] [jk_uri_worker_map.c (172)]: Into jk_uri_worker_map_t::uri_worker_map_alloc [Tue Oct 08 02:49:20 2002] [jk_uri_worker_map.c (375)]: Into jk_uri_worker_map_t::uri_worker_map_open [Tue Oct 08 02:49:20 2002] [jk_uri_worker_map.c (396)]: jk_uri_worker_map_t::uri_worker_map_open, rule map size is 1 [Tue Oct 08 02:49:20 2002] [jk_uri_worker_map.c (299)]: Into jk_uri_worker_map_t::uri_worker_map_open, suffix rule /.jsp=local_pt1 was added [Tue Oct 08 02:49:20 2002] [jk_uri_worker_map.c (408)]: Into jk_uri_worker_map_t::uri_worker_map_open, there are 1 rules [Tue Oct 08 02:49:20 2002] [jk_uri_worker_map.c (422)]: jk_uri_worker_map_t::uri_worker_map_open, done [Tue Oct 08 02:49:20 2002] [jk_worker.c (88)]: Into wc_open [Tue Oct 08 02:49:20 2002] [jk_worker.c (222)]: Into build_worker_map, creating 1 workers [Tue Oct 08 02:49:20 2002] [jk_worker.c (228)]: build_worker_map, creating worker local_pt1 [Tue Oct 08 02:49:20 2002] [jk_worker.c (148)]: Into wc_create_worker [Tue Oct 08 02:49:20 2002] [jk_worker.c (162)]: wc_create_worker, about to create instance local_pt1 of ajp13 [Tue Oct 08 02:49:20 2002] [jk_ajp13_worker.c (108)]: Into ajp13_worker_factory [Tue Oct 08 02:49:20 2002] [jk_worker.c (171)]: wc_create_worker, about to validate and init local_pt1 [Tue Oct 08 02:49:20 2002] [jk_ajp_common.c (1206)]: Into jk_worker_t::validate [Tue Oct 08 02:49:20 2002] [jk_ajp_common.c (1226)]: In jk_worker_t::validate for worker local_pt1 contact is localhost:8009 [Tue Oct 08 02:49:20 2002] [jk_ajp_common.c (1254)]: Into jk_worker_t::init [Tue Oct 08 02:49:20 2002] [jk_ajp_common.c (1274)]: In jk_worker_t::init, setting socket timeout to 0 [Tue Oct 08 02:49:20 2002] [jk_worker.c (187)]: wc_create_worker, done [Tue Oct 08 02:49:20 2002] [jk_worker.c (238)]: build_worker_map, removing old local_pt1 worker [Tue Oct 08 02:49:20 2002] [jk_worker.c (250)]: build_worker_map, done [Tue Oct 08 02:49:20 2002] [jk_worker.c (111)]: wc_open, done 1 [Tue Oct 08 02:49:21 2002] [jk_uri_worker_map.c (172)]: Into jk_uri_worker_map_t::uri_worker_map_alloc [Tue Oct 08 02:49:21 2002] [jk_uri_worker_map.c (375)]: Into jk_uri_worker_map_t::uri_worker_map_open [Tue Oct 08 02:49:21 2002] [jk_uri_worker_map.c (396)]: jk_uri_worker_map_t::uri_worker_map_open, rule map size is 1 [Tue Oct 08 02:49:21 2002] [jk_uri_worker_map.c (299)]: Into jk_uri_worker_map_t::uri_worker_map_open, suffix rule /.jsp=local_pt1 was added [Tue Oct 08 02:49:21 2002] [jk_uri_worker_map.c (408)]: Into jk_uri_worker_map_t::uri_worker_map_open, there are 1 rules [Tue Oct 08 02:49:21 2002] [jk_uri_worker_map.c (422)]: jk_uri_worker_map_t::uri_worker_map_open, done [Tue Oct 08 02:49:21 2002] [jk_worker.c (88)]: Into wc_open [Tue Oct 08 02:49:21 2002] [jk_worker.c (222)]: Into build_worker_map, creating 1 workers [Tue Oct 08 02:49:21 2002] [jk_worker.c (228)]: build_worker_map, creating worker local_pt1 [Tue Oct 08 02:49:21 2002] [jk_worker.c (148)]: Into wc_create_worker [Tue Oct 08 02:49:21 2002] [jk_worker.c (162)]: wc_create_worker, about to create instance local_pt1 of ajp13 [Tue Oct 08 02:49:21 2002] [jk_ajp13_worker.c (108)]: Into ajp13_worker_factory [Tue Oct 08 02:49:21 2002] [jk_worker.c (171)]: wc_create_worker, about to validate and init local_pt1 [Tue Oct 08 02:49:21 2002] [jk_ajp_common.c (1206)]: Into jk_worker_t::validate [Tue Oct 08 02:49:21 2002] [jk_ajp_common.c (1226)]: In jk_worker_t::validate for worker local_pt1 contact is localhost:8009 [Tue Oct 08 02:49:21 2002] [jk_ajp_common.c (1254)]: Into jk_worker_t::init [Tue Oct 08 02:49:21 2002] [jk_ajp_common.c (1274)]: In jk_worker_t::init, setting socket timeout to 0 [Tue Oct 08 02:49:21 2002] [jk_worker.c (187)]: wc_create_worker, done [Tue Oct 08 02:49:21 2002] [jk_worker.c (238)]: build_worker_map, removing old local_pt1 worker [Tue Oct 08 02:49:21 2002] [jk_worker.c (250)]: build_worker_map, done [Tue Oct 08 02:49:21 2002] [jk_worker.c (111)]: wc_open, done 1 (I don't know why repeat two times the sames, but seems that start ok) [Tue Oct 08 02:50:10 2002] [jk_uri_worker_map.c (460)]: Into jk_uri_worker_map_t::map_uri_to_worker [Tue Oct 08 02:50:10 2002] [jk_uri_worker_map.c (477)]: Attempting to map URI '/index.jsp' [Tue Oct 08 02:50:10 2002] [jk_uri_worker_map.c (558)]: jk_uri_worker_map_t::map_uri_to_worker, Found a suffix match local_pt1 - *.jsp [Tue Oct 08 02:50:10 2002] [jk_uri_worker_map.c (460)]: Into jk_uri_worker_map_t::map_uri_to_worker [Tue Oct 08 02:50:10 2002] [jk_uri_worker_map.c (477)]: Attempting to map URI '/index.jsp' [Tue Oct 08 02:50:10 2002] [jk_uri_worker_map.c (558)]: jk_uri_worker_map_t::map_uri_to_worker, Found a suffix match local_pt1 - *.jsp [Tue Oct 08 02:50:10 2002] [jk_worker.c (132)]: Into wc_get_worker_for_name local_pt1 [Tue Oct 08 02:50:10 2002] [jk_worker.c (136)]: