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

Windows service install script prevents multiple service instances

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Critical Critical
    • None
    • JWS 3.1.0 GA
    • tomcat7, tomcat8
    • None
    • Workaround Exists
    • Hide

      Apply the attached patch to update your local script with the fix.

      Show
      Apply the attached patch to update your local script with the fix.
    • Hide
      1. Extract the ZIP installation to a folder and use the "service.bat install" command to install it as a Windows service.
      2. Extract the ZIP installation to another folder, and attempt to install using the "service.bat install [ServiceName]" command. It will fail with the error:
        Failed installing 'SERVICE_NAME' service.
      Show
      Extract the ZIP installation to a folder and use the "service.bat install" command to install it as a Windows service. Extract the ZIP installation to another folder, and attempt to install using the "service.bat install [ServiceName] " command. It will fail with the error: Failed installing 'SERVICE_NAME' service.

      The service.bat install script doesn't allow for multiple Tomcat service instances, because it uses a static DisplayName when creating the Windows service.

      I've attached a service.bat.in.patch which fixes the issue by appending the %SERVICE_NAME% variable (passed via command line) to the %DISPLAYNAME% variable.

              rhn-support-csutherl Coty Sutherland
              dmulford@redhat.com Dave Mulford
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: