You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Freeman Fang (JIRA)" <ji...@apache.org> on 2016/12/29 05:17:58 UTC
[jira] [Resolved] (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 ]
Freeman Fang resolved KARAF-4822.
---------------------------------
Resolution: Fixed
Fix Version/s: 3.0.8
> 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
> Fix For: 3.0.8
>
>
> 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)