Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-22063

[QA](7.4.z) WFCORE-5499 - domain.ps1 doesn't add --add-exports JVM options as expected for JDK > 9

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.4.2.CR1, 7.4.2.GA
    • 7.4.0.GA.CR1, 7.4.0.CR2
    • Scripts
    • None
    • False
    • False
    • +
    • Undefined
    • 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 ...

      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.

              lvydra Lukas Vydra
              fburzigo Fabio Burzigotti
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved: