Hi,

after fetching the jar with wget from the repository its available in
my nexus repository so I can say fetching from remote repositorys
work.

Regards,

Michael

2011/11/15 Jean-Baptiste Onofré <[email protected]>:
> I guess that you repository is configured as a proxy: it can get artifacts
> from the central when it's present locally, correct ?
>
> Could you check in your Nexus log if the repository is able to get the
> artifacts from central (maybe a firewall configuration missing between your
> Nexus and the Central) ?
>
> Regards
> JB
>
> On 11/15/2011 02:24 PM, Michael Prieß wrote:
>>
>> Hi,
>>
>> when I fire the feature:install wrapper command I get the error msg in
>> the same moment back.
>> Maybe something in my configuration is wrong?
>>
>> https://gist.github.com/3cc3606b5e4f35634a96
>>
>> Regards,
>>
>> Michael
>>
>> 2011/11/15 Jean-Baptiste Onofré<[email protected]>:
>>>
>>> AFAIR, the default timeout is PAX URL (for mvn) is 60 seconds:
>>>
>>>        private static final int MAVEN_TIMEOUT = 60000;
>>>
>>> Do you think it was longer ?
>>>
>>> Regards
>>> JB
>>>
>>> On 11/15/2011 02:09 PM, Michael Prieß wrote:
>>>>
>>>> Hi,
>>>>
>>>> requesting the jar with wget works, but the response need a lot of time.
>>>>
>>>> Regards,
>>>>
>>>> Michael
>>>>
>>>> 2011/11/15 Jean-Baptiste Onofré<[email protected]>:
>>>>>
>>>>> For the system folder, it's normal: wrapper is an optional feature and
>>>>> not
>>>>> shipped in Karaf by default.
>>>>>
>>>>> It seems taht Karaf is not able to get the wrapper jar file.
>>>>>
>>>>> Could you try a simple wget or curl from where Karaf is installed and
>>>>> check
>>>>> that you can get the file ?
>>>>> I had something similar, but due to a HTTP proxy.
>>>>>
>>>>> Regards
>>>>> JB
>>>>>
>>>>> On 11/15/2011 01:55 PM, Michael Prieß wrote:
>>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> im using no http proxy to access my maven repository, because its in
>>>>>> the same network.
>>>>>>
>>>>>> I looked into the directory
>>>>>> /opt/apache-karaf-2.2.4/system/org/apache/karaf/shell but there is no
>>>>>> directory which have the name org.apache.karaf.shell.wrapper which I
>>>>>> expect.
>>>>>>
>>>>>> After that I started to set Karaf into debug mode.
>>>>>>
>>>>>>  2011-11-15 13:49:12,408 | DEBUG | l Console Thread | Connection
>>>>>>                 | .pax.url.mvn.internal.Connection  166 | 2 -
>>>>>> org.ops4j.pax.url.mvn - 1.2.8 |   Could not download [Version [2.2.4]
>>>>>> from URL
>>>>>>
>>>>>>
>>>>>> [file:/opt/apache-karaf-2.2.4/system/org/apache/karaf/shell/org.apache.karaf.shell.wrapper/2.2.4/org.apache.karaf.shell.wrapper-2.2.4.jar]]
>>>>>> 2011-11-15 13:49:12,408 | DEBUG | l Console Thread | Connection
>>>>>>                | .pax.url.mvn.internal.Connection  166 | 2 -
>>>>>> org.ops4j.pax.url.mvn - 1.2.8 |   Could not download [Version [2.2.4]
>>>>>> from URL
>>>>>>
>>>>>>
>>>>>> [file:/opt/apache-karaf-2.2.4/local-repo/org/apache/karaf/shell/org.apache.karaf.shell.wrapper/2.2.4/org.apache.karaf.shell.wrapper-2.2.4.jar]]
>>>>>> 2011-11-15 13:49:12,409 | DEBUG | l Console Thread | Connection
>>>>>>                | .pax.url.mvn.internal.Connection  260 | 2 -
>>>>>> org.ops4j.pax.url.mvn - 1.2.8 | Collecting versions from repository
>>>>>> [file:/home/viajeo/.m2/repository/,releases=true,snapshots=true]
>>>>>> 2011-11-15 13:49:12,409 | DEBUG | l Console Thread | Connection
>>>>>>                | .pax.url.mvn.internal.Connection  378 | 2 -
>>>>>> org.ops4j.pax.url.mvn - 1.2.8 |   Resolving exact version
>>>>>> 2011-11-15 13:49:12,410 | DEBUG | l Console Thread | Connection
>>>>>>                | .pax.url.mvn.internal.Connection  260 | 2 -
>>>>>> org.ops4j.pax.url.mvn - 1.2.8 | Collecting versions from repository
>>>>>> [http:///myMavenRepro/content/groups/public/
>>>>>> /,releases=true,snapshots=false]
>>>>>> 2011-11-15 13:49:12,410 | DEBUG | l Console Thread | Connection
>>>>>>                | .pax.url.mvn.internal.Connection  378 | 2 -
>>>>>> org.ops4j.pax.url.mvn - 1.2.8 |   Resolving exact version
>>>>>> 2011-11-15 13:49:12,411 | DEBUG | l Console Thread | Connection
>>>>>>                | .pax.url.mvn.internal.Connection  190 | 2 -
>>>>>> org.ops4j.pax.url.mvn - 1.2.8 |   Could not download [Version [2.2.4]
>>>>>> from URL
>>>>>>
>>>>>>
>>>>>> [file:/home/viajeo/.m2/repository/org/apache/karaf/shell/org.apache.karaf.shell.wrapper/2.2.4/org.apache.karaf.shell.wrapper-2.2.4.jar]]
>>>>>>
>>>>>> Seems like Karaf could not download the dependency from my maven
>>>>>> reprository.
>>>>>>
>>>>>> Regards,
>>>>>>
>>>>>> Michael
>>>>>>
>>>>>> 2011/11/15 Jean-Baptiste Onofré<[email protected]>:
>>>>>>>
>>>>>>> Hi Michael,
>>>>>>>
>>>>>>> No, local-repo is only used to uncompress KAR files.
>>>>>>>
>>>>>>> In Pax URL, if you have central in the repositories list, it will go
>>>>>>> there:
>>>>>>> it's the default configuration.
>>>>>>>
>>>>>>> The process is:
>>>>>>> - first, check in the Karaf system local repository (it's a Maven
>>>>>>> repo
>>>>>>> basically)
>>>>>>> - second, check in your .m2/repository
>>>>>>> - finally, check in the repositories defined in the PAX URL property
>>>>>>>
>>>>>>> Could you check in your local repo ?
>>>>>>> Do you use a proxy to access your local maven repo ?
>>>>>>>
>>>>>>> Regards
>>>>>>> JB
>>>>>>>
>>>>>>> On 11/15/2011 01:23 PM, Michael Prieß wrote:
>>>>>>>>
>>>>>>>> Hi,
>>>>>>>>
>>>>>>>> my repro it the last position in the config and I read in the PAX
>>>>>>>> Url
>>>>>>>> Documentation that Pax Url not need a local maven installation to
>>>>>>>> fetch dependencys is this right?
>>>>>>>>
>>>>>>>> Did Karaf store the fetcht dependencys under
>>>>>>>> /opt/apache-karaf-2.2.4/local-repo?  Because there is no file at the
>>>>>>>> moment.
>>>>>>>>
>>>>>>>> I looked into my Nexus Repository and only found the wrapper .pom
>>>>>>>> XML
>>>>>>>> there. Could Pax Url trigger the repository to download the needed
>>>>>>>> dependencys from m2central like maven?
>>>>>>>>
>>>>>>>> Regards,
>>>>>>>>
>>>>>>>> Michael
>>>>>>>>
>>>>>>>> 2011/11/15 Jean-Baptiste Onofré<[email protected]>:
>>>>>>>>>
>>>>>>>>> Hi Michael,
>>>>>>>>>
>>>>>>>>> 1/ could you try to set your repository at the end of the
>>>>>>>>> org.ops4j.pax.url.mvn.repositories property
>>>>>>>>> 2/ I think that the org.apache.karaf.shell.wrapper jar file, in
>>>>>>>>> your
>>>>>>>>> local
>>>>>>>>> m2 repository, has been downloaded as a HTML file. It's certainly a
>>>>>>>>> reply
>>>>>>>>> from your repository.
>>>>>>>>> Could you check (edit) the org.apache.karaf.shell.wrapper jar file
>>>>>>>>> in
>>>>>>>>> your
>>>>>>>>> m2 local folder ? I bet it's not a jar file (a HTML one for
>>>>>>>>> instance).
>>>>>>>>>
>>>>>>>>> Regards
>>>>>>>>> JB
>>>>>>>>>
>>>>>>>>> On 11/15/2011 01:02 PM, Michael Prieß wrote:
>>>>>>>>>>
>>>>>>>>>> Hello,
>>>>>>>>>>
>>>>>>>>>> my Karaf Installation is behind a Firewall, so I have to use my
>>>>>>>>>> own
>>>>>>>>>> Maven Repository in the same subnet (Nexus) to fetch the wrapper
>>>>>>>>>> feature from my nexus.
>>>>>>>>>>
>>>>>>>>>> So I changed the file org.ops4j.pax.url.mvn.cfg, uncommented the
>>>>>>>>>> other
>>>>>>>>>> repository and added my repository:
>>>>>>>>>>
>>>>>>>>>> org.ops4j.pax.url.mvn.repositories= \
>>>>>>>>>>     http://myRepro/content/groups/public/
>>>>>>>>>>
>>>>>>>>>> If I now run a feature:install wrapper I get the following Error:
>>>>>>>>>>
>>>>>>>>>> Manifest not present in the first entry of the zip
>>>>>>>>>> mvn:org.apache.karaf.shell/org.apache.karaf.shell.wrapper/2.2.4
>>>>>>>>>>
>>>>>>>>>> Have anyone a idea how fix this failure?
>>>>>>>>>>
>>>>>>>>>> Regards,
>>>>>>>>>>
>>>>>>>>>> Michael
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> Jean-Baptiste Onofré
>>>>>>>>> [email protected]
>>>>>>>>> http://blog.nanthrax.net
>>>>>>>>> Talend - http://www.talend.com
>>>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> Jean-Baptiste Onofré
>>>>>>> [email protected]
>>>>>>> http://blog.nanthrax.net
>>>>>>> Talend - http://www.talend.com
>>>>>>>
>>>>>
>>>>> --
>>>>> Jean-Baptiste Onofré
>>>>> [email protected]
>>>>> http://blog.nanthrax.net
>>>>> Talend - http://www.talend.com
>>>>>
>>>
>>> --
>>> Jean-Baptiste Onofré
>>> [email protected]
>>> http://blog.nanthrax.net
>>> Talend - http://www.talend.com
>>>
>
> --
> Jean-Baptiste Onofré
> [email protected]
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>

Reply via email to