Uploaded image for project: 'Log4j 2'
  1. Log4j 2
  2. LOG4J2-373 Classloader issue in OSGi-environment
  3. LOG4J2-513

Use more OSGi-friendly class loading mechanisms.

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 2.0-rc1
    • None
    • API
    • OSGi

    Description

      See for instance here. Currently, o.a.l.l.util.ProviderUtil has a findClassLoader() method that depends on using the thread context class loader (TCCL). Now this method may work in certain environments, but once you're in an OSGi environment, class loaders are far more modular thanks to each bundle getting its own class loader. The thread context class loader is oftentimes not the correct one in such an environment.

      I'll do more research on being compatible with OSGi without depending on OSGi. In the meantime, this ticket will have to do.

      Attachments

        Issue Links

          Activity

            People

              mattsicker Matt Sicker
              mattsicker Matt Sicker
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: