You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Stephane Chomat (JIRA)" <ji...@apache.org> on 2011/01/13 10:36:46 UTC

[jira] Created: (KARAF-384) Cannot find some jar in ext directory

Cannot find some jar in ext directory
-------------------------------------

                 Key: KARAF-384
                 URL: https://issues.apache.org/jira/browse/KARAF-384
             Project: Karaf
          Issue Type: Bug
    Affects Versions: 2.1.2
         Environment: Cygwin on window
            Reporter: Stephane Chomat
             Fix For: 2.1.4, 2.2.0, 3.0.0
         Attachments: karaf

the script karaf has a bug.
You must convert JAVA_HOME with cygwin path. And may be change the path separator to ";" instead ":".

Java runtime (jce and jsse) cannot find some security providers in some jars located in the directory ext.
And it raised aclass not found exception.

The problem is the properties 'java.endorsed.dirs' and 'java.ext.dirs' are poorly converted in cygwin environnement.

I propose these changes :
1. convert JAVA_HOME path
2. and change the path separtor to ";" if you are on cygwin and else ":"

JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
SEP=";"

+ SEP=":"

if $cygwin; then
    KARAF_HOME=`cygpath --path --windows "$KARAF_HOME"`
    KARAF_BASE=`cygpath --path --windows "$KARAF_BASE"`
    KARAF_DATA=`cygpath --path --windows "$KARAF_DATA"`
    CLASSPATH=`cygpath --path --windows "$CLASSPATH"`
+     JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
+     SEP=";"
fi

cd $KARAF_BASE
+ exec $JAVA $JAVA_OPTS -Djava.endorsed.dirs="${JAVA_HOME}/jre/lib/endorsed$SEP${JAVA_HOME}/lib/endorsed$SEP${KARAF_HOME}/lib/endorsed" -Djava.ext.dirs="${JAVA_HOME}/jre/lib/ext$SEP${JAVA_HOME}/lib/ext$SEP${KARAF_HOME}/lib/ext" -Dkaraf.instances="${KARAF_HOME}/instances" -Dkaraf.home="$KARAF_HOME" -Dkaraf.base="$KARAF_BASE" -Dkaraf.data="$KARAF_DATA" -Djava.util.logging.config.file=$KARAF_BASE/etc/java.util.logging.properties $OPTS -classpath "$CLASSPATH" $MAIN "$@"
- exec $JAVA $JAVA_OPTS -Djava.endorsed.dirs="${JAVA_HOME}/jre/lib/endorsed:${JAVA_HOME}/lib/endorsed:${KARAF_HOME}/lib/endorsed" -Djava.ext.dirs="${JAVA_HOME}/jre/lib/ext:${JAVA_HOME}/lib/ext:${KARAF_HOME}/lib/ext" -Dkaraf.instances="${KARAF_HOME}/instances" -Dkaraf.home="$KARAF_HOME" -Dkaraf.base="$KARAF_BASE" -Dkaraf.data="$KARAF_DATA" -Djava.util.logging.config.file=$KARAF_BASE/etc/java.util.logging.properties $OPTS -classpath "$CLASSPATH" $MAIN "$@"


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (KARAF-384) Cannot find some jar in ext directory

Posted by "Jean-Baptiste Onofré (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-384?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12981195#action_12981195 ] 

Jean-Baptiste Onofré commented on KARAF-384:
--------------------------------------------

Thanks for the update, I'm gonna fix it asap.

> Cannot find some jar in ext directory
> -------------------------------------
>
>                 Key: KARAF-384
>                 URL: https://issues.apache.org/jira/browse/KARAF-384
>             Project: Karaf
>          Issue Type: Bug
>    Affects Versions: 2.1.2
>         Environment: Cygwin on window
>            Reporter: Stephane Chomat
>            Assignee: Jean-Baptiste Onofré
>             Fix For: 2.1.4, 2.2.0, 3.0.0
>
>         Attachments: karaf
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> the script karaf has a bug.
> You must convert JAVA_HOME with cygwin path. And may be change the path separator to ";" instead ":".
> Java runtime (jce and jsse) cannot find some security providers in some jars located in the directory ext.
> And it raised aclass not found exception.
> The problem is the properties 'java.endorsed.dirs' and 'java.ext.dirs' are poorly converted in cygwin environnement.
> I propose these changes :
> 1. convert JAVA_HOME path
> 2. and change the path separtor to ";" if you are on cygwin and else ":"
> JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
> SEP=";"
> + SEP=":"
> if $cygwin; then
>     KARAF_HOME=`cygpath --path --windows "$KARAF_HOME"`
>     KARAF_BASE=`cygpath --path --windows "$KARAF_BASE"`
>     KARAF_DATA=`cygpath --path --windows "$KARAF_DATA"`
>     CLASSPATH=`cygpath --path --windows "$CLASSPATH"`
> +     JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
> +     SEP=";"
> fi
> cd $KARAF_BASE
> + exec $JAVA $JAVA_OPTS -Djava.endorsed.dirs="${JAVA_HOME}/jre/lib/endorsed$SEP${JAVA_HOME}/lib/endorsed$SEP${KARAF_HOME}/lib/endorsed" -Djava.ext.dirs="${JAVA_HOME}/jre/lib/ext$SEP${JAVA_HOME}/lib/ext$SEP${KARAF_HOME}/lib/ext" -Dkaraf.instances="${KARAF_HOME}/instances" -Dkaraf.home="$KARAF_HOME" -Dkaraf.base="$KARAF_BASE" -Dkaraf.data="$KARAF_DATA" -Djava.util.logging.config.file=$KARAF_BASE/etc/java.util.logging.properties $OPTS -classpath "$CLASSPATH" $MAIN "$@"
> - exec $JAVA $JAVA_OPTS -Djava.endorsed.dirs="${JAVA_HOME}/jre/lib/endorsed:${JAVA_HOME}/lib/endorsed:${KARAF_HOME}/lib/endorsed" -Djava.ext.dirs="${JAVA_HOME}/jre/lib/ext:${JAVA_HOME}/lib/ext:${KARAF_HOME}/lib/ext" -Dkaraf.instances="${KARAF_HOME}/instances" -Dkaraf.home="$KARAF_HOME" -Dkaraf.base="$KARAF_BASE" -Dkaraf.data="$KARAF_DATA" -Djava.util.logging.config.file=$KARAF_BASE/etc/java.util.logging.properties $OPTS -classpath "$CLASSPATH" $MAIN "$@"

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (KARAF-384) Cannot find some jar in ext directory

Posted by "Stephane Chomat (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/KARAF-384?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stephane Chomat updated KARAF-384:
----------------------------------

    Attachment: karaf

My version of karaf executable

> Cannot find some jar in ext directory
> -------------------------------------
>
>                 Key: KARAF-384
>                 URL: https://issues.apache.org/jira/browse/KARAF-384
>             Project: Karaf
>          Issue Type: Bug
>    Affects Versions: 2.1.2
>         Environment: Cygwin on window
>            Reporter: Stephane Chomat
>             Fix For: 2.1.4, 2.2.0, 3.0.0
>
>         Attachments: karaf
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> the script karaf has a bug.
> You must convert JAVA_HOME with cygwin path. And may be change the path separator to ";" instead ":".
> Java runtime (jce and jsse) cannot find some security providers in some jars located in the directory ext.
> And it raised aclass not found exception.
> The problem is the properties 'java.endorsed.dirs' and 'java.ext.dirs' are poorly converted in cygwin environnement.
> I propose these changes :
> 1. convert JAVA_HOME path
> 2. and change the path separtor to ";" if you are on cygwin and else ":"
> JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
> SEP=";"
> + SEP=":"
> if $cygwin; then
>     KARAF_HOME=`cygpath --path --windows "$KARAF_HOME"`
>     KARAF_BASE=`cygpath --path --windows "$KARAF_BASE"`
>     KARAF_DATA=`cygpath --path --windows "$KARAF_DATA"`
>     CLASSPATH=`cygpath --path --windows "$CLASSPATH"`
> +     JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
> +     SEP=";"
> fi
> cd $KARAF_BASE
> + exec $JAVA $JAVA_OPTS -Djava.endorsed.dirs="${JAVA_HOME}/jre/lib/endorsed$SEP${JAVA_HOME}/lib/endorsed$SEP${KARAF_HOME}/lib/endorsed" -Djava.ext.dirs="${JAVA_HOME}/jre/lib/ext$SEP${JAVA_HOME}/lib/ext$SEP${KARAF_HOME}/lib/ext" -Dkaraf.instances="${KARAF_HOME}/instances" -Dkaraf.home="$KARAF_HOME" -Dkaraf.base="$KARAF_BASE" -Dkaraf.data="$KARAF_DATA" -Djava.util.logging.config.file=$KARAF_BASE/etc/java.util.logging.properties $OPTS -classpath "$CLASSPATH" $MAIN "$@"
> - exec $JAVA $JAVA_OPTS -Djava.endorsed.dirs="${JAVA_HOME}/jre/lib/endorsed:${JAVA_HOME}/lib/endorsed:${KARAF_HOME}/lib/endorsed" -Djava.ext.dirs="${JAVA_HOME}/jre/lib/ext:${JAVA_HOME}/lib/ext:${KARAF_HOME}/lib/ext" -Dkaraf.instances="${KARAF_HOME}/instances" -Dkaraf.home="$KARAF_HOME" -Dkaraf.base="$KARAF_BASE" -Dkaraf.data="$KARAF_DATA" -Djava.util.logging.config.file=$KARAF_BASE/etc/java.util.logging.properties $OPTS -classpath "$CLASSPATH" $MAIN "$@"

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (KARAF-384) Cannot find some jar in ext directory

Posted by "Stephane Chomat (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-384?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12981667#action_12981667 ] 

Stephane Chomat commented on KARAF-384:
---------------------------------------

You can make like the CLASSPATH :
 > CLASSPATH=`cygpath --path --windows "$CLASSPATH"`
You must convert from unix notation to window notation.
You can use the SEP variable or the command cygpath --path.

> Cannot find some jar in ext directory
> -------------------------------------
>
>                 Key: KARAF-384
>                 URL: https://issues.apache.org/jira/browse/KARAF-384
>             Project: Karaf
>          Issue Type: Bug
>    Affects Versions: 2.1.2
>         Environment: Cygwin on window
>            Reporter: Stephane Chomat
>            Assignee: Jean-Baptiste Onofré
>             Fix For: 2.1.4, 2.2.0, 3.0.0
>
>         Attachments: karaf
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> the script karaf has a bug.
> You must convert JAVA_HOME with cygwin path. And may be change the path separator to ";" instead ":".
> Java runtime (jce and jsse) cannot find some security providers in some jars located in the directory ext.
> And it raised aclass not found exception.
> The problem is the properties 'java.endorsed.dirs' and 'java.ext.dirs' are poorly converted in cygwin environnement.
> I propose these changes :
> 1. convert JAVA_HOME path
> 2. and change the path separtor to ";" if you are on cygwin and else ":"
> JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
> SEP=";"
> + SEP=":"
> if $cygwin; then
>     KARAF_HOME=`cygpath --path --windows "$KARAF_HOME"`
>     KARAF_BASE=`cygpath --path --windows "$KARAF_BASE"`
>     KARAF_DATA=`cygpath --path --windows "$KARAF_DATA"`
>     CLASSPATH=`cygpath --path --windows "$CLASSPATH"`
> +     JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
> +     SEP=";"
> fi
> cd $KARAF_BASE
> + exec $JAVA $JAVA_OPTS -Djava.endorsed.dirs="${JAVA_HOME}/jre/lib/endorsed$SEP${JAVA_HOME}/lib/endorsed$SEP${KARAF_HOME}/lib/endorsed" -Djava.ext.dirs="${JAVA_HOME}/jre/lib/ext$SEP${JAVA_HOME}/lib/ext$SEP${KARAF_HOME}/lib/ext" -Dkaraf.instances="${KARAF_HOME}/instances" -Dkaraf.home="$KARAF_HOME" -Dkaraf.base="$KARAF_BASE" -Dkaraf.data="$KARAF_DATA" -Djava.util.logging.config.file=$KARAF_BASE/etc/java.util.logging.properties $OPTS -classpath "$CLASSPATH" $MAIN "$@"
> - exec $JAVA $JAVA_OPTS -Djava.endorsed.dirs="${JAVA_HOME}/jre/lib/endorsed:${JAVA_HOME}/lib/endorsed:${KARAF_HOME}/lib/endorsed" -Djava.ext.dirs="${JAVA_HOME}/jre/lib/ext:${JAVA_HOME}/lib/ext:${KARAF_HOME}/lib/ext" -Dkaraf.instances="${KARAF_HOME}/instances" -Dkaraf.home="$KARAF_HOME" -Dkaraf.base="$KARAF_BASE" -Dkaraf.data="$KARAF_DATA" -Djava.util.logging.config.file=$KARAF_BASE/etc/java.util.logging.properties $OPTS -classpath "$CLASSPATH" $MAIN "$@"

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (KARAF-384) Cannot find some jar in ext directory

Posted by "Stephane Chomat (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/KARAF-384?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stephane Chomat closed KARAF-384.
---------------------------------


The bug is fixed

> Cannot find some jar in ext directory
> -------------------------------------
>
>                 Key: KARAF-384
>                 URL: https://issues.apache.org/jira/browse/KARAF-384
>             Project: Karaf
>          Issue Type: Bug
>    Affects Versions: 2.1.2
>         Environment: Cygwin on window
>            Reporter: Stephane Chomat
>            Assignee: Jean-Baptiste Onofré
>             Fix For: 2.1.4, 2.2.0, 3.0.0
>
>         Attachments: karaf
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> the script karaf has a bug.
> You must convert JAVA_HOME with cygwin path. And may be change the path separator to ";" instead ":".
> Java runtime (jce and jsse) cannot find some security providers in some jars located in the directory ext.
> And it raised aclass not found exception.
> The problem is the properties 'java.endorsed.dirs' and 'java.ext.dirs' are poorly converted in cygwin environnement.
> I propose these changes :
> 1. convert JAVA_HOME path
> 2. and change the path separtor to ";" if you are on cygwin and else ":"
> JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
> SEP=";"
> + SEP=":"
> if $cygwin; then
>     KARAF_HOME=`cygpath --path --windows "$KARAF_HOME"`
>     KARAF_BASE=`cygpath --path --windows "$KARAF_BASE"`
>     KARAF_DATA=`cygpath --path --windows "$KARAF_DATA"`
>     CLASSPATH=`cygpath --path --windows "$CLASSPATH"`
> +     JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
> +     SEP=";"
> fi
> cd $KARAF_BASE
> + exec $JAVA $JAVA_OPTS -Djava.endorsed.dirs="${JAVA_HOME}/jre/lib/endorsed$SEP${JAVA_HOME}/lib/endorsed$SEP${KARAF_HOME}/lib/endorsed" -Djava.ext.dirs="${JAVA_HOME}/jre/lib/ext$SEP${JAVA_HOME}/lib/ext$SEP${KARAF_HOME}/lib/ext" -Dkaraf.instances="${KARAF_HOME}/instances" -Dkaraf.home="$KARAF_HOME" -Dkaraf.base="$KARAF_BASE" -Dkaraf.data="$KARAF_DATA" -Djava.util.logging.config.file=$KARAF_BASE/etc/java.util.logging.properties $OPTS -classpath "$CLASSPATH" $MAIN "$@"
> - exec $JAVA $JAVA_OPTS -Djava.endorsed.dirs="${JAVA_HOME}/jre/lib/endorsed:${JAVA_HOME}/lib/endorsed:${KARAF_HOME}/lib/endorsed" -Djava.ext.dirs="${JAVA_HOME}/jre/lib/ext:${JAVA_HOME}/lib/ext:${KARAF_HOME}/lib/ext" -Dkaraf.instances="${KARAF_HOME}/instances" -Dkaraf.home="$KARAF_HOME" -Dkaraf.base="$KARAF_BASE" -Dkaraf.data="$KARAF_DATA" -Djava.util.logging.config.file=$KARAF_BASE/etc/java.util.logging.properties $OPTS -classpath "$CLASSPATH" $MAIN "$@"

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (KARAF-384) Cannot find some jar in ext directory

Posted by "Jean-Baptiste Onofré (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-384?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12981362#action_12981362 ] 

Jean-Baptiste Onofré commented on KARAF-384:
--------------------------------------------

Fix already applied on Karaf trunk: revision 1058657.

> Cannot find some jar in ext directory
> -------------------------------------
>
>                 Key: KARAF-384
>                 URL: https://issues.apache.org/jira/browse/KARAF-384
>             Project: Karaf
>          Issue Type: Bug
>    Affects Versions: 2.1.2
>         Environment: Cygwin on window
>            Reporter: Stephane Chomat
>            Assignee: Jean-Baptiste Onofré
>             Fix For: 2.1.4, 2.2.0, 3.0.0
>
>         Attachments: karaf
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> the script karaf has a bug.
> You must convert JAVA_HOME with cygwin path. And may be change the path separator to ";" instead ":".
> Java runtime (jce and jsse) cannot find some security providers in some jars located in the directory ext.
> And it raised aclass not found exception.
> The problem is the properties 'java.endorsed.dirs' and 'java.ext.dirs' are poorly converted in cygwin environnement.
> I propose these changes :
> 1. convert JAVA_HOME path
> 2. and change the path separtor to ";" if you are on cygwin and else ":"
> JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
> SEP=";"
> + SEP=":"
> if $cygwin; then
>     KARAF_HOME=`cygpath --path --windows "$KARAF_HOME"`
>     KARAF_BASE=`cygpath --path --windows "$KARAF_BASE"`
>     KARAF_DATA=`cygpath --path --windows "$KARAF_DATA"`
>     CLASSPATH=`cygpath --path --windows "$CLASSPATH"`
> +     JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
> +     SEP=";"
> fi
> cd $KARAF_BASE
> + exec $JAVA $JAVA_OPTS -Djava.endorsed.dirs="${JAVA_HOME}/jre/lib/endorsed$SEP${JAVA_HOME}/lib/endorsed$SEP${KARAF_HOME}/lib/endorsed" -Djava.ext.dirs="${JAVA_HOME}/jre/lib/ext$SEP${JAVA_HOME}/lib/ext$SEP${KARAF_HOME}/lib/ext" -Dkaraf.instances="${KARAF_HOME}/instances" -Dkaraf.home="$KARAF_HOME" -Dkaraf.base="$KARAF_BASE" -Dkaraf.data="$KARAF_DATA" -Djava.util.logging.config.file=$KARAF_BASE/etc/java.util.logging.properties $OPTS -classpath "$CLASSPATH" $MAIN "$@"
> - exec $JAVA $JAVA_OPTS -Djava.endorsed.dirs="${JAVA_HOME}/jre/lib/endorsed:${JAVA_HOME}/lib/endorsed:${KARAF_HOME}/lib/endorsed" -Djava.ext.dirs="${JAVA_HOME}/jre/lib/ext:${JAVA_HOME}/lib/ext:${KARAF_HOME}/lib/ext" -Dkaraf.instances="${KARAF_HOME}/instances" -Dkaraf.home="$KARAF_HOME" -Dkaraf.base="$KARAF_BASE" -Dkaraf.data="$KARAF_DATA" -Djava.util.logging.config.file=$KARAF_BASE/etc/java.util.logging.properties $OPTS -classpath "$CLASSPATH" $MAIN "$@"

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (KARAF-384) Cannot find some jar in ext directory

Posted by "Jean-Baptiste Onofré (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/KARAF-384?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jean-Baptiste Onofré resolved KARAF-384.
----------------------------------------

    Resolution: Fixed

Also fix on 2.1.X branch: revision 1058999.

> Cannot find some jar in ext directory
> -------------------------------------
>
>                 Key: KARAF-384
>                 URL: https://issues.apache.org/jira/browse/KARAF-384
>             Project: Karaf
>          Issue Type: Bug
>    Affects Versions: 2.1.2
>         Environment: Cygwin on window
>            Reporter: Stephane Chomat
>            Assignee: Jean-Baptiste Onofré
>             Fix For: 2.1.4, 2.2.0, 3.0.0
>
>         Attachments: karaf
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> the script karaf has a bug.
> You must convert JAVA_HOME with cygwin path. And may be change the path separator to ";" instead ":".
> Java runtime (jce and jsse) cannot find some security providers in some jars located in the directory ext.
> And it raised aclass not found exception.
> The problem is the properties 'java.endorsed.dirs' and 'java.ext.dirs' are poorly converted in cygwin environnement.
> I propose these changes :
> 1. convert JAVA_HOME path
> 2. and change the path separtor to ";" if you are on cygwin and else ":"
> JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
> SEP=";"
> + SEP=":"
> if $cygwin; then
>     KARAF_HOME=`cygpath --path --windows "$KARAF_HOME"`
>     KARAF_BASE=`cygpath --path --windows "$KARAF_BASE"`
>     KARAF_DATA=`cygpath --path --windows "$KARAF_DATA"`
>     CLASSPATH=`cygpath --path --windows "$CLASSPATH"`
> +     JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
> +     SEP=";"
> fi
> cd $KARAF_BASE
> + exec $JAVA $JAVA_OPTS -Djava.endorsed.dirs="${JAVA_HOME}/jre/lib/endorsed$SEP${JAVA_HOME}/lib/endorsed$SEP${KARAF_HOME}/lib/endorsed" -Djava.ext.dirs="${JAVA_HOME}/jre/lib/ext$SEP${JAVA_HOME}/lib/ext$SEP${KARAF_HOME}/lib/ext" -Dkaraf.instances="${KARAF_HOME}/instances" -Dkaraf.home="$KARAF_HOME" -Dkaraf.base="$KARAF_BASE" -Dkaraf.data="$KARAF_DATA" -Djava.util.logging.config.file=$KARAF_BASE/etc/java.util.logging.properties $OPTS -classpath "$CLASSPATH" $MAIN "$@"
> - exec $JAVA $JAVA_OPTS -Djava.endorsed.dirs="${JAVA_HOME}/jre/lib/endorsed:${JAVA_HOME}/lib/endorsed:${KARAF_HOME}/lib/endorsed" -Djava.ext.dirs="${JAVA_HOME}/jre/lib/ext:${JAVA_HOME}/lib/ext:${KARAF_HOME}/lib/ext" -Dkaraf.instances="${KARAF_HOME}/instances" -Dkaraf.home="$KARAF_HOME" -Dkaraf.base="$KARAF_BASE" -Dkaraf.data="$KARAF_DATA" -Djava.util.logging.config.file=$KARAF_BASE/etc/java.util.logging.properties $OPTS -classpath "$CLASSPATH" $MAIN "$@"

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (KARAF-384) Cannot find some jar in ext directory

Posted by "Jean-Baptiste Onofré (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/KARAF-384?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jean-Baptiste Onofré reassigned KARAF-384:
------------------------------------------

    Assignee: Jean-Baptiste Onofré

> Cannot find some jar in ext directory
> -------------------------------------
>
>                 Key: KARAF-384
>                 URL: https://issues.apache.org/jira/browse/KARAF-384
>             Project: Karaf
>          Issue Type: Bug
>    Affects Versions: 2.1.2
>         Environment: Cygwin on window
>            Reporter: Stephane Chomat
>            Assignee: Jean-Baptiste Onofré
>             Fix For: 2.1.4, 2.2.0, 3.0.0
>
>         Attachments: karaf
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> the script karaf has a bug.
> You must convert JAVA_HOME with cygwin path. And may be change the path separator to ";" instead ":".
> Java runtime (jce and jsse) cannot find some security providers in some jars located in the directory ext.
> And it raised aclass not found exception.
> The problem is the properties 'java.endorsed.dirs' and 'java.ext.dirs' are poorly converted in cygwin environnement.
> I propose these changes :
> 1. convert JAVA_HOME path
> 2. and change the path separtor to ";" if you are on cygwin and else ":"
> JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
> SEP=";"
> + SEP=":"
> if $cygwin; then
>     KARAF_HOME=`cygpath --path --windows "$KARAF_HOME"`
>     KARAF_BASE=`cygpath --path --windows "$KARAF_BASE"`
>     KARAF_DATA=`cygpath --path --windows "$KARAF_DATA"`
>     CLASSPATH=`cygpath --path --windows "$CLASSPATH"`
> +     JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
> +     SEP=";"
> fi
> cd $KARAF_BASE
> + exec $JAVA $JAVA_OPTS -Djava.endorsed.dirs="${JAVA_HOME}/jre/lib/endorsed$SEP${JAVA_HOME}/lib/endorsed$SEP${KARAF_HOME}/lib/endorsed" -Djava.ext.dirs="${JAVA_HOME}/jre/lib/ext$SEP${JAVA_HOME}/lib/ext$SEP${KARAF_HOME}/lib/ext" -Dkaraf.instances="${KARAF_HOME}/instances" -Dkaraf.home="$KARAF_HOME" -Dkaraf.base="$KARAF_BASE" -Dkaraf.data="$KARAF_DATA" -Djava.util.logging.config.file=$KARAF_BASE/etc/java.util.logging.properties $OPTS -classpath "$CLASSPATH" $MAIN "$@"
> - exec $JAVA $JAVA_OPTS -Djava.endorsed.dirs="${JAVA_HOME}/jre/lib/endorsed:${JAVA_HOME}/lib/endorsed:${KARAF_HOME}/lib/endorsed" -Djava.ext.dirs="${JAVA_HOME}/jre/lib/ext:${JAVA_HOME}/lib/ext:${KARAF_HOME}/lib/ext" -Dkaraf.instances="${KARAF_HOME}/instances" -Dkaraf.home="$KARAF_HOME" -Dkaraf.base="$KARAF_BASE" -Dkaraf.data="$KARAF_DATA" -Djava.util.logging.config.file=$KARAF_BASE/etc/java.util.logging.properties $OPTS -classpath "$CLASSPATH" $MAIN "$@"

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (KARAF-384) Cannot find some jar in ext directory

Posted by "Jean-Baptiste Onofré (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-384?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12981364#action_12981364 ] 

Jean-Baptiste Onofré commented on KARAF-384:
--------------------------------------------

I'm not sure that the SEP usage is required. I'm gonna make a quick test.

> Cannot find some jar in ext directory
> -------------------------------------
>
>                 Key: KARAF-384
>                 URL: https://issues.apache.org/jira/browse/KARAF-384
>             Project: Karaf
>          Issue Type: Bug
>    Affects Versions: 2.1.2
>         Environment: Cygwin on window
>            Reporter: Stephane Chomat
>            Assignee: Jean-Baptiste Onofré
>             Fix For: 2.1.4, 2.2.0, 3.0.0
>
>         Attachments: karaf
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> the script karaf has a bug.
> You must convert JAVA_HOME with cygwin path. And may be change the path separator to ";" instead ":".
> Java runtime (jce and jsse) cannot find some security providers in some jars located in the directory ext.
> And it raised aclass not found exception.
> The problem is the properties 'java.endorsed.dirs' and 'java.ext.dirs' are poorly converted in cygwin environnement.
> I propose these changes :
> 1. convert JAVA_HOME path
> 2. and change the path separtor to ";" if you are on cygwin and else ":"
> JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
> SEP=";"
> + SEP=":"
> if $cygwin; then
>     KARAF_HOME=`cygpath --path --windows "$KARAF_HOME"`
>     KARAF_BASE=`cygpath --path --windows "$KARAF_BASE"`
>     KARAF_DATA=`cygpath --path --windows "$KARAF_DATA"`
>     CLASSPATH=`cygpath --path --windows "$CLASSPATH"`
> +     JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
> +     SEP=";"
> fi
> cd $KARAF_BASE
> + exec $JAVA $JAVA_OPTS -Djava.endorsed.dirs="${JAVA_HOME}/jre/lib/endorsed$SEP${JAVA_HOME}/lib/endorsed$SEP${KARAF_HOME}/lib/endorsed" -Djava.ext.dirs="${JAVA_HOME}/jre/lib/ext$SEP${JAVA_HOME}/lib/ext$SEP${KARAF_HOME}/lib/ext" -Dkaraf.instances="${KARAF_HOME}/instances" -Dkaraf.home="$KARAF_HOME" -Dkaraf.base="$KARAF_BASE" -Dkaraf.data="$KARAF_DATA" -Djava.util.logging.config.file=$KARAF_BASE/etc/java.util.logging.properties $OPTS -classpath "$CLASSPATH" $MAIN "$@"
> - exec $JAVA $JAVA_OPTS -Djava.endorsed.dirs="${JAVA_HOME}/jre/lib/endorsed:${JAVA_HOME}/lib/endorsed:${KARAF_HOME}/lib/endorsed" -Djava.ext.dirs="${JAVA_HOME}/jre/lib/ext:${JAVA_HOME}/lib/ext:${KARAF_HOME}/lib/ext" -Dkaraf.instances="${KARAF_HOME}/instances" -Dkaraf.home="$KARAF_HOME" -Dkaraf.base="$KARAF_BASE" -Dkaraf.data="$KARAF_DATA" -Djava.util.logging.config.file=$KARAF_BASE/etc/java.util.logging.properties $OPTS -classpath "$CLASSPATH" $MAIN "$@"

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] [Commented] (KARAF-384) Cannot find some jar in ext directory

Posted by "Scott Thorsons (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-384?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13411452#comment-13411452 ] 

Scott Thorsons commented on KARAF-384:
--------------------------------------

When I get a problem with Tomcat, I found couple of different pages on this topic. Quite complicated stuff to me. Though, I surprisingly found some solution that fit my needs and luck of experience at http://www.windows-cannot-find.com/337/windows-cannot-find-djava-endorsed-dirs-error-fix/.    
                
> Cannot find some jar in ext directory
> -------------------------------------
>
>                 Key: KARAF-384
>                 URL: https://issues.apache.org/jira/browse/KARAF-384
>             Project: Karaf
>          Issue Type: Bug
>    Affects Versions: 2.1.2
>         Environment: Cygwin on window
>            Reporter: Stephane Chomat
>            Assignee: Jean-Baptiste Onofré
>             Fix For: 2.1.4, 2.2.0, 3.0.0
>
>         Attachments: karaf
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> the script karaf has a bug.
> You must convert JAVA_HOME with cygwin path. And may be change the path separator to ";" instead ":".
> Java runtime (jce and jsse) cannot find some security providers in some jars located in the directory ext.
> And it raised aclass not found exception.
> The problem is the properties 'java.endorsed.dirs' and 'java.ext.dirs' are poorly converted in cygwin environnement.
> I propose these changes :
> 1. convert JAVA_HOME path
> 2. and change the path separtor to ";" if you are on cygwin and else ":"
> JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
> SEP=";"
> + SEP=":"
> if $cygwin; then
>     KARAF_HOME=`cygpath --path --windows "$KARAF_HOME"`
>     KARAF_BASE=`cygpath --path --windows "$KARAF_BASE"`
>     KARAF_DATA=`cygpath --path --windows "$KARAF_DATA"`
>     CLASSPATH=`cygpath --path --windows "$CLASSPATH"`
> +     JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
> +     SEP=";"
> fi
> cd $KARAF_BASE
> + exec $JAVA $JAVA_OPTS -Djava.endorsed.dirs="${JAVA_HOME}/jre/lib/endorsed$SEP${JAVA_HOME}/lib/endorsed$SEP${KARAF_HOME}/lib/endorsed" -Djava.ext.dirs="${JAVA_HOME}/jre/lib/ext$SEP${JAVA_HOME}/lib/ext$SEP${KARAF_HOME}/lib/ext" -Dkaraf.instances="${KARAF_HOME}/instances" -Dkaraf.home="$KARAF_HOME" -Dkaraf.base="$KARAF_BASE" -Dkaraf.data="$KARAF_DATA" -Djava.util.logging.config.file=$KARAF_BASE/etc/java.util.logging.properties $OPTS -classpath "$CLASSPATH" $MAIN "$@"
> - exec $JAVA $JAVA_OPTS -Djava.endorsed.dirs="${JAVA_HOME}/jre/lib/endorsed:${JAVA_HOME}/lib/endorsed:${KARAF_HOME}/lib/endorsed" -Djava.ext.dirs="${JAVA_HOME}/jre/lib/ext:${JAVA_HOME}/lib/ext:${KARAF_HOME}/lib/ext" -Dkaraf.instances="${KARAF_HOME}/instances" -Dkaraf.home="$KARAF_HOME" -Dkaraf.base="$KARAF_BASE" -Dkaraf.data="$KARAF_DATA" -Djava.util.logging.config.file=$KARAF_BASE/etc/java.util.logging.properties $OPTS -classpath "$CLASSPATH" $MAIN "$@"

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] Commented: (KARAF-384) Cannot find some jar in ext directory

Posted by "Stephane Chomat (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-384?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12981752#action_12981752 ] 

Stephane Chomat commented on KARAF-384:
---------------------------------------

Ok.

My program work with your script. I can execute web service under ssl and the security providers are found.

> Cannot find some jar in ext directory
> -------------------------------------
>
>                 Key: KARAF-384
>                 URL: https://issues.apache.org/jira/browse/KARAF-384
>             Project: Karaf
>          Issue Type: Bug
>    Affects Versions: 2.1.2
>         Environment: Cygwin on window
>            Reporter: Stephane Chomat
>            Assignee: Jean-Baptiste Onofré
>             Fix For: 2.1.4, 2.2.0, 3.0.0
>
>         Attachments: karaf
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> the script karaf has a bug.
> You must convert JAVA_HOME with cygwin path. And may be change the path separator to ";" instead ":".
> Java runtime (jce and jsse) cannot find some security providers in some jars located in the directory ext.
> And it raised aclass not found exception.
> The problem is the properties 'java.endorsed.dirs' and 'java.ext.dirs' are poorly converted in cygwin environnement.
> I propose these changes :
> 1. convert JAVA_HOME path
> 2. and change the path separtor to ";" if you are on cygwin and else ":"
> JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
> SEP=";"
> + SEP=":"
> if $cygwin; then
>     KARAF_HOME=`cygpath --path --windows "$KARAF_HOME"`
>     KARAF_BASE=`cygpath --path --windows "$KARAF_BASE"`
>     KARAF_DATA=`cygpath --path --windows "$KARAF_DATA"`
>     CLASSPATH=`cygpath --path --windows "$CLASSPATH"`
> +     JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
> +     SEP=";"
> fi
> cd $KARAF_BASE
> + exec $JAVA $JAVA_OPTS -Djava.endorsed.dirs="${JAVA_HOME}/jre/lib/endorsed$SEP${JAVA_HOME}/lib/endorsed$SEP${KARAF_HOME}/lib/endorsed" -Djava.ext.dirs="${JAVA_HOME}/jre/lib/ext$SEP${JAVA_HOME}/lib/ext$SEP${KARAF_HOME}/lib/ext" -Dkaraf.instances="${KARAF_HOME}/instances" -Dkaraf.home="$KARAF_HOME" -Dkaraf.base="$KARAF_BASE" -Dkaraf.data="$KARAF_DATA" -Djava.util.logging.config.file=$KARAF_BASE/etc/java.util.logging.properties $OPTS -classpath "$CLASSPATH" $MAIN "$@"
> - exec $JAVA $JAVA_OPTS -Djava.endorsed.dirs="${JAVA_HOME}/jre/lib/endorsed:${JAVA_HOME}/lib/endorsed:${KARAF_HOME}/lib/endorsed" -Djava.ext.dirs="${JAVA_HOME}/jre/lib/ext:${JAVA_HOME}/lib/ext:${KARAF_HOME}/lib/ext" -Dkaraf.instances="${KARAF_HOME}/instances" -Dkaraf.home="$KARAF_HOME" -Dkaraf.base="$KARAF_BASE" -Dkaraf.data="$KARAF_DATA" -Djava.util.logging.config.file=$KARAF_BASE/etc/java.util.logging.properties $OPTS -classpath "$CLASSPATH" $MAIN "$@"

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (KARAF-384) Cannot find some jar in ext directory

Posted by "Jean-Baptiste Onofré (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-384?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12981722#action_12981722 ] 

Jean-Baptiste Onofré commented on KARAF-384:
--------------------------------------------

I made a new version without the SEP which was not required (revision 1058949).

I'm merging on the 2.1.x branch.

> Cannot find some jar in ext directory
> -------------------------------------
>
>                 Key: KARAF-384
>                 URL: https://issues.apache.org/jira/browse/KARAF-384
>             Project: Karaf
>          Issue Type: Bug
>    Affects Versions: 2.1.2
>         Environment: Cygwin on window
>            Reporter: Stephane Chomat
>            Assignee: Jean-Baptiste Onofré
>             Fix For: 2.1.4, 2.2.0, 3.0.0
>
>         Attachments: karaf
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> the script karaf has a bug.
> You must convert JAVA_HOME with cygwin path. And may be change the path separator to ";" instead ":".
> Java runtime (jce and jsse) cannot find some security providers in some jars located in the directory ext.
> And it raised aclass not found exception.
> The problem is the properties 'java.endorsed.dirs' and 'java.ext.dirs' are poorly converted in cygwin environnement.
> I propose these changes :
> 1. convert JAVA_HOME path
> 2. and change the path separtor to ";" if you are on cygwin and else ":"
> JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
> SEP=";"
> + SEP=":"
> if $cygwin; then
>     KARAF_HOME=`cygpath --path --windows "$KARAF_HOME"`
>     KARAF_BASE=`cygpath --path --windows "$KARAF_BASE"`
>     KARAF_DATA=`cygpath --path --windows "$KARAF_DATA"`
>     CLASSPATH=`cygpath --path --windows "$CLASSPATH"`
> +     JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
> +     SEP=";"
> fi
> cd $KARAF_BASE
> + exec $JAVA $JAVA_OPTS -Djava.endorsed.dirs="${JAVA_HOME}/jre/lib/endorsed$SEP${JAVA_HOME}/lib/endorsed$SEP${KARAF_HOME}/lib/endorsed" -Djava.ext.dirs="${JAVA_HOME}/jre/lib/ext$SEP${JAVA_HOME}/lib/ext$SEP${KARAF_HOME}/lib/ext" -Dkaraf.instances="${KARAF_HOME}/instances" -Dkaraf.home="$KARAF_HOME" -Dkaraf.base="$KARAF_BASE" -Dkaraf.data="$KARAF_DATA" -Djava.util.logging.config.file=$KARAF_BASE/etc/java.util.logging.properties $OPTS -classpath "$CLASSPATH" $MAIN "$@"
> - exec $JAVA $JAVA_OPTS -Djava.endorsed.dirs="${JAVA_HOME}/jre/lib/endorsed:${JAVA_HOME}/lib/endorsed:${KARAF_HOME}/lib/endorsed" -Djava.ext.dirs="${JAVA_HOME}/jre/lib/ext:${JAVA_HOME}/lib/ext:${KARAF_HOME}/lib/ext" -Dkaraf.instances="${KARAF_HOME}/instances" -Dkaraf.home="$KARAF_HOME" -Dkaraf.base="$KARAF_BASE" -Dkaraf.data="$KARAF_DATA" -Djava.util.logging.config.file=$KARAF_BASE/etc/java.util.logging.properties $OPTS -classpath "$CLASSPATH" $MAIN "$@"

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.