Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-4603

Nashorn support in Karaf

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.0.7
    • 4.1.2, 4.0.10, 4.2.0.M1
    • karaf
    • None
    • Ubuntu 16.04
      OpenJDK 8 64-bit

    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.

      Attachments

        Issue Links

          Activity

            People

              gnodet Guillaume Nodet
              rsakno Roman Sakno
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: