Uploaded image for project: 'JBoss Web Server'
  1. JBoss Web Server
  2. JWS-1013

JvmOptions9 usage prevents Windows service installation

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • JWS 5.0_RHEL CR1
    • JWS 5.0_RHEL ER2
    • jsvc, tomcat
    • None
    • Documentation (Ref Guide, User Guide, etc.), Compatibility/Configuration, User Experience
    • Workaround Exists
    • Hide

      Comment out or remove:

      --JvmOptions9 "--add-opens=java.base/java.lang=ALL-UNNAMED#--add-opens=java.base/java.io=ALL-UNNAMED#--add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED" ^
      
      Show
      Comment out or remove: --JvmOptions9 "--add-opens=java.base/java.lang=ALL-UNNAMED #--add-opens=java.base/java.io=ALL-UNNAMED#--add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED" ^
    • Hide

      1) Unzip jws-5.0 for Windows
      2) Try and install the service:

      c:\Users\Administrator\Downloads\jws-5.0\tomcat\bin>call service.bat install
      Installing the service 'Tomcat9' ...
      Using CATALINA_HOME:    "c:\Users\Administrator\Downloads\jws-5.0\tomcat"
      Using CATALINA_BASE:    "c:\Users\Administrator\Downloads\jws-5.0\tomcat"
      Using JAVA_HOME:        "C:\Program Files\jdk1.8.0_last"
      Using JRE_HOME:         "C:\Program Files\jdk1.8.0_last\jre"
      Using JVM:              "C:\Program Files\jdk1.8.0_last\jre\bin\server\jvm.dll"
      [2018-05-08 17:58:24] [error] [ 2740] Unrecognized program option --JvmOptions9
      [2018-05-08 17:58:24] [error] [ 2740] Invalid command line arguments
      [2018-05-08 17:58:24] [error] [ 2740] Commons Daemon procrun failed with exit value: 1 (Failed to parse command line arguments)
      Failed installing 'Tomcat9' service
      
      Show
      1) Unzip jws-5.0 for Windows 2) Try and install the service: c:\Users\Administrator\Downloads\jws-5.0\tomcat\bin>call service.bat install Installing the service 'Tomcat9' ... Using CATALINA_HOME: "c:\Users\Administrator\Downloads\jws-5.0\tomcat" Using CATALINA_BASE: "c:\Users\Administrator\Downloads\jws-5.0\tomcat" Using JAVA_HOME: "C:\Program Files\jdk1.8.0_last" Using JRE_HOME: "C:\Program Files\jdk1.8.0_last\jre" Using JVM: "C:\Program Files\jdk1.8.0_last\jre\bin\server\jvm.dll" [2018-05-08 17:58:24] [error] [ 2740] Unrecognized program option --JvmOptions9 [2018-05-08 17:58:24] [error] [ 2740] Invalid command line arguments [2018-05-08 17:58:24] [error] [ 2740] Commons Daemon procrun failed with exit value: 1 (Failed to parse command line arguments) Failed installing 'Tomcat9' service

      The version of apache-commons-daemon-jsvc that we're using doesn't include the JvmOptions9 option. We need to update to at least JSVC 1.1.0, or remove the JvmOptions9 usage from our service.bat.

      c:\Users\Administrator\Downloads\jws-5.0\tomcat\bin>call service.bat install
      Installing the service 'Tomcat9' ...
      Using CATALINA_HOME:    "c:\Users\Administrator\Downloads\jws-5.0\tomcat"
      Using CATALINA_BASE:    "c:\Users\Administrator\Downloads\jws-5.0\tomcat"
      Using JAVA_HOME:        "C:\Program Files\jdk1.8.0_last"
      Using JRE_HOME:         "C:\Program Files\jdk1.8.0_last\jre"
      Using JVM:              "C:\Program Files\jdk1.8.0_last\jre\bin\server\jvm.dll"
      [2018-05-08 17:58:24] [error] [ 2740] Unrecognized program option --JvmOptions9
      [2018-05-08 17:58:24] [error] [ 2740] Invalid command line arguments
      [2018-05-08 17:58:24] [error] [ 2740] Commons Daemon procrun failed with exit value: 1 (Failed to parse command line arguments)
      Failed installing 'Tomcat9' service
      

              rhn-support-csutherl Coty Sutherland
              rhn-support-csutherl Coty Sutherland
              Jan Onderka Jan Onderka
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: