This is an automated email from the ASF dual-hosted git repository. rmaucher pushed a commit to branch 9.0.x in repository https://gitbox.apache.org/repos/asf/tomcat.git
commit 652104ea32dca0f2f3dc7072401d5dac8aaf7ce1 Author: opencode <[email protected]> AuthorDate: Fri Oct 16 13:51:30 2026 +0200 Report the resource path when a WEB-INF/lib JAR cannot be scanned When scanning WEB-INF/lib, the debug message, the warning for a null resource and the trace message for a skipped JAR all identify the JAR by its web application relative path. The warning for an IOException used the URL local variable instead. That variable is still null if it is the getResource() call itself that fails, and a full URL is redundant in a message that already states the JAR came from /WEB-INF/lib. Use the path in this message as well so every log message from the loop identifies the JAR the same way. --- java/org/apache/tomcat/util/scan/StandardJarScanner.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java/org/apache/tomcat/util/scan/StandardJarScanner.java b/java/org/apache/tomcat/util/scan/StandardJarScanner.java index 1fda464434..abd2be785e 100644 --- a/java/org/apache/tomcat/util/scan/StandardJarScanner.java +++ b/java/org/apache/tomcat/util/scan/StandardJarScanner.java @@ -258,7 +258,7 @@ public class StandardJarScanner implements JarScanner { log.warn(sm.getString("jarScan.webinflibFail", path)); } } catch (IOException ioe) { - log.warn(sm.getString("jarScan.webinflibFail", url), ioe); + log.warn(sm.getString("jarScan.webinflibFail", path), ioe); } } else { if (log.isTraceEnabled()) { --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
