Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 95029 invoked from network); 16 Nov 2006 09:38:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 Nov 2006 09:38:23 -0000 Received: (qmail 67945 invoked by uid 500); 16 Nov 2006 09:38:19 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 67924 invoked by uid 500); 16 Nov 2006 09:38:18 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 67913 invoked by uid 99); 16 Nov 2006 09:38:18 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Nov 2006 01:38:18 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [195.227.30.246] (HELO datura.kippdata.de) (195.227.30.246) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Nov 2006 01:38:04 -0800 Received: from [192.168.2.150] ([192.168.2.150]) by datura.kippdata.de (8.13.5/8.13.5) with ESMTP id kAG9bbVE029187 for ; Thu, 16 Nov 2006 10:37:38 +0100 (CET) Message-ID: <455C315F.4000709@kippdata.de> Date: Thu, 16 Nov 2006 10:37:35 +0100 From: Rainer Jung User-Agent: Thunderbird 1.5.0.8 (Windows/20061025) MIME-Version: 1.0 To: Tomcat Users List Subject: Re: JkMountFile not working References: <455A76F5.9050906@gmail.com> <455AC79B.40109@kippdata.de> <455BCF21.60505@gmail.com> In-Reply-To: <455BCF21.60505@gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org No way to look at the modification time inside mod_jk. The module will log the followinf when loading the file during request processing: Log-Level info: Reloaded urimaps from FILENAME And a little later one can see the usual request mapping (Log-Level debug): Attempting to map URI 'REQUEST_URL' from NUM_OF_ENTIES maps Please open a bugzilla and attach all your config files (including the JkMountfile before and after the change). If you can easily reproduce the problem, it would also be helpful, if you set your log level to trace and attach the complete JkLogFile. Regards, Rainer Gilberto E. Espinoza schrieb: > Hi Rainer- > > I changed the file tonight and checked that the modified time was > tonight's. The update did not work and the server continued to map to > the same webapp context. I again restarted the apache2 server and the > new mappings worked well. Is there a way to see were the modification > time is stored so that I can manually inspect it. > > Thanks for your help. > > Gilberto > > Rainer Jung wrote: >> Hi Gilberto, >> >> automatic reloading of JkMountFile after changes happens only every 60 >> seconds. More precisely, if a request comes in later than 60 seconds >> after the last check, mod_jk updates it's last check time and looks for >> the modification time of the file. If this is more trecent, than the >> modification time when it hass been loaded, it will be loaded again and >> the modification time gets saved. >> >> So the update of the mounts after the change to the file can happen any >> time between immediately and 60 seconds after your changes, assuming >> that requests are coming in. >> >> If this doesn't fit your experience: are the modification times of the >> file OK? >> >> Regards, >> >> Rainer >> >> Gilberto E. Espinoza schrieb: >> >>> Hi - >>> >>> I am running Geronimo+Tomcat (1.1.1). I have apache2 in front of it and >>> I use the JkMountFile directive to map the webapp context to the apache >>> server space. I am not sure that the file I use for the JkMountFile >>> gets reloaded every time I update it. I do not know where to start >>> troubleshooting the issue. >>> >>> I know my mount points work because they are mapped when I restart >>> apache2. >>> >>> Below are the conf files. >>> >>> Thanks, >>> >>> ### apache mod_jk conf ### >>> # Load mod_jk module >>> # Update this path to match your modules location >>> >>> LoadModule jk_module /usr/lib/apache2/mod_jk.so >>> >>> >>> # Declare the module for (remove this line on >>> Apache 2.x) >>> # AddModule mod_jk.c >>> >>> # Where to put jk logs >>> # Update this path to match your logs directory location (put mod_jk.log >>> next to access_log) >>> JkLogFile /var/log/apache2/mod_jk.log >>> >>> # Where to find workers.properties >>> JkWorkersFile /somwhere/workers.properties >>> >>> # Set the jk log level [debug/error/info] >>> JkLogLevel debug >>> >>> # Select the log format >>> JkLogStampFormat "[%a %b %d %H:%M:%S %Y] " >>> >>> # JkOptions indicate to send SSL KEY SIZE, >>> JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories >>> >>> # JkRequestLogFormat set the request format >>> JkRequestLogFormat "%w %V %T" >>> >>> # To automatically load the webapps >>> JkAutoAlias /<>/geronimo/webapps >>> JkMountFile /<>/geronimo/uriworkermap.properties >>> >>> # For Tomcat within Geronimo >>> JkAutoAlias /<>/geronimo-1.1.1/var/catalina/work/ >>> JkAutoAlias /<>/geronimo-1.1.1/config-store/ >>> >>> >>> AllowOverride None >>> deny from all >>> >>> >>> >>> AllowOverride None >>> deny from all >>> >>> >>> >>> AllowOverride None >>> deny from all >>> >>> >>> ### end ### >>> >>> ### uriworkermap.properties ### >>> # URI Mappings >>> >>> /=ajp13 >>> /*=ajp13 >>> /*.jsp=ajp13 >>> >>> /servlets-examples/=ajp13 >>> /jsp-examples/=ajp13 >>> >>> /servlets-examples/servlet/*=ajp13 >>> /servlets-examples/*.jsp=ajp13 >>> /jsp-examples/*.jsp=ajp13 >>> /jsp-examples/*.jspx=ajp13 >>> /jsp-examples/servlet/*=ajp13 >>> >>> /jsp-examples/*.html=ajp13 >>> /jsp-examples/*.htm=ajp13 >>> /jsp-examples/*.png=ajp13 >>> /jsp-examples/*.jpg=ajp13 >>> /jsp-examples/*.jpeg=ajp13 >>> /jsp-examples/*.gif=ajp13 >>> >>> !/servlets-examples/*.html=ajp13 >>> !/servlets-examples/*.htm=ajp13 >>> !/servlets-examples/*.png=ajp13 >>> !/servlets-examples/*.jpg=ajp13 >>> !/servlets-examples/*.jpeg=ajp13 >>> !/servlets-examples/*.gif=ajp13 >>> >>> ### end ### >>> >>> >>> --------------------------------------------------------------------- >>> To start a new topic, e-mail: users@tomcat.apache.org >>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org >>> For additional commands, e-mail: users-help@tomcat.apache.org >>> >> >> --------------------------------------------------------------------- >> To start a new topic, e-mail: users@tomcat.apache.org >> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org >> For additional commands, e-mail: users-help@tomcat.apache.org >> >> >> > --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org