Description
Thomas Meyer opened SPR-15332 and commented
Because of Tomcat commit apache/tomcat80@7e767cc#diff-a72fb99b0729353084d2c437f749e718 ResourceUtils.isJarURL will return false https://github.com/spring-projects/spring-framework/blob/master/spring-core/src/main/java/org/springframework/core/io/support/PathMatchingResourcePatternResolver.java#L473 and then Spring tries to access the non-existing file from filesystem and will issue the warning "Cannot search for matching files underneath because it does not correspond to a directory in the file system" https://github.com/spring-projects/spring-framework/blob/master/spring-core/src/main/java/org/springframework/core/io/support/PathMatchingResourcePatternResolver.java#L665
I did see this bug with Spring 4.x but seems still to exists on master branch.
Issue Links:
- Support for last-modified resolution in Tomcat's unpackwar=false mode [SPR-13393] #17434 Support for last-modified resolution in Tomcat's unpackwar=false mode
- Last modified check of Resource created from Tomcat war:file: URL fails with FileNotFoundException [SPR-15485] #20045 Last modified check of Resource created from Tomcat war:file: URL fails with FileNotFoundException
- ResourceUtils.extractArchiveURL fails to work under Tomcat 8.0.41 with unpackWARs=false [SPR-15556] #20115 ResourceUtils.extractArchiveURL fails to work under Tomcat 8.0.41 with unpackWARs=false
Referenced from: commits 57c8c75, 012c56a, 899f235
1 votes, 5 watchers