Uploaded image for project: 'ActiveMQ Artemis'
  1. ActiveMQ Artemis
  2. ARTEMIS-2595

Unable to bootstrap broker when installed as a windows service with blanks in instance directory

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.10.1
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:

      Windows 10

      Description

      If you install artemis as a windows service and the instance directory contains 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

      1. 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%%20Install%%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/"/>
      2. value of stopargument artemis.instance.etc must not be enclosed with quotes
        <stopargument>-Dartemis.instance.etc="%ARTEMIS_INSTANCE_ETC%"</stopargument> needs to be replaced by <stopargument>-Dartemis.instance.etc=%ARTEMIS_INSTANCE_ETC%</stopargument>

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                panny2406 Christoph Panwinkler
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: