Uploaded image for project: 'XWiki Commons'
  1. XWiki Commons
  2. XCOMMONS-1002

Extension could be marked as core but not available at runtime

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 7.4.4, 8.2-rc-1
    • 7.4
    • Extension
    • None
    • N/A
    • N/A

    Description

      See MARKDOWN-9 for an example use case.

      Here's the problem:

      • XWiki's extension scanner uses reflections to find all JARs in the classloader, going up till the top parent CL. This means, for example, adding the jars in jetty/lib as core extensions.
      • At runtime when loading a class, the Jetty's WebAppClassLoader is used and this CL isolates the server classes (ie the classes in jetty's lib directory), see http://www.eclipse.org/jetty/documentation/9.4.x/jetty-classloading.html

      Thus if you have an extension that uses a class that is inside a jar located in jetty's lib directory, this jar won't be installed as an extension and the class won't be found at runtime.

      Attachments

        Issue Links

          Activity

            People

              tmortagne Thomas Mortagne
              vmassol Vincent Massol
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: