Set thread context class loader on behalf of script engines
-----------------------------------------------------------
Key: SLING-841
URL: https://issues.apache.org/jira/browse/SLING-841
Project: Sling
Issue Type: Improvement
Components: Scripting
Affects Versions: Scripting Core 2.0.2
Reporter: Felix Meschberger
Assignee: Felix Meschberger
Fix For: Scripting Core 2.0.4
Often times script engines might expect the thread class loader to be set to
the correct instance. Most notably if any scripts are using JAXP, setting the
thread context class loader correctly is crucial to executing the script
correctly.
One solution would be to delegate setting the contetx class loader to the
script engine. Since this is a common task, I would argue, that the thread
context class loader should be set by the scripting core module, which calls
into the script engines.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.