Dushyant-GitHub commented on issue #3504:
URL: 
https://github.com/apache/logging-log4j2/issues/3504#issuecomment-2742460290

   Thank you for the clarification.
   
   You were absolutely right—this issue was introduced in newer Tomcat versions 
due to the caching of "not found" class resources, as mentioned in the Tomcat 
9.0.97 release notes. Since our application dynamically loads extensions and 
their dependencies at runtime, Tomcat's negative cache was causing a 
`NoClassDefFoundError` for `org.apache.logging.log4j.spi.ExtendedLogger`.
   
   We were able to resolve the issue by explicitly setting:
   ```
   <Context notFoundClassResourceCacheSize="0" />
   ``` 
   After making this change, our application correctly loads the dynamically 
added JARs without requiring a server restart.
   
   Thanks again for pointing us in the right direction!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to