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

Bug 1134808

Summary: [QE] (6.3.z) Configure JBoss EAP 6 as a Service in Microsoft Windows Server - service.bat JBOSS_HOME quotes
Product: [JBoss] JBoss Enterprise Application Platform 6 Reporter: Petr Kremensky <pkremens>
Component: Scripts and CommandsAssignee: Chao Wang <chaowan>
Status: CLOSED WONTFIX QA Contact: Petr Kremensky <pkremens>
Severity: medium Docs Contact: Russell Dickenson <rdickens>
Priority: unspecified    
Version: 6.3.1CC: cdewolf, chaowan, cobrien, dougtoppin, fnasser, istudens, myarboro, pgier
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Windows   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1050044 Environment:
Last Closed: 2014-10-20 13:50:12 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: 1050044    
Bug Blocks: 1151405    

Description Petr Kremensky 2014-08-28 09:39:43 UTC
+++ This bug was initially created as a clone of Bug #1050044 +++

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

Comment 1 Petr Kremensky 2014-08-28 09:40:03 UTC
For 6.3.x CP stream tracking purposes.