https://bz.apache.org/bugzilla/show_bug.cgi?id=58455
Bug ID: 58455 Summary: validate method in org.apache.catalina.webresources.StandardRoot forces a path to start with slash Product: Tomcat 8 Version: 8.0.9 Hardware: PC Status: NEW Severity: normal Priority: P2 Component: Catalina Assignee: dev@tomcat.apache.org Reporter: yifanliu...@gmail.com the validate method in org.apache.catalina.webresources.StandardRoot.java forces a path start with '/'. it should check the 'org.apache.catalina.core.ApplicationContext.GET_RESOURCE_REQUIRE_SLASH' system property so that there is a chance to ignore the slash. Currently, if I call org.apache.catalina.core.ApplicationContext.getResource("myresource.properties") there will be a exception saying: The resource path [myresource.properties] is not valid So I have to add a '/' before the resource name. But if I can not change it, the web application can not start. I think this issue in all versions of tomcat 8 Thanks -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org