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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Duplicate
    • 1.6.x
    • 1.6.x, 2.0.0
    • None
    • None
    • 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

      Attachments

        Activity

          People

            Unassigned Unassigned
            brycenz Bryce Ewing
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: