New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The FileNotFoundException thrown from StandardJarScanner when using layered JARs isn't very helpful #23139
Comments
JSPs cannot be used with JAR files and unfortunately layered wars are not yet supported (issue #22195 is tracking that request). The current error message isn't very helpful, so I'd like to dig into it a little more to see if we can't provide something better. |
I am having this issue too since updating to 2.3.3. It actually does not only affect layered JARs. I get the same warning messages in the log once the (layered or non-layered) JAR is exploded and executed with JSPs weren't support by default - agreed. But there have been rather easy workarounds as described here. It would be unfortunate if the new |
The root cause of this issue was identified by @wilkinsona in a separate issue. The output from the provided sample app shows the same duplicate entries for each jar in the classloader, with a valid jar entry in |
Closing this as a duplicate of #24192 since the other issue identifies the root cause. |
Given a spring-boot application with jsp and layered jar, starting it according to blog post instructions produces FileNotFoundException from Tomcat's StandardJarScanner:
Tested under: spring-petclinic with spring-boot 2.3.3 release.
You can find a reproducible example here. Run test.sh script
The problem appears to be that
JarLauncher
adds entries from classpath.idx:The text was updated successfully, but these errors were encountered: