You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Krzysztof Sobkowiak (JIRA)" <ji...@apache.org> on 2016/11/12 21:20:58 UTC

[jira] [Moved] (KARAF-4822) Cannot start ServiceMix 6.1.2 from any directory outside of bin

     [ https://issues.apache.org/jira/browse/KARAF-4822?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Krzysztof Sobkowiak moved SM-3112 to KARAF-4822:
------------------------------------------------

           Regression:   (was: Regression)
    Affects Version/s:     (was: 6.1.2)
                       3.0.7
          Component/s:     (was: core)
                  Key: KARAF-4822  (was: SM-3112)
              Project: Karaf  (was: ServiceMix)

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