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

Extension could be marked as core but not available at runtime

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 7.4
    • Fix Version/s: 7.4.4, 8.2-rc-1
    • Component/s: Extension
    • Labels:
      None
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: