karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (KARAF-4603) Nashorn support in Karaf
Date Mon, 26 Feb 2018 13:43:00 GMT

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

Claus Ibsen commented on KARAF-4603:
------------------------------------

Still fails - just tried with Karaf 4.1.5
{code:java}
davsclaus:/opt/apache-karaf-4.1.5/$ bin/karaf
__ __ ____
/ //_/____ __________ _/ __/
/ ,< / __ `/ ___/ __ `/ /_
/ /| |/ /_/ / / / /_/ / __/
/_/ |_|\__,_/_/ \__,_/_/

Apache Karaf (4.1.5)

Hit '<tab>' for a list of available commands
and '[cmd] --help' for help on a specific command.
Hit '<ctrl-d>' or type 'system:shutdown' or 'logout' to shutdown Karaf.

karaf@root()> feature:repo-add camel 2.21.0-SNAPSHOT
Adding feature url mvn:org.apache.camel.karaf/apache-camel/2.21.0-SNAPSHOT/xml/features
karaf@root()> feature:install camel
karaf@root()> feature:install camel-script
Error executing command: Unable to resolve root: missing requirement [root] osgi.identity;
osgi.identity=camel-script; type=karaf.feature; version="[2.21.0.SNAPSHOT,2.21.0.SNAPSHOT]";
filter:="(&(osgi.identity=camel-script)(type=karaf.feature)(version>=2.21.0.SNAPSHOT)(version<=2.21.0.SNAPSHOT))"
[caused by: Unable to resolve camel-script/2.21.0.SNAPSHOT: missing requirement [camel-script/2.21.0.SNAPSHOT]
osgi.identity; osgi.identity=org.apache.camel.camel-script; type=osgi.bundle; version="[2.21.0.SNAPSHOT,2.21.0.SNAPSHOT]";
resolution:=mandatory [caused by: Unable to resolve org.apache.camel.camel-script/2.21.0.SNAPSHOT:
missing requirement [org.apache.camel.camel-script/2.21.0.SNAPSHOT] osgi.wiring.package; filter:="(osgi.wiring.package=jdk.nashorn.api.scripting)"]]{code}

> 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.1.2, 4.0.10, 4.2.0.M1
>
>
> 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)

Mime
View raw message