Uploaded image for project: 'ActiveMQ Classic'
  1. ActiveMQ Classic
  2. AMQ-7517

bin/activemq sets ACTIVEMQ_CLASSPATH to likely non-existing directory $ACTIVEMQ_BASE/../lib

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Trivial
    • Resolution: Unresolved
    • 5.16.0, 5.15.12
    • None
    • Command Line Tools
    • None

    Description

      the bin/activemq script executes these lines by default (i.e. when none of the relevant environment variables are set):

        ACTIVEMQ_HOME="`getActiveMQHome`"
        ACTIVEMQ_BASE="$ACTIVEMQ_HOME"
      ACTIVEMQ_CLASSPATH="$ACTIVEMQ_BASE/../lib/:$ACTIVEMQ_USER_CLASSPATH"
      

      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.
       

      Attachments

        Activity

          People

            Unassigned Unassigned
            flado Vladimir Andreev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: