After upgrading Apache POI from version 5.2.2 to 5.4.1, the Excel import/export functionality for .xls and .xlsx files stopped working.
Upon reviewing the changes in POI 5.4.1, I noticed a shift in the logging mechanism. Unlike version 5.2.2, which used lazy loading and worked fine without requiring additional dependencies, version 5.4.1 uses eager loading. As a result, it now expects log4j-api to be present in the classpath at runtime—even if logging isn't actively used.
We prefer not to include log4j-api due to prior concerns and experiences with that library. However, since we need to use POI 5.4.1, we're looking for a way to bypass this requirement and continue using the library without adding log4j-api.
Is there any workaround or configuration that allows POI 5.4.1 to function without requiring log4j-api?
Looking forward to your guidance.