Christoph Panwinkler created ARTEMIS-2595:
---------------------------------------------
Summary: Unable to bootstrap broker when installed as a windows
service with blanks in installation path
Key: ARTEMIS-2595
URL: https://issues.apache.org/jira/browse/ARTEMIS-2595
Project: ActiveMQ Artemis
Issue Type: Bug
Components: ActiveMQ-Artemis-Native
Affects Versions: 2.10.1
Environment: Windows 10
Reporter: Christoph Panwinkler
Assignee: Clebert Suconic
If you install artemis as a windows service into an installation directory
containing blanks, starting the service won´t bootstrap the broker although the
java process is running. Additionally stopping the service won´t stop the java
process.
The reason for this behavior are the following elements in the service
descriptor *artemis-service.xml* in the instances bin-directory
# value for environment variable *ARTEMIS_INSTANCE_ETC_URI* is not correct.
Blank of the URI is encoded with %%20 instead of %20
e.g. <env name="ARTEMIS_INSTANCE_ETC_URI"
value="file:/C:/Temp/Test{color:#FF0000}%{color}%20Install{color:#FF0000}%{color}%20ActiveMQ/apache-active-mq/instance/etc/"/>
needs to be replaced by <env name="ARTEMIS_INSTANCE_ETC_URI"
value="file:/C:/Temp/Test%20Install%20ActiveMQ/apache-active-mq/instance/etc/"/>
# value of stopargument *artemis.instance.etc* must not be enclosed with quotes
<stopargument>-Dartemis.instance.etc={color:#FF0000}"{color}%ARTEMIS_INSTANCE_ETC%{color:#FF0000}"{color}</stopargument>
needs to be replaced by
<stopargument>-Dartemis.instance.etc=%ARTEMIS_INSTANCE_ETC%</stopargument>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)