activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sam Yi (JIRA)" <>
Subject [jira] [Commented] (AMQ-5243) ActiveMQ failed to start when the file path includes blank space
Date Thu, 05 Mar 2015 22:19:38 GMT


Sam Yi commented on AMQ-5243:

It seems (like AMQ-4910) this issue was introduced in commit 981c8e247f11871265a20a48e463096028188f36.

In bin/activemq.bat, the following changes were made:

{code}-if "%ACTIVEMQ_OPTS%" == "" set ACTIVEMQ_OPTS=-Xms1G -Xmx1G
+if "%ACTIVEMQ_OPTS%" == "" set ACTIVEMQ_OPTS=-Xms1G -Xmx1G
-Dhawtio.realm=activemq -Dhawtio.role=admins -Dhawtio.rolePrincipalClasses=org.apache.activemq.jaas.GroupPrincipal\login.config{code}

If the directory that %ACTIVEMQ_CONF% resolves to contains a space (e.g. C:\Program Files\activemq),
everything after the space is treated as a separate argument.  I was able to work around this
by adding double quotes around the path in the last argument, i.e.:

{code}if "%ACTIVEMQ_OPTS%" == "" set ACTIVEMQ_OPTS=-Xms1G -Xmx1G
-Dhawtio.realm=activemq -Dhawtio.role=admins -Dhawtio.rolePrincipalClasses=org.apache.activemq.jaas.GroupPrincipal"%ACTIVEMQ_CONF%\login.config"{code}

> ActiveMQ failed to start when the file path includes blank space
> ----------------------------------------------------------------
>                 Key: AMQ-5243
>                 URL:
>             Project: ActiveMQ
>          Issue Type: Bug
>    Affects Versions: 5.10.0
>            Reporter: Meifang Shen
>            Priority: Minor
> Folder "Program Files"
> F:\Program Files\apache-activemq-5.10.0\bin>activemq.bat start
> Error: Could not find or load main class Files\apache-activemq-5.10.0\bin\..\conf\login.config
> *NOTE* If remove blank spaces from the file path, then it works.
> Folder "ProgramFiles"
> F:\ProgramFiles\apache-activemq-5.10.0\bin>activemq.bat start

This message was sent by Atlassian JIRA

View raw message