karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bryce Ewing (JIRA)" <j...@apache.org>
Subject [jira] Created: (KARAF-124) Karaf start script doesn't correctly include jre/lib/ext directory
Date Thu, 15 Jul 2010 23:49:01 GMT
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.2
         Environment: Ubuntu linux, Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
            Reporter: Bryce Ewing
            Priority: Minor


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.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message