karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Roman Sakno (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (KARAF-4603) Nashorn support in Karaf
Date Thu, 30 Jun 2016 20:53:10 GMT

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

Roman Sakno updated KARAF-4603:
-------------------------------
    Description: 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.      (was: 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 is available from Karaf.
It will be great if you add {{jdk.nashorn}} to boot delegation by default.    )

> 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
>
> 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
(v6.3.4#6332)

Mime
View raw message