You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Jean-Baptiste Onofré (JIRA)" <ji...@apache.org> on 2018/02/10 16:20:01 UTC

[jira] [Commented] (KARAF-4603) Nashorn support in Karaf

    [ https://issues.apache.org/jira/browse/KARAF-4603?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16359490#comment-16359490 ] 

Jean-Baptiste Onofré commented on KARAF-4603:
---------------------------------------------

Just tested with Karaf 4.2.0-SNAPSHOT (from {{master}}) and it works fine. I'm testing with 4.1.5-SNAPSHOT.

> Nashorn support in Karaf
> ------------------------
>
>                 Key: KARAF-4603
>                 URL: https://issues.apache.org/jira/browse/KARAF-4603
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-osgi
>    Affects Versions: 3.0.7
>         Environment: Ubuntu 16.04
> OpenJDK 8 64-bit
>            Reporter: Roman Sakno
>            Assignee: Guillaume Nodet
>            Priority: Major
>             Fix For: 4.0.11, 4.2.0, 4.1.5
>
>
> I can't use JavaScript scripting in Karaf on Java 8 because ScriptEngineFactory implementation (provided by Nashorn) is located in system package {{jdk.nashorn.api.scripting}}. In Java 7, Rhino implementation is located in package {{com.sun.script.javascript}}. By default, Karaf offers some system packages (including {{com.sun}}) in configuration property {{org.osgi.framework.bootdelegation}} which is defined in file {{etc/config.properties}}. That's why Rhino available from Karaf. It will be great if you add {{jdk.nashorn}} to boot delegation by default.    



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