You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Felix Meschberger (JIRA)" <ji...@apache.org> on 2009/01/26 10:59:59 UTC

[jira] Created: (SLING-841) Set thread context class loader on behalf of script engines

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.


[jira] Updated: (SLING-841) Set thread context class loader on behalf of script engines

Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SLING-841?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Felix Meschberger updated SLING-841:
------------------------------------

    Fix Version/s:     (was: Scripting Core 2.0.4)

Descheduling from the release.

This needs to be considered very carefully. In addition, we might even create a common parent class loader for all script engines which includes support for Resource tree based classes.

> 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
>
> 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.