Karaf
  1. Karaf
  2. KARAF-124

Karaf start script doesn't correctly include jre/lib/ext directory

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Duplicate
    • Affects Version/s: 1.6.x
    • Fix Version/s: 1.6.x, 2.0.0
    • Component/s: None
    • Labels:
      None
    • Environment:

      Ubuntu linux, Java(TM) SE Runtime Environment (build 1.6.0_20-b02)

      Description

      The particular symptoms of this in my case was that installing features from https source failed to work correctly resulting in a javax.net.ssl.SSLKeyException: RSA premaster secret error.

      More details can be found at: http://karaf.922171.n3.nabble.com/Feature-file-downloading-issue-td957778.html#a959980

      The solution was to change the bin/karaf script as follows:
      exec $JAVA $JAVA_OPTS -Djava.endorsed.dirs="$

      {JAVA_HOME}/lib/endorsed:${KARAF_HOME}/lib/endorsed" -Djava.ext.dirs="${JAVA_HOME}

      /lib/ext:$

      {KARAF_HOME}/lib/ext" -Dstorage.location="${KARAF_HOME}

      /instances" -Dkaraf.home="$KARAF_HOME" -Dkaraf.base="$KARAF_BASE" -Djava.util.logging.config.file=$KARAF_BASE/etc/java.util.logging.properties $OPTS -classpath "$CLASSPATH" $MAIN "$@"
      to:
      exec $JAVA $JAVA_OPTS -Djava.endorsed.dirs="$

      {JAVA_HOME}/lib/endorsed:${KARAF_HOME}/lib/endorsed" -Djava.ext.dirs="${JAVA_HOME}

      /jre/lib/ext:$

      {KARAF_HOME}/lib/ext" -Dstorage.location="${KARAF_HOME}

      /instances" -Dkaraf.home="$KARAF_HOME" -Dkaraf.base="$KARAF_BASE" -Djava.util.logging.config.file=$KARAF_BASE/etc/java.util.logging.properties $OPTS -classpath "$CLASSPATH" $MAIN "$@"

      Note: only change is $

      {JAVA_HOME}/lib/ext -> ${JAVA_HOME}

      /jre/lib/ext

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Bryce Ewing
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development