Return-Path: Delivered-To: apmail-jakarta-tomcat-dev-archive@apache.org Received: (qmail 34833 invoked from network); 6 Dec 2001 00:21:41 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 6 Dec 2001 00:21:41 -0000 Received: (qmail 6057 invoked by uid 97); 6 Dec 2001 00:21:38 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-dev@jakarta.apache.org Received: (qmail 6041 invoked by uid 97); 6 Dec 2001 00:21:38 -0000 Mailing-List: contact tomcat-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Developers List" Reply-To: "Tomcat Developers List" Delivered-To: mailing list tomcat-dev@jakarta.apache.org Received: (qmail 6030 invoked from network); 6 Dec 2001 00:21:37 -0000 Message-ID: <155C6BB395577C4EA8F65A9ADA9F2104EA5032@xcup01.cup.hp.com> From: "GAWLAS,JULIUS (HP-Cupertino,ex1)" To: 'Tomcat Developers List' Subject: [PATCH] latest mod_jk and Apache 2.0 initialization Date: Wed, 5 Dec 2001 16:21:34 -0800 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Seems like the latest j-t-c mod_jk calls initialization (init_jk) twice - once during post_config and then in child_init. This has a side effect of trying to create non existing workers and subsequently failing. Enclosed simple patch prevents second initialization call. Julius Index: mod_jk.c =================================================================== RCS file: /home/cvspublic/jakarta-tomcat-connectors/jk/native/apache-2.0/mod_jk.c,v retrieving revision 1.39 diff -u -r1.39 mod_jk.c --- mod_jk.c 2001/12/04 21:38:26 1.39 +++ mod_jk.c 2001/12/05 23:56:17 @@ -1473,7 +1473,10 @@ jk_server_conf_t *conf = (jk_server_conf_t *)ap_get_module_config(s->module_config, &jk_module); - init_jk( pconf, conf, s ); + if(!conf->was_initialized) { + conf->was_initialized = JK_TRUE; + init_jk( pconf, conf, s ); + } } /** Initialize jk, using worker.properties. -- To unsubscribe, e-mail: For additional commands, e-mail: