Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-5499

domain.ps1 doesn't add --add-exports JVM options as expected for JDK > 9

    XMLWordPrintable

Details

    • Hide

      Start EAP 7.4.0.GA-CR2 by issuing the following command on a Windows machine with a JDK 11:

      PowerShell -ExecutionPolicy Bypass -File domain.ps1
      

      the log will show the options are not there:

      $ PowerShell -ExecutionPolicy Bypass -File domain.ps1 
      =================================================================================
      /06/2021 11:31:41,967 INFO  [ScriptExecutor] (main) =================================================================================
      
        JBoss Bootstrap Environment
      
        JBOSS_HOME: C:\j\workspace\eap-7.x-scrip---dcbf450e\1f77cb00\test\jboss-eap-7.4
      
        JAVA: T:\opt\windows\amd64\openjdk11_last\bin\java.exe
      
        MODULE_OPTS: 
      
        JAVA_OPTS: -server -Xms64M -Xmx512M -XX:MaxMetaspaceSize=256m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true
      
      =================================================================================
      
      11:31:10,450 INFO  [org.jboss.modules] (main) JBoss Modules version 1.11.0.Final-redhat-00001
      ...
      
      Show
      Start EAP 7.4.0.GA-CR2 by issuing the following command on a Windows machine with a JDK 11: PowerShell -ExecutionPolicy Bypass -File domain.ps1 the log will show the options are not there: $ PowerShell -ExecutionPolicy Bypass -File domain.ps1 ================================================================================= /06/2021 11:31:41,967 INFO [ScriptExecutor] (main) ================================================================================= JBoss Bootstrap Environment JBOSS_HOME: C:\j\workspace\eap-7.x-scrip---dcbf450e\1f77cb00\test\jboss-eap-7.4 JAVA: T:\opt\windows\amd64\openjdk11_last\bin\java.exe MODULE_OPTS: JAVA_OPTS: -server -Xms64M -Xmx512M -XX:MaxMetaspaceSize=256m -Djava.net.preferIPv4Stack= true -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless= true ================================================================================= 11:31:10,450 INFO [org.jboss.modules] (main) JBoss Modules version 1.11.0.Final-redhat-00001 ...
    • Undefined

    Description

      A test which is verifying the expected options are issued and logged at startup is failing on Windows when starting a cluster via domain.ps1 Power Shell scripts.
      The failure is visible only when JDK version is > 9, which is when the above mentioned options should be used.
      The test is passing when using bat scripts.

      I am setting this as Major because PS should be a technical preview feature. For the same reason I am not setting the Target Release.

      Attachments

        Issue Links

          Activity

            People

              lvydra Lukas Vydra
              lvydra Lukas Vydra
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: