You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Joe Blogs (JIRA)" <ji...@apache.org> on 2011/07/28 08:21:10 UTC

[jira] [Created] (KARAF-788) apache-karaf-2.2.2 on centos cant install webconsole feature (same deal with apache-servicemix-4.3.0/karaf)

apache-karaf-2.2.2 on centos cant install webconsole feature (same deal with apache-servicemix-4.3.0/karaf)
-----------------------------------------------------------------------------------------------------------

                 Key: KARAF-788
                 URL: https://issues.apache.org/jira/browse/KARAF-788
             Project: Karaf
          Issue Type: Bug
          Components: karaf-webconsole
    Affects Versions: 2.2.2
         Environment: Linux 2.6.18-238.el5 x86_64 x86_64 x86_64 GNU/Linux
CentOS
            Reporter: Joe Blogs
            Priority: Blocker


After starting the karaf console and attempting to `features:install webconsole`, I get the following error:

karaf@root> features:install webconsole
Error executing command: URL [mvn:org.apache.felix/org.apache.felix.metatype/1.0.4] could not be resolved.

The machine I am executing this command on is on the same network with the same http proxy as my local running machine with Windows 7 x86_64. The karaf binary for Windows does not suffer from the same problem. I have configured etc/system.properties with http.proxyHost and http.proxyPort on both machines.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Re: [jira] [Commented] (KARAF-788) apache-karaf-2.2.2 on centos cant install webconsole feature (same deal with apache-servicemix-4.3.0/karaf)

Posted by Andreas Pieber <an...@gmail.com>.
Can you do a pwd on the karaf folder? Are there any spaces on the path?

Kind regards, Andreas
On Jul 28, 2011 8:41 AM, "Joe Blogs (JIRA)" <ji...@apache.org> wrote:
>
> [
https://issues.apache.org/jira/browse/KARAF-788?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13072209#comment-13072209]
>
> Joe Blogs commented on KARAF-788:
> ---------------------------------
>
> Hi Jean,
>
> etc/org.ops4j.pax.url.mvn.cfg has been correctly configured with my proxy
settings -- as has my conf/settings for Maven. I also tried adding the below
to the karaf bash script:
>
> setupDefaults() {
> DEFAULT_JAVA_OPTS="-Xms$JAVA_MIN_MEM -Xmx$JAVA_MAX_MEM -Dhttp.proxyHost=
http://proxy-sa.dsto.defence.gov.au -Dhttp.port=8080"
>
> #Set the JVM_VENDOR specific JVM flags
> if [ "$JVM_VENDOR" = "SUN" ]; then
> DEFAULT_JAVA_OPTS="-server $DEFAULT_JAVA_OPTS
-Dcom.sun.management.jmxremote"
> elif [ "$JVM_VENDOR" = "IBM" ]; then
> if $os400; then
> DEFAULT_JAVA_OPTS="$DEFAULT_JAVA_OPTS"
> elif $aix; then
> DEFAULT_JAVA_OPTS="-Xverify:none -Xlp $DEFAULT_JAVA_OPTS"
> else
> DEFAULT_JAVA_OPTS="-Xverify:none $DEFAULT_JAVA_OPTS"
> fi
> fi
>
> This failed like so:
>
> karaf@root> features:install webconsole
> Error executing command: URL
[mvn:org.apache.felix/org.apache.felix.metatype/1.0.4] could not be
resolved.
>
> Any other ideas ? wget and curl both reach out of the proxy.
>
> Joe
>
>> apache-karaf-2.2.2 on centos cant install webconsole feature (same deal
with apache-servicemix-4.3.0/karaf)
>>
-----------------------------------------------------------------------------------------------------------
>>
>> Key: KARAF-788
>> URL: https://issues.apache.org/jira/browse/KARAF-788
>> Project: Karaf
>> Issue Type: Bug
>> Components: karaf-webconsole
>> Affects Versions: 2.2.2
>> Environment: Linux 2.6.18-238.el5 x86_64 x86_64 x86_64 GNU/Linux
>> CentOS
>> Reporter: Joe Blogs
>> Priority: Blocker
>> Labels: feature, problem
>>
>> After starting the karaf console and attempting to `features:install
webconsole`, I get the following error:
>> karaf@root> features:install webconsole
>> Error executing command: URL
[mvn:org.apache.felix/org.apache.felix.metatype/1.0.4] could not be
resolved.
>> The machine I am executing this command on is on the same network with
the same http proxy as my local running machine with Windows 7 x86_64. The
karaf binary for Windows does not suffer from the same problem. I have
configured etc/system.properties with http.proxyHost and http.proxyPort on
both machines.
>
> --
> This message is automatically generated by JIRA.
> For more information on JIRA, see: http://www.atlassian.com/software/jira
>
>

[jira] [Commented] (KARAF-788) apache-karaf-2.2.2 on centos cant install webconsole feature (same deal with apache-servicemix-4.3.0/karaf)

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

Joe Blogs commented on KARAF-788:
---------------------------------

See log here: http://pastebin.com/Hnyn3wWp

> apache-karaf-2.2.2 on centos cant install webconsole feature (same deal with apache-servicemix-4.3.0/karaf)
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: KARAF-788
>                 URL: https://issues.apache.org/jira/browse/KARAF-788
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-webconsole
>    Affects Versions: 2.2.2
>         Environment: Linux 2.6.18-238.el5 x86_64 x86_64 x86_64 GNU/Linux
> CentOS
>            Reporter: Joe Blogs
>            Priority: Blocker
>              Labels: feature, problem
>
> After starting the karaf console and attempting to `features:install webconsole`, I get the following error:
> karaf@root> features:install webconsole
> Error executing command: URL [mvn:org.apache.felix/org.apache.felix.metatype/1.0.4] could not be resolved.
> The machine I am executing this command on is on the same network with the same http proxy as my local running machine with Windows 7 x86_64. The karaf binary for Windows does not suffer from the same problem. I have configured etc/system.properties with http.proxyHost and http.proxyPort on both machines.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (KARAF-788) apache-karaf-2.2.2 on centos cant install webconsole feature (same deal with apache-servicemix-4.3.0/karaf)

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

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

As your proxy looks to require authentication, could you try to add:

-Dhttp.proxyUser= -Dhttp.proxyPassword=

into the karaf startup script ?

> apache-karaf-2.2.2 on centos cant install webconsole feature (same deal with apache-servicemix-4.3.0/karaf)
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: KARAF-788
>                 URL: https://issues.apache.org/jira/browse/KARAF-788
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-webconsole
>    Affects Versions: 2.2.2
>         Environment: Linux 2.6.18-238.el5 x86_64 x86_64 x86_64 GNU/Linux
> CentOS
>            Reporter: Joe Blogs
>            Priority: Blocker
>              Labels: feature, problem
>
> After starting the karaf console and attempting to `features:install webconsole`, I get the following error:
> karaf@root> features:install webconsole
> Error executing command: URL [mvn:org.apache.felix/org.apache.felix.metatype/1.0.4] could not be resolved.
> The machine I am executing this command on is on the same network with the same http proxy as my local running machine with Windows 7 x86_64. The karaf binary for Windows does not suffer from the same problem. I have configured etc/system.properties with http.proxyHost and http.proxyPort on both machines.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Commented] (KARAF-788) apache-karaf-2.2.2 on centos cant install webconsole feature (same deal with apache-servicemix-4.3.0/karaf)

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

Joe Blogs commented on KARAF-788:
---------------------------------

Hi Jean,

etc/org.ops4j.pax.url.mvn.cfg has been correctly configured with my proxy settings -- as has my conf/settings for Maven. I also tried adding the below to the karaf bash script:

setupDefaults() {
    DEFAULT_JAVA_OPTS="-Xms$JAVA_MIN_MEM -Xmx$JAVA_MAX_MEM -Dhttp.proxyHost=http://proxy-sa.dsto.defence.gov.au -Dhttp.port=8080"

    #Set the JVM_VENDOR specific JVM flags
    if [ "$JVM_VENDOR" = "SUN" ]; then
        DEFAULT_JAVA_OPTS="-server $DEFAULT_JAVA_OPTS -Dcom.sun.management.jmxremote"
    elif [ "$JVM_VENDOR" = "IBM" ]; then
        if $os400; then
            DEFAULT_JAVA_OPTS="$DEFAULT_JAVA_OPTS"
        elif $aix; then
            DEFAULT_JAVA_OPTS="-Xverify:none -Xlp $DEFAULT_JAVA_OPTS"
        else
            DEFAULT_JAVA_OPTS="-Xverify:none $DEFAULT_JAVA_OPTS"
        fi
    fi

This failed like so:

karaf@root> features:install webconsole
Error executing command: URL [mvn:org.apache.felix/org.apache.felix.metatype/1.0.4] could not be resolved.

Any other ideas ? wget and curl both reach out of the proxy.

Joe

> apache-karaf-2.2.2 on centos cant install webconsole feature (same deal with apache-servicemix-4.3.0/karaf)
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: KARAF-788
>                 URL: https://issues.apache.org/jira/browse/KARAF-788
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-webconsole
>    Affects Versions: 2.2.2
>         Environment: Linux 2.6.18-238.el5 x86_64 x86_64 x86_64 GNU/Linux
> CentOS
>            Reporter: Joe Blogs
>            Priority: Blocker
>              Labels: feature, problem
>
> After starting the karaf console and attempting to `features:install webconsole`, I get the following error:
> karaf@root> features:install webconsole
> Error executing command: URL [mvn:org.apache.felix/org.apache.felix.metatype/1.0.4] could not be resolved.
> The machine I am executing this command on is on the same network with the same http proxy as my local running machine with Windows 7 x86_64. The karaf binary for Windows does not suffer from the same problem. I have configured etc/system.properties with http.proxyHost and http.proxyPort on both machines.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (KARAF-788) apache-karaf-2.2.2 on centos cant install webconsole feature (same deal with apache-servicemix-4.3.0/karaf)

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

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

Hi Joe,

Felix Metatype is on the Central repo. So the issue is probably due to the proxy.

Could you try:

1/ in etc/org.ops4j.pax.url.mvn.cfg, uncomment the following properties:

org.ops4j.pax.url.mvn.proxySupport=true (even if it's the default)

and check that your proxy is defined in your ~/.m2/settings.xml

2/ try to define your proxy in the karaf startup script by adding the following JVM arguments:

-Dhttp.proxyHost=your_proxy_host -Dhttp.port=your_proxy_port

> apache-karaf-2.2.2 on centos cant install webconsole feature (same deal with apache-servicemix-4.3.0/karaf)
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: KARAF-788
>                 URL: https://issues.apache.org/jira/browse/KARAF-788
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-webconsole
>    Affects Versions: 2.2.2
>         Environment: Linux 2.6.18-238.el5 x86_64 x86_64 x86_64 GNU/Linux
> CentOS
>            Reporter: Joe Blogs
>            Priority: Blocker
>              Labels: feature, problem
>
> After starting the karaf console and attempting to `features:install webconsole`, I get the following error:
> karaf@root> features:install webconsole
> Error executing command: URL [mvn:org.apache.felix/org.apache.felix.metatype/1.0.4] could not be resolved.
> The machine I am executing this command on is on the same network with the same http proxy as my local running machine with Windows 7 x86_64. The karaf binary for Windows does not suffer from the same problem. I have configured etc/system.properties with http.proxyHost and http.proxyPort on both machines.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Resolved] (KARAF-788) apache-karaf-2.2.2 on centos cant install webconsole feature (same deal with apache-servicemix-4.3.0/karaf)

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

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

    Resolution: Duplicate

I resolved this issue as duplicate. KARAF-846 is about better support of proxy.
                
> apache-karaf-2.2.2 on centos cant install webconsole feature (same deal with apache-servicemix-4.3.0/karaf)
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: KARAF-788
>                 URL: https://issues.apache.org/jira/browse/KARAF-788
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-webconsole
>    Affects Versions: 2.2.2
>         Environment: Linux 2.6.18-238.el5 x86_64 x86_64 x86_64 GNU/Linux
> CentOS
>            Reporter: Joe Blogs
>            Priority: Blocker
>              Labels: feature, problem
>
> After starting the karaf console and attempting to `features:install webconsole`, I get the following error:
> karaf@root> features:install webconsole
> Error executing command: URL [mvn:org.apache.felix/org.apache.felix.metatype/1.0.4] could not be resolved.
> The machine I am executing this command on is on the same network with the same http proxy as my local running machine with Windows 7 x86_64. The karaf binary for Windows does not suffer from the same problem. I have configured etc/system.properties with http.proxyHost and http.proxyPort on both machines.

--
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