Uploaded image for project: 'SLF4J'
  1. SLF4J
  2. SLF4J-568

Fix ServiceLoader usage in servlet environment

    XMLWordPrintable

Details

    • Icon: Improvement Improvement
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • None
    • None
    • None

    Description

      If both the servlet container and a web application use SLF4J,
      ServiceLoader calls are susceptible to three problems:

      1. The SLF4J copy in the webapp detects the common providers by can not
        instantiate them (they implement a different copy of
        SLF4JProviderService),
      2. The SLF4J copy in the common classloader can bind the providers in
        the webapp classloader and cause a memory leak,
      3. If the server uses a SecurityManager the static initialization of
        LoggerFactory fails if called by unprivileged code.

      Attachments

        Activity

          People

            ceki Ceki Gülcü
            ceki Ceki Gülcü
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: