tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 5958] New: - Wrong mod_jk.conf for path pattern
Date Sun, 03 Feb 2002 20:46:30 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5958>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5958

Wrong mod_jk.conf for path pattern

           Summary: Wrong mod_jk.conf for path pattern
           Product: Tomcat 3
           Version: 3.3 Final
          Platform: PC
        OS/Version: Linux
            Status: RESOLVED
          Severity: Normal
          Priority: Other
         Component: Webapps
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: olaf.jahn@zamioculcas.net


The following has been observed under Tomcat 3.3a, the mod_jk.so
for 3.3, and Apache 1.3.20:

If the web.xml file contains a path pattern like

 <servlet-mapping>
    <servlet-name>MyServlet</servlet-name>
    <url-pattern>/baz/*</url-pattern>
 </servlet-mapping>

the auto/mod_jk.conf generated by

   <ApacheConfig noRoot="true"  forwardAll="false"/>

contains the line

   JkMount /myContext/baz/*  ajp13

Unfortunately this does not match the path /myConext/baz while
it should so according to section 10.2.2 of the servlet 2.2 spec.
Paths /myContext/baz/something are matched correctly.

Workaround: Manually changing the line to
 
   JkMount /myContext/baz ajp13 

or (if postprocessing the generated mod_jk.conf is not an option)
adding another pattern for the same servlet to the web.xml
(resulting in two JkMounts): <url-pattern>/baz</url-pattern>

------- Additional Comments From Larry.Isaacs@sas.com  2002-02-03 20:46 -------
This was fixed a while back.  The fix is present in the nightly 3.3.1-dev.

--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message