Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 94447 invoked from network); 15 May 2003 09:03:43 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 15 May 2003 09:03:43 -0000 Received: (qmail 20432 invoked by uid 97); 15 May 2003 09:06:00 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@nagoya.betaversion.org Received: (qmail 20425 invoked from network); 15 May 2003 09:05:59 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 15 May 2003 09:05:59 -0000 Received: (qmail 93001 invoked by uid 500); 15 May 2003 09:03:26 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 92988 invoked from network); 15 May 2003 09:03:25 -0000 Received: from eastgate.starhub.net.sg (203.116.1.189) by daedalus.apache.org with SMTP; 15 May 2003 09:03:25 -0000 Received: from cymulacrum.net (mcns220.docsis163.scvmaxonline.com.sg [202.156.163.220]) by eastgate.starhub.net.sg (8.12.5/8.12.5) with ESMTP id h4F93b94015116 for ; Thu, 15 May 2003 17:03:37 +0800 (SST) Message-ID: <3EC357E4.6060707@cymulacrum.net> Date: Thu, 15 May 2003 17:03:32 +0800 From: Chong Yu Meng User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3.1) Gecko/20030425 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Tomcat Users List Subject: Apache 2 + Tomcat 4.1.x + mod_jk2 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Almost done ! I got the setup working after some trial-and-error poking around. I have several questions though : 1. It appears that there have been some changes in the configuration files : for example, the web application contexts are no longer "mounted" using the JkMount directive in httpd2.conf, as they were in mod_jk. In fact, it appears that mod_jk2 reads configuration information first from jk2.properties, then workers.properties. For people using rpm files to install mod_jk2, the file mod_jk.conf appears not to be needed anymore. 2. I understood how the connector worked in mod_jk, where you had to name a "worker" (in mod_jk.conf or httpd.conf, with JkMount directive), then specify the port, host and type for that worker in workers.properties. This was your "connection" between Apache (httpd.conf) and mod_jk (workers.properties). For mod_jk2, there seems to be no configuration information in httpd2.conf (except for the LoadModule directive), and mod_jk2 appears to obtain its configuration information from jk2.properties, followed by workers2.properties when Tomcat starts up. Am I correct in this observation ? 3. For my setup, it seems as if Apache 2 is trying to attempt two connections. Why I say this is : when I startup Tomcat, followed by Apache later, I can access my servlets and JSPs, but, invariably, after the first attempt fails with an Internal Server error. I will get an error that mentions a timeout when Apache tries to connect to Tomcat (see below, from error_log for Apache 2): [Thu May 15 12:56:36 2003] [error] lb_worker.service() worker init timeout for channel.jni:jni [Thu May 15 12:56:36 2003] [error] lb.service() worker failed ajp13:jni [Thu May 15 12:56:36 2003] [error] lb.service() unrecoverable error... [Thu May 15 12:56:36 2003] [error] mod_jk.handler() Error connecting to tomcat 120000 But the next attempt and every subsequent attempt after that succeeds. This is more an annoyance than anything else, but since I am going to be drafting a short HOW-TO on this, I thought I should at least be as thorough as possible. Or is there something wrong with my jk.properties, workers2.properties? Thanks and Regards, pascal chong --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org