Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-5682

Internal XML parsing is sensitive to the current thread class loader

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 4.1.2
    • 4.1.8
    • karaf
    • None

    Description

      The mechanism for XML parsing (feature file, kar feature detector, etc) is sensitive to the thread class loader, which forces the application to switch the thread class loader before calling those services.

      How to reproduce: Call the kar service from a REST endpoint.

       

      I created this Jira after a discussion on the mailing list with Guillaume: 

      You're right, I think the current setup on 4.1 is not optimal and a bit too sensitive to the thread context class loader.
      Can you simply remove the xalan and xerces jars from the lib/endorsed folder and the corresponding export packages in etc/config.properties ?
      If you want to use xalan and xerces, deploy them as bundles instead.
      Also, please raise a JIRA so that we can fix that.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            nicolas.brasey@gmail.com Nicolas Brasey

            Dates

              Created:
              Updated:

              Slack

                Issue deployment