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

[GSS](7.1.0) windows service (service.bat) failed to install if the value of /serviceuser has a white space inside

    XMLWordPrintable

Details

    • Bug
    • Status: Verified (View Workflow)
    • Minor
    • Resolution: Done
    • 7.1.0.DR7, 7.1.0.DR8
    • 7.1.0.DR10
    • Scripts
    • None

    Description

      When using "service.bat install /serviceuser ..." command to install window service, if the account name behind /serviceuser has a whit space inside like ".\JBoss User", it will failed to install windows service.

      Run command: service.bat install /serviceuser ".\JBoss User" /servicepass "change it" /startup /debug

      When starting it, an error window poped up:

      Windows could not start the JBossEAP6 on Local Computer.
      For more information, review the System Event Log. 
      If this is a non-Microsoft service, contact the service vendor, and refer to service-specific error code1.
      

      Additional info:
      Possible fix is editing "service.bat" and add double quotation marks on %SERVICE_USER%

      From

      set RUNAS=--ServiceUser=%SERVICE_USER% --ServicePassword=%SERVICE_PASS%
      

      to

      set RUNAS=--ServiceUser="%SERVICE_USER%" --ServicePassword="%SERVICE_PASS%"
      

      Attachments

        Issue Links

          Activity

            People

              tomazcerar Toma┼ż Cerar (Inactive)
              rhn-support-bmaxwell Brad Maxwell
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: