Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 555C8200BFA for ; Thu, 29 Dec 2016 05:50:00 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 53EDD160B34; Thu, 29 Dec 2016 04:50:00 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id C2A73160B2E for ; Thu, 29 Dec 2016 05:49:59 +0100 (CET) Received: (qmail 65068 invoked by uid 500); 29 Dec 2016 04:49:59 -0000 Mailing-List: contact issues-help@karaf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@karaf.apache.org Delivered-To: mailing list issues@karaf.apache.org Received: (qmail 65050 invoked by uid 99); 29 Dec 2016 04:49:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Dec 2016 04:49:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id A235C2C2A69 for ; Thu, 29 Dec 2016 04:49:58 +0000 (UTC) Date: Thu, 29 Dec 2016 04:49:58 +0000 (UTC) From: "Freeman Fang (JIRA)" To: issues@karaf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Assigned] (KARAF-4822) Cannot start ServiceMix 6.1.2 from any directory outside of bin MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 29 Dec 2016 04:50:00 -0000 [ https://issues.apache.org/jira/browse/KARAF-4822?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Freeman Fang reassigned KARAF-4822: ----------------------------------- Assignee: Freeman Fang > Cannot start ServiceMix 6.1.2 from any directory outside of bin > --------------------------------------------------------------- > > Key: KARAF-4822 > URL: https://issues.apache.org/jira/browse/KARAF-4822 > Project: Karaf > Issue Type: Bug > Affects Versions: 3.0.7 > Environment: Linux Mint, Java 8 > Reporter: Jakub Korab > Assignee: Freeman Fang > > When running the servicemix command from any directory other than bin, the following error message is shown: > Error: Could not find or load main class org.apache.karaf.main.Main > This does not happen in 6.1.1 > Using the servicemix script from 6.1.1 solves the issue. 6.1.2 introduced the following change: > REALNAME=`readlink -e "$0" > /dev/null 2>&1` > if [ $? != 0 ]; then > REALNAME=$0 > fi > DIRNAME=`dirname "$REALNAME"` > PROGNAME=`basename "$REALNAME"` > In 6.1.1 this was: > DIRNAME=`dirname "$0"` > PROGNAME=`basename "$0"` -- This message was sent by Atlassian JIRA (v6.3.4#6332)