You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Sam Yi (JIRA)" <ji...@apache.org> on 2015/03/05 23:19:38 UTC
[jira] [Commented] (AMQ-5243) ActiveMQ failed to start when the
file path includes blank space
[ https://issues.apache.org/jira/browse/AMQ-5243?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14349533#comment-14349533 ]
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 -Djava.util.logging.config.file=logging.properties
-Dhawtio.authenticationEnabled=false
+if "%ACTIVEMQ_OPTS%" == "" set ACTIVEMQ_OPTS=-Xms1G -Xmx1G -Djava.util.logging.config.file=logging.properties
-Dhawtio.realm=activemq -Dhawtio.role=admins -Dhawtio.rolePrincipalClasses=org.apache.activemq.jaas.GroupPrincipal
-Djava.security.auth.login.config=%ACTIVEMQ_CONF%\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 -Djava.util.logging.config.file=logging.properties
-Dhawtio.realm=activemq -Dhawtio.role=admins -Dhawtio.rolePrincipalClasses=org.apache.activemq.jaas.GroupPrincipal
-Djava.security.auth.login.config="%ACTIVEMQ_CONF%\login.config"{code}
> ActiveMQ failed to start when the file path includes blank space
> ----------------------------------------------------------------
>
> Key: AMQ-5243
> URL: https://issues.apache.org/jira/browse/AMQ-5243
> 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
(v6.3.4#6332)