Bug 60164 - Add log4j-web*.jar to tomcat.util.scan.StandardJarScanFilter.jarsToScan
Summary: Add log4j-web*.jar to tomcat.util.scan.StandardJarScanFilter.jarsToScan
Status: RESOLVED FIXED
Alias: None
Product: Tomcat 8
Classification: Unclassified
Component: Catalina (show other bugs)
Version: 8.5.5
Hardware: PC Linux
: P2 normal (vote)
Target Milestone: ----
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-22 09:59 UTC by balusc
Modified: 2016-09-27 19:13 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description balusc 2016-09-22 09:59:31 UTC
log4j-web.jar actually contains relevant servlet container configuration information (web-fragment.xml and services/ServletContainerInitializer), yet it is covered by jarsToSkip as log4j*.jar. Please add log4j-web*.jar to jarsToScan override. 

https://mvnrepository.com/artifact/org.apache.logging.log4j/log4j-web
Comment 1 Violeta Georgieva 2016-09-23 12:19:42 UTC
Hi,

I see that by default we specify to scan log4j-core*.jar.
I checked this jar (the latest version) and I think we can remove it and instead of it add log4j-web*.jar, but I don't know what the status is with these jar files in the older versions of Log4J 2.

Wdyt?

Regards,
Violeta
Comment 2 Mark Thomas 2016-09-27 19:07:31 UTC
I've checked the 2.0 release and it is consistent with the latest version so the proposed change makes sense.
Comment 3 Mark Thomas 2016-09-27 19:13:41 UTC
This has been fixed in the following branches:
- 9.0.x for 9.0.0.M11 onwards
- 8.5.x for 8.5.6 onwards
- 8.0.x for 8.0.38 onwards