[jboss-jira] [JBoss JIRA] (WFLY-5751) Service can't be installed if the path contains a closed bracket

Paul Wildberg (JIRA) issues at jboss.org
Tue Dec 1 10:18:00 EST 2015


    [ https://issues.jboss.org/browse/WFLY-5751?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13135704#comment-13135704 ] 

Paul Wildberg edited comment on WFLY-5751 at 12/1/15 10:17 AM:
---------------------------------------------------------------

news:
With the workaround I was able to install the service - but I couldn't start it.
So I dived some more into it.
If you change it to
set "LOGPATH=%JBOSS_HOME%\domain\log" (difference is the double quotation mark in front of "LOGPATH" and not in front of "%JBOSS_HOME%")
you can install the service and start it.
I edited the workaround.

I don't think all lines are like this so maybe there need to be a lot more lines to be changed than this two.


was (Author: wildberg):
news:
With the workaround I was able to install the service - but I couldn't start it.
So I dived some more into it.
If you change it to
set "LOGPATH=%JBOSS_HOME%\domain\log" (difference is the double quotation mark in front of "LOGPATH" and not in front of "%JBOSS_HOME%")
you can install the service and start it.
I edited the workaround.

> Service can't be installed if the path contains a closed bracket
> ----------------------------------------------------------------
>
>                 Key: WFLY-5751
>                 URL: https://issues.jboss.org/browse/WFLY-5751
>             Project: WildFly
>          Issue Type: Bug
>          Components: Scripts
>    Affects Versions: 9.0.1.Final, 9.0.2.Final, 10.0.0.CR4
>         Environment: all Windows versions
>            Reporter: Paul Wildberg
>            Assignee: James Perkins
>            Priority: Critical
>              Labels: jboss
>
> Problem: 
> If you start "service.bat install" in e.g. in C:\Program Files (x86)\wildfly-9.0.1.Final\bin\service you will get:
> Using the X86-64bit version of prunsrv
> "\wildfly-9.0.1.Final\domain\log" can not be used syntatically at this point (don't know if it is correct, I translated it from german. Original it is "kann syntaktisch an dieser Stelle nicht verarbeitet werden.")
> Cause:
> This is because of the ) in "Program Files (x86)" and this is a problem because in the service.bat in line 175 and 179 (set LOGPATH=%JBOSS_HOME%\domain\log - in version 9.0.1 and 9.0.2 - in Version 10 it may be in another line) the path is not set in double quotation marks.
> All other paths are set in double quotation marks.
> Solution:
> Set the path in double quotation marks:
> set LOGPATH="%JBOSS_HOME%\domain\log"



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the jboss-jira mailing list