You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Bertrand Delacretaz (JIRA)" <ji...@apache.org> on 2013/09/06 13:50:52 UTC

[jira] [Updated] (SLING-3042) org.apache.sling.scripting.api should not export javax.script anymore

     [ https://issues.apache.org/jira/browse/SLING-3042?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bertrand Delacretaz updated SLING-3042:
---------------------------------------

    Affects Version/s: Scripting API 2.1.4
        Fix Version/s: Scripting API 2.1.6
              Summary: org.apache.sling.scripting.api should not export javax.script anymore  (was: Latest org.apache.sling.scripting.api breaks Groovy script engine)

This is caused by org.apache.sling.scripting.api embedding and exporting the javax.script package, which is now also (rightly IMO) exported by org.apache.felix.framework 4.2.0.

As a result, some javax.script classes are loaded from the framework bundle and others from org.apache.sling.scripting.api, which causes errors like the above one and maybe others depending on the order of bundles activation.
                
> org.apache.sling.scripting.api should not export javax.script anymore
> ---------------------------------------------------------------------
>
>                 Key: SLING-3042
>                 URL: https://issues.apache.org/jira/browse/SLING-3042
>             Project: Sling
>          Issue Type: Bug
>          Components: Scripting
>    Affects Versions: Scripting API 2.1.4
>            Reporter: Bertrand Delacretaz
>            Assignee: Bertrand Delacretaz
>            Priority: Minor
>             Fix For: Scripting API 2.1.6
>
>
> Installing the current org.apache.sling.scripting.api trunk bundle on a launchpad/testing instance causes this error:
> org.apache.sling.scripting.core.impl.ScriptEngineManagerFactory Cannot register ScriptEngineFactory org.codehaus.groovy.jsr223.GroovyScriptEngineFactory
> java.lang.ClassCastException: org.codehaus.groovy.jsr223.GroovyScriptEngineFactory cannot be cast to javax.script.ScriptEngineFactory
> And .groovy scripts are not recognized anymore, though .gsp still works.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira