[ 
https://issues.apache.org/jira/browse/ARTEMIS-4303?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17732141#comment-17732141
 ] 

ASF subversion and git services commented on ARTEMIS-4303:
----------------------------------------------------------

Commit 600799de30a0d1106540e054ce17c0cccc92cd9e in activemq-artemis's branch 
refs/heads/main from five-iron
[ https://gitbox.apache.org/repos/asf?p=activemq-artemis.git;h=600799de30 ]

ARTEMIS-4303 Fix windows service

When installing artemis on windows as a service, if your chosen
installation path contained a space, then an extra escape
character (%) was being inserted in the generated
artemis-service.xml, causing the service to fail to start.
This fix changes the value of ARTEMIS_INSTANCE_ETC_URI in that file
from "artemis.instance.etc.uri.windows" to "artemis.instance.etc.uri"
to get rid of that unnecessary escape character.


> Artemis Windows Service fails to start correctly when filepath has a space
> --------------------------------------------------------------------------
>
>                 Key: ARTEMIS-4303
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-4303
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>          Components: Broker
>    Affects Versions: 2.28.0
>         Environment: Windows 10
>            Reporter: Jake Sperlazza
>            Priority: Minor
>         Attachments: artemis-service.out.log, artemis-service.xml
>
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> Steps to reproduce:
>  # Download / extract zip: 
> [https://activemq.apache.org/components/artemis/download/]
>  # run "bin/artemis create" giving it a target path which has a space e.g.:
>  ## ./bin/artemis create --user default --password default --require-login 
> /c/Program\ Files/artemis
>  # Install and try and start the service
>  ## "C:\Program Files\artemis\bin\artemis-service.exe"install
>  ## "C:\Program Files\artemis\bin\artemis-service.exe" start
>  # Notice the web console does not come up and there are errors in the logs 
> (as shown in attachment artemis-service.out.log)
>  
> I believe the problem lies in line 29 of the generated artemis-service.xml 
> (attached), which has a unnecessarily double-escaped space character (%%20) 
> for the value of ARTEMIS_INSTANCE_ETC_URI.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to