On 27/04/2016 12:00, Violeta Georgieva wrote: > 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?
The difference isn't intentional but I suspect the fix for 7.0.x will require a more complex patch. I'd expect the fix to be based around the DirContext. Mark --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org