Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-1769

2 config updates for OpenJDK 8

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Done
    • Icon: Major Major
    • 8.0.0.Alpha4
    • None
    • EE
    • None

      JDK 8 uses the Javascript Engine Nashorn instead of Rhino in JDK 7 (and 6).
      Therefore, 2 additional config lines are required to support JDK 8 in addition to JDK 7:

      After making the following 2 config updates for bean validation my web app is running with WildFly and OpenJDK 8:

      1) In modules/system/layers/base/sun/jdk/main/module.xml: add the following <path> declaration as the 2nd subtag inside <paths>, i.e. after the "com/sun/script/javascript" for JDK 7:

           <path name="jdk/nashorn/api/scripting"/>
      

      2) In modules/system/layers/base/sun/jdk/main/service-loader-resources/META-INF/services/javax.script.ScriptEngineFactory add the following line as the 2nd service, i.e. as a alternative service for JDK 7:

           jdk.nashorn.api.scripting.NashornScriptEngineFactory
      

            dlloyd@redhat.com David Lloyd
            juergen.zimmermann Juergen Zimmermann
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: