Uploaded image for project: 'ActiveMQ Apollo (Retired)'
  1. ActiveMQ Apollo (Retired)
  2. APLO-332

Apollo not starting with cygwin under windows7

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 1.6
    • 1.7
    • apollo-cli
    • None
    • windows 7 32bit + cygwin + Java 1.7

    Description

      the commands: "apollo" or "apollo create broker" fail with the error

      Exception in thread "main" java.lang.ClassNotFoundException: org.apache.activemq.apollo.cli.Apollo

      the problem seems to be related to the fact the $BOOTDIRS argument is passed as unix path.

      To fix this I modified by hand, in my istallation, the bin/apollo script adding

      BOOTDIRS=`cygpath --path --windows "$BOOTDIRS"`

      in the if block for cygwin and it seems to work correctly.

      The "apollo create broker" command creates a script APOLLO_BASE/bin/apollo-broker.cmd, and no unix-like apollo-broker script, which I created by hand.

      When $APOLLO_HOME/bin/apollo is called from the apollo-broker script,it fails again since the APOLLO_BASE is set.
      This happens cause of the setting:

      BOOTDIRS="${APOLLO_BASE}/lib\;${BOOTDIRS}"

      which is not converted properly by cygpath.

      To fix it I changed again the definition of BOOTDIRS in the same place as above, i.e. in the block for cygwin, as follows:

      BOOTDIRS=`cygpath --path --windows "${APOLLO_BASE}/lib\:${APOLLO_HOME}/lib"`

      .

      Attachments

        Activity

          People

            chirino Hiram R. Chirino
            fditolla Francesco Di Tolla
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: