Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-4822

Cannot start ServiceMix 6.1.2 from any directory outside of bin

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.0.7
    • 3.0.8
    • None
    • None
    • Linux Mint, Java 8

    Description

      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"`

      Attachments

        Issue Links

          Activity

            People

              ffang Freeman Yue Fang
              jkorab Jakub Korab
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: