Encountered service.bat error.

Document ID : KB000046237
Last Modified Date : 14/02/2018
Show Technical Document Details


When customer was about to "service install" command, below error message occured.



D:\PF(x86)\CA\siteminder\adminui\bin\service>service install Using the X86-64bit version of prunsrv \CA\siteminder\adminui\domain\log was unexpected at this time. 




AdminUI : R12.52 SP2 CR01



It is issue at side of JBoss(Wildfly 8.x).

If installed path contains, closed bracket, spaces, service.bat make a mistake of setting path.



In service.bat, you should add double quatation("") like below.


From :

set LOGPATH=%JBOSS_HOME%\domain\log

set LOGPATH=%JBOSS_HOME%\standalone\log


To :

set LOGPATH="%JBOSS_HOME%\domain\log" 

set LOGPATH="%JBOSS_HOME%\standalone\log" 


Additional Information:  

https://issues.jboss.org/browse/WFCORE-1177 : Service can't be installed if the path contains a closed bracket 

https://issues.jboss.org/browse/WFCORE-1380 : service.bat fails when wildfly folder path contains spaces 

https://bugzilla.redhat.com/show_bug.cgi?id=916960 : Standalone.bat does not work if parentheses are on path to EAP.