karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Freeman Fang (JIRA)" <j...@apache.org>
Subject [jira] [Assigned] (KARAF-4822) Cannot start ServiceMix 6.1.2 from any directory outside of bin
Date Thu, 29 Dec 2016 04:49:58 GMT

     [ 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)

Mime
View raw message