Bug 1050044 - Configure JBoss EAP 6 as a Service in Microsoft Windows Server - service.bat JBOSS_HOME quotes
Summary: Configure JBoss EAP 6 as a Service in Microsoft Windows Server - service.bat ...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: Scripts and Commands
Version: 6.2.0
Hardware: Unspecified
OS: Windows
unspecified
medium
Target Milestone: ---
: EAP 6.4.0
Assignee: jboss-set
QA Contact: Marek Kopecky
URL:
Whiteboard:
Depends On:
Blocks: 1134808
TreeView+ depends on / blocked
 
Reported: 2014-01-08 16:31 UTC by Doug Toppin
Modified: 2019-03-01 12:29 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1134808 (view as bug list)
Environment:
Last Closed: 2019-03-01 12:29:07 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.