You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Nicolas Brasey (JIRA)" <ji...@apache.org> on 2018/03/28 06:54:00 UTC

[jira] [Created] (KARAF-5682) Internal XML parsing is sensitive to the current thread class loader

Nicolas Brasey created KARAF-5682:
-------------------------------------

             Summary: Internal XML parsing is sensitive to the current thread class loader
                 Key: KARAF-5682
                 URL: https://issues.apache.org/jira/browse/KARAF-5682
             Project: Karaf
          Issue Type: Bug
          Components: karaf-feature, karaf-kar
    Affects Versions: 4.1.2
            Reporter: Nicolas Brasey
             Fix For: 4.1.6


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: 
{quote}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.
{quote}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)