[
https://issues.apache.org/jira/browse/KARAF-124?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jamie goodyear closed KARAF-124.
--------------------------------
> Karaf start script doesn't correctly include jre/lib/ext directory
> ------------------------------------------------------------------
>
> Key: KARAF-124
> URL: https://issues.apache.org/jira/browse/KARAF-124
> Project: Karaf
> Issue Type: Bug
> Affects Versions: 1.6.x
> Environment: Ubuntu linux, Java(TM) SE Runtime Environment (build
> 1.6.0_20-b02)
> Reporter: Bryce Ewing
> Priority: Minor
> Fix For: 1.6.x, 2.0.0
>
>
> 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
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira