Details
-
Improvement
-
Resolution: Duplicate
-
Major
-
None
-
None
-
None
-
None
Description
If both the servlet container and a web application use SLF4J,
ServiceLoader calls are susceptible to three problems:
- The SLF4J copy in the webapp detects the common providers by can not
instantiate them (they implement a different copy of
SLF4JProviderService), - The SLF4J copy in the common classloader can bind the providers in
the webapp classloader and cause a memory leak, - If the server uses a SecurityManager the static initialization of
LoggerFactory fails if called by unprivileged code.
Attachments
Issue Links
- duplicates
-
SLF4J-544 LoggerFactory only loads services from context class loader
- Resolved