Vladimir Andreev created AMQ-7517:
-------------------------------------
Summary: bin/activemq sets ACTIVEMQ_CLASSPATH to likely
non-existing directory $ACTIVEMQ_BASE/../lib
Key: AMQ-7517
URL: https://issues.apache.org/jira/browse/AMQ-7517
Project: ActiveMQ
Issue Type: Bug
Components: Command Line Tools
Affects Versions: 5.15.12, 5.16.0
Reporter: Vladimir Andreev
the bin/activemq script executes these lines by default (i.e. when none of the
relevant environment variables are set):
{code:bash}
ACTIVEMQ_HOME="`getActiveMQHome`"
ACTIVEMQ_BASE="$ACTIVEMQ_HOME"
ACTIVEMQ_CLASSPATH="$ACTIVEMQ_BASE/../lib/:$ACTIVEMQ_USER_CLASSPATH"
{code}
getActiveMQHome returns (effectively) the parent directory of the _bin_
subdirectory, i.e., the root of the distribution tar file, so
ACTIVEMQ_CLASSPATH ends up set to the a _lib_ subdirectory which may or may not
exist in the path where _the user decided_ to extract the distribution tar file.
Meanwhile the _lib_ subdirectory of the distribution ($ACTIVEMQ_BASE/lib) does
not seem to be referenced anywhere in the script.
ActiveMQ does not seem to have any problem with that, though, so maybe this
setting is not so important.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)