Return-Path: X-Original-To: apmail-activemq-commits-archive@www.apache.org Delivered-To: apmail-activemq-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5F84B10A5C for ; Tue, 30 Jul 2013 09:43:52 +0000 (UTC) Received: (qmail 85693 invoked by uid 500); 30 Jul 2013 09:43:51 -0000 Delivered-To: apmail-activemq-commits-archive@activemq.apache.org Received: (qmail 84993 invoked by uid 500); 30 Jul 2013 09:43:50 -0000 Mailing-List: contact commits-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list commits@activemq.apache.org Received: (qmail 84944 invoked by uid 99); 30 Jul 2013 09:43:49 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Jul 2013 09:43:49 +0000 Date: Tue, 30 Jul 2013 09:43:49 +0000 (UTC) From: "Francesco Di Tolla (JIRA)" To: commits@activemq.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (APLO-332) Apollo not starting with cygwin under windows7 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/APLO-332?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Francesco Di Tolla updated APLO-332: ------------------------------------ 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}" wich is no convertet 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"` . was: 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 i scaleld 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}" wich is no convertet 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"` . > Apollo not starting with cygwin under windows7 > ---------------------------------------------- > > Key: APLO-332 > URL: https://issues.apache.org/jira/browse/APLO-332 > Project: ActiveMQ Apollo > Issue Type: Bug > Components: apollo-cli > Affects Versions: 1.6 > Environment: windows 7 32bit + cygwin + Java 1.7 > Reporter: Francesco Di Tolla > Priority: Blocker > > 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}" > wich is no convertet 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"` > . -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira