Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1050044

Summary: Configure JBoss EAP 6 as a Service in Microsoft Windows Server - service.bat JBOSS_HOME quotes
Product: [JBoss] JBoss Enterprise Application Platform 6 Reporter: Doug Toppin <dougtoppin>
Component: Scripts and CommandsAssignee: jboss-set
Status: CLOSED WONTFIX QA Contact: Marek Kopecky <mkopecky>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.2.0CC: fnasser, istudens, pgier, pkremens
Target Milestone: ---   
Target Release: EAP 6.4.0   
Hardware: Unspecified   
OS: Windows   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1134808 (view as bug list) Environment:
Last Closed: 2019-03-01 12:29:07 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1134808    

Description Doug Toppin 2014-01-08 16:31:52 UTC
Description of problem:
When configuring JBoss EAP 6.2 to run as a service on MS Windows the EAP_HOME/modules/system/layers/base/native/sbin/service.bat has two lines where double quotes are needed around %JBOSS_HOME% in case JBoss is installed under "Program Files (x86)"
The two lines before are:
315 set LOGPATH=%JBOSS_HOME%\domain\log
319 set LOGPATH=%JBOSS_HOME%\standalone\log

After the mods should be:
315 set LOGPATH="%JBOSS_HOME%"\domain\log
319 set LOGPATH="%JBOSS_HOME%"\standalone\log

Version-Release number of selected component (if applicable):
EAP 6.2.0

How reproducible:
Running the service installation command as documented on page 24 of installation guide as follows:
service.bat install /host master /loglevel INFO

Will return an error saying that domain\log was unexpected and standalone\log was unexpected

Steps to Reproduce:
1. Install EAP under Program Files (x86)
2. set JBOSS_HOME to C:\Program Files (x86)\EAP-6.2.0\jboss-eap-6.2
3. cd EAP_HOME\modules\system\layers\base
4. service.bat install /host master /loglevel INFO

Actual results:
service.bat fails with error

Expected results:
JBoss correctly installed as a service

Additional info:
There was a similar bug filed for the 6.1 installation in MS Windows