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
Add jaxb-runtime
to TldSkipPatterns
#16027
Add jaxb-runtime
to TldSkipPatterns
#16027
Conversation
Fix warning on startup where org.glassfish.jaxb:jaxb-runtime's nested jar fails Tomcat scanning.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR. I've added a suggestion, can you please have a look to it?
.../spring-boot/src/main/java/org/springframework/boot/web/embedded/tomcat/TldSkipPatterns.java
Show resolved
Hide resolved
There is no jar in the |
I've created a minimal example that should As far as I can see, the jaxb-runtime referenced on this page is a shaded jar? When I do, I see errors like the following:
|
jaxb-runtime
to TldSkipPatterns
* pr/16027: Polish "Add `jaxb-runtime` to TldSkipPatterns" Add `jaxb-runtime` to TldSkipPatterns
Thanks for reporting the issue @rupert654 and for the PR. I've used |
When running on Java 9+, a replacement for JAXB is needed.
It has been recommended to include org.glassfish.jaxb:jaxb-runtime.
However, this jar appears to be a shaded jar.
If Tomcat is triggered to do classpath scanning (e.g. if you are running with JSPs), then it's StandardJarScanner outputs a warning for every jar within jaxb-runtime that it finds.
This additional pattern will exclude it from the scanning to prevent this from happening.