You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by roy huang <li...@hotmail.com> on 2004/10/13 06:07:28 UTC

[HELP]If real directory exist,tomcat 5 will automatic add ending slash to the request URL.

Hi,all:
    When I move my application form tomcat 4 to tomcat 5,I found if real directory exist,tomcat 5 will automatic add ending slash to the request URL.
    You can follow this steps:
    1.compile cocoon 2.1.5.1
    2.copy webapp directory to tomcat's webapps directory
    3.create a empty directory under webapp like "fortest"
    4.start tomcat 5
    5.using http://localhost:8080/webapp to access ,it will direct to http://localhost:8080/webapp/ .that's ok.
    Here's the problem    
    6.using http://localhost:8080/webapp/fortesting error is : No pipeline matched request: fortesting ,It's the right error.
    7.using http://localhost:8080/webapp/fortest ,it will direct to http://localhost:8080/webapp/fortest/ and the error will be:
 
Resource not found.

org.apache.cocoon.ResourceNotFoundException: Resource not found.: org.apache.excalibur.source.SourceNotFoundException: file:/D:/Tomcat 5.0/webapps/webapp/fortest/sitemap.xmap doesn't exist.

    This error won't happen in tomcat 4 or jetty.

    Is this tomcat 5 configuration or bugs?Or it's cocoon's own bug?

Roy Huang