Hi, I have a question about difference in the behaviour of org.apache.catalina.loader.WebappClassLoaderBase.getResource(String). I'm investigating the issue reported here [1].
In Tomcat 8+ when WebappClassLoaderBase.getResource is invoked with a path that represents a jar resource and starts with a slash (classpath:/schema/shibboleth-2.0-services.xsd) this resource will be served. In org.apache.catalina.webresources.AbstractArchiveResourceSet.getResource(String) it is clearly stated that when the path starts with a slash then this leading slash will be removed. In Tomcat 7 WebappClassLoaderBase.getResource, such resource will not be found. If I remove the leading slash everything is OK. Is that difference intentional or I can apply a change for removing the leading slash in Tomcat 7 WebappClassLoaderBase? Thanks a lot, Violeta [1] http://marc.info/?t=146170035100001&r=1&w=2