DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=40997>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ· INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=40997 Summary: JkMountFile directive fails to update after the uri mapping file is modified Product: Tomcat 5 Version: 5.5.15 Platform: Other OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: Native:JK AssignedTo: tomcat-dev@jakarta.apache.org ReportedBy: [EMAIL PROTECTED] Hi, I tried posting in the mail list, but the suggested solutions did not work so I was asked to open a bug report. I am running Geronimo+Tomcat v. 1.1.1 and I run apache v. 2.0.53. I use the JkMountFile directive to point to a file where I instruct the server how to map the webapps into the httpd server space. I modify the file as I add webapps, but the uri's are not updated. In order to have the uri's updated I have to restart apache httpd and then it works. Below are the conf files I use and the log output for mod_jk. (also available at http://www.espinozas.org/bug/JkMountFile.tar.gz) ### apache_connector.conf ### # Load mod_jk module # Update this path to match your modules location <IfModule !mod_jk.c> LoadModule jk_module /usr/lib/apache2/mod_jk.so </IfModule> # Declare the module for <IfModule directive> (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 # Update this path to match your conf directory location (put workers.properties next to httpd.conf) JkWorkersFile /etc/geronimo/workers.properties # Set the jk log level [debug/error/info] #JkLogLevel debug JkLogLevel trace # 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 /srv/www/geronimo/webapps JkMountFile /etc/geronimo/uriworkermap.properties # For Tomcat within Geronimo JkAutoAlias /usr/share/geronimo-1.1.1/var/catalina/work/ JkAutoAlias /usr/share/geronimo-1.1.1/config-store/ # Uncomment below if JkMountFile fails # Send everything for context /examples to worker named ajp13 (ajp13) # URI Mappings #JkMount /servlets-examples/ ajp13 #JkMount /jsp-examples/ ajp13 #JkMount /servlets-examples/servlet/* ajp13 #JkMount /servlets-examples/*.jsp ajp13 #JkMount /jsp-examples/*.jsp ajp13 #JkMount /jsp-examples/*.jspx ajp13 #JkMount /jsp-examples/servlet/* ajp13 #JkUnMount /jsp-examples/*.html ajp13 #JkUnMount /jsp-examples/*.htm ajp13 #JkUnMount /jsp-examples/*.png ajp13 #JkUnMount /jsp-examples/*.jpg ajp13 #JkUnMount /jsp-examples/*.jpeg ajp13 #JkUnMount /jsp-examples/*.gif ajp13 #JkUnMount /jsp-examples/*.ico ajp13 #JkUnMount /servlets-examples/*.html ajp13 #JkUnMount /servlets-examples/*.htm ajp13 #JkUnMount /servlets-examples/*.png ajp13 #JkUnMount /servlets-examples/*.jpg ajp13 #JkUnMount /servlets-examples/*.jpeg ajp13 #JkUnMount /servlets-examples/*.gif ajp13 #JkUnMount /servlets-examples/*.ico ajp13 <Location "/servlets-examples/WEB-INF/"> AllowOverride None deny from all </Location> <Location "/jsp-examples/WEB-INF/"> AllowOverride None deny from all </Location> <Location "/tomcat-docs/WEB-INF/"> AllowOverride None deny from all </Location> ### uriworkermap.properties ### # URI Mappings #this is how I test the auto reload #I have a .jsp served by Geronimo/Tomcat and .html by apache httpd #I remove the ! to serve thru geronimo/tomcat uri map !/=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 /tomcat-docs/=ajp13 /tomcat-docs/*=ajp13 !/tomcat-docs/*.html=ajp13 !/tomcat-docs/*.htm=ajp13 !/tomcat-docs/*.png=ajp13 !/tomcat-docs/*.jpg=ajp13 !/tomcat-docs/*.jpeg=ajp13 !/tomcat-docs/*.gif=ajp13 /wiki/=ajp13 /wiki/*=ajp13 ### mod_jk.log (trace level) ### visit http://www.espinozas.org/bug/mod_jk.txt ### workers.properties ### # running tomcat within geronimo #workers.tomcat_home=/srv/www/geronimo-1.1.1/home # Define 1 real worker using ajp13 worker.list=ajp13 # Set properties for ajp13 (ajp13) worker.ajp13.type=ajp13 #worker.ajp13.host=localhost worker.ajp13.host=frodo worker.ajp13.port=8009 worker.ajp13.lbfactor=50 worker.ajp13.cachesize=1 worker.ajp13.cache_timeout=600 worker.ajp13.socket_keepalive=1 worker.ajp13.reclycle_timeout=300 -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]