You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Matthieu Vincent <mv...@gmail.com> on 2016/02/25 10:56:58 UTC

Features : Install using wrap

Hi,

I'm trying to upgrade to Karaf v4.0.4 but i'm facing a problem wityh the
wrap mode for bundle installation.

I've tried to upgrade the definition to (according to documentation
https://karaf.apache.org/manual/latest/developers-guide/creating-bundles.html)
:

<bundle
start-level="80">wrap:mvn:net.sf.ehcache/ehcache-core/2.6.11$Bundle-SymbolicName=ehcache-core&amp;Bundle-Version=2.6.11;</bundle>

But I get the following error when launching Karaf :

Caused by: java.net.MalformedURLException: Unknown protocol: wrap
at java.net.URL.<init>(URL.java:620)[:1.8.0_65]
at java.net.URL.<init>(URL.java:483)[:1.8.0_65]
at java.net.URL.<init>(URL.java:432)[:1.8.0_65]
at
org.apache.karaf.features.internal.download.impl.SimpleDownloadTask.download(SimpleDownloadTask.java:62)[9:org.apache.karaf.features.core:4.0.4]
... 8 more
Caused by: java.lang.IllegalStateException: Unknown protocol: wrap
at
org.apache.felix.framework.URLHandlersStreamHandlerProxy.parseURL(URLHandlersStreamHandlerProxy.java:373)[org.apache.felix.framework-5.4.0.jar:]
at java.net.URL.<init>(URL.java:615)[:1.8.0_65]
... 11 more

Any idea ?
Thanks

Re: Features : Install using wrap

Posted by Matthieu Vincent <mv...@gmail.com>.
ok, sorry

2016-02-27 21:35 GMT+01:00 Łukasz Dywicki <lu...@code-house.org>:

> Done. Next time please add issue so you can refer it in commit message.
> :-)
>
> Best regards,
> Łukasz
> —
> luke@code-house.org
> Twitter: ldywicki
> Blog: http://dywicki.pl
> Code-House - http://code-house.org
>
> Wiadomość napisana przez Matthieu Vincent <mv...@gmail.com> w dniu
> 25 lut 2016, o godz. 16:13:
>
> ping ;)
>
> 2016-02-25 15:49 GMT+01:00 Łukasz Dywicki <lu...@code-house.org>:
>
>> Matthieu,
>> If you have time for making doc update please do, I can review your PR
>> and push it for you. Just ping me when you submit it.
>>
>> Cheers,
>> Lukasz
>>
>>
>> Wiadomość napisana przez Matthieu Vincent <mv...@gmail.com> w dniu
>> 25 lut 2016, o godz. 15:45:
>>
>> Confirm : it worked.
>>
>> I planned to pull request for doc but if Lukasz already has rights, it
>> would be quicker :)
>>
>> 2016-02-25 15:12 GMT+01:00 Achim Nierbeck <bc...@googlemail.com>:
>>
>>> hey Lukasz,
>>>
>>> you have the rights to change it, so go ahead and document it ;)
>>>
>>> regards, Achim
>>>
>>>
>>> 2016-02-25 15:10 GMT+01:00 Łukasz Dywicki <lu...@code-house.org>:
>>>
>>>> Hey Achim,
>>>> Would be great to get a section in docs about that. I’ve found just
>>>> blog post [1] which is describing that, but I belive best place for that is
>>>> official guide.
>>>>
>>>> [1] http://blog.tonyganchev.com/beginning-karaf/
>>>>
>>>> Cheers,
>>>> Łukasz
>>>> --
>>>> luke@code-house.org
>>>> Twitter: ldywicki
>>>> Blog: http://dywicki.pl
>>>> Code-House - http://code-house.org
>>>>
>>>> Wiadomość napisana przez Achim Nierbeck <bc...@googlemail.com> w
>>>> dniu 25 lut 2016, o godz. 11:02:
>>>>
>>>> yes, you need to add a dependency to your feature with the wrap
>>>> feature:
>>>>
>>>> <feature prerequisit="true">wrap</feature>
>>>>
>>>> in your feature definition.
>>>> If you have a custom build, make sure that the karaf std. features are
>>>> "grouped" via brackets "(feature1, feature2, ...),(custom-feature)"
>>>> in your karaf-maven-plugin section.
>>>>
>>>> regards, Achim
>>>>
>>>>
>>>> 2016-02-25 10:56 GMT+01:00 Matthieu Vincent <mv...@gmail.com>:
>>>>
>>>>> Hi,
>>>>>
>>>>> I'm trying to upgrade to Karaf v4.0.4 but i'm facing a problem wityh
>>>>> the wrap mode for bundle installation.
>>>>>
>>>>> I've tried to upgrade the definition to (according to documentation
>>>>> https://karaf.apache.org/manual/latest/developers-guide/creating-bundles.html)
>>>>> :
>>>>>
>>>>> <bundle
>>>>> start-level="80">wrap:mvn:net.sf.ehcache/ehcache-core/2.6.11$Bundle-SymbolicName=ehcache-core&amp;Bundle-Version=2.6.11;</bundle>
>>>>>
>>>>> But I get the following error when launching Karaf :
>>>>>
>>>>> Caused by: java.net.MalformedURLException: Unknown protocol: wrap
>>>>> at java.net.URL.<init>(URL.java:620)[:1.8.0_65]
>>>>> at java.net.URL.<init>(URL.java:483)[:1.8.0_65]
>>>>> at java.net.URL.<init>(URL.java:432)[:1.8.0_65]
>>>>> at
>>>>> org.apache.karaf.features.internal.download.impl.SimpleDownloadTask.download(SimpleDownloadTask.java:62)[9:org.apache.karaf.features.core:4.0.4]
>>>>> ... 8 more
>>>>> Caused by: java.lang.IllegalStateException: Unknown protocol: wrap
>>>>> at
>>>>> org.apache.felix.framework.URLHandlersStreamHandlerProxy.parseURL(URLHandlersStreamHandlerProxy.java:373)[org.apache.felix.framework-5.4.0.jar:]
>>>>> at java.net.URL.<init>(URL.java:615)[:1.8.0_65]
>>>>> ... 11 more
>>>>>
>>>>> Any idea ?
>>>>> Thanks
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>>
>>>> Apache Member
>>>> Apache Karaf <http://karaf.apache.org/> Committer & PMC
>>>> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
>>>> Committer & Project Lead
>>>> blog <http://notizblog.nierbeck.de/>
>>>> Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
>>>>
>>>> Software Architect / Project Manager / Scrum Master
>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>>
>>> Apache Member
>>> Apache Karaf <http://karaf.apache.org/> Committer & PMC
>>> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer
>>> & Project Lead
>>> blog <http://notizblog.nierbeck.de/>
>>> Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
>>>
>>> Software Architect / Project Manager / Scrum Master
>>>
>>>
>>
>>
>
>

Re: Features : Install using wrap

Posted by Łukasz Dywicki <lu...@code-house.org>.
Done. Next time please add issue so you can refer it in commit message. :-) 

Best regards,
Łukasz
—
luke@code-house.org
Twitter: ldywicki
Blog: http://dywicki.pl
Code-House - http://code-house.org

> Wiadomość napisana przez Matthieu Vincent <mv...@gmail.com> w dniu 25 lut 2016, o godz. 16:13:
> 
> ping ;)
> 
> 2016-02-25 15:49 GMT+01:00 Łukasz Dywicki <luke@code-house.org <ma...@code-house.org>>:
> Matthieu,
> If you have time for making doc update please do, I can review your PR and push it for you. Just ping me when you submit it.
> 
> Cheers,
> Lukasz
> 
> 
>> Wiadomość napisana przez Matthieu Vincent <mvincent.it@gmail.com <ma...@gmail.com>> w dniu 25 lut 2016, o godz. 15:45:
>> 
>> Confirm : it worked.
>> 
>> I planned to pull request for doc but if Lukasz already has rights, it would be quicker :)
>> 
>> 2016-02-25 15:12 GMT+01:00 Achim Nierbeck <bcanhome@googlemail.com <ma...@googlemail.com>>:
>> hey Lukasz, 
>> 
>> you have the rights to change it, so go ahead and document it ;)
>> 
>> regards, Achim 
>> 
>> 
>> 2016-02-25 15:10 GMT+01:00 Łukasz Dywicki <luke@code-house.org <ma...@code-house.org>>:
>> Hey Achim,
>> Would be great to get a section in docs about that. I’ve found just blog post [1] which is describing that, but I belive best place for that is official guide.
>> 
>> [1] http://blog.tonyganchev.com/beginning-karaf/ <http://blog.tonyganchev.com/beginning-karaf/>
>> 
>> Cheers,
>> Łukasz
>> --
>> luke@code-house.org <ma...@code-house.org>
>> Twitter: ldywicki
>> Blog: http://dywicki.pl <http://dywicki.pl/>
>> Code-House - http://code-house.org <http://code-house.org/>
>>> Wiadomość napisana przez Achim Nierbeck <bcanhome@googlemail.com <ma...@googlemail.com>> w dniu 25 lut 2016, o godz. 11:02:
>>> 
>>> yes, you need to add a dependency to your feature with the wrap feature: 
>>> 
>>> <feature prerequisit="true">wrap</feature> 
>>> 
>>> in your feature definition. 
>>> If you have a custom build, make sure that the karaf std. features are "grouped" via brackets "(feature1, feature2, ...),(custom-feature)" 
>>> in your karaf-maven-plugin section. 
>>> 
>>> regards, Achim 
>>> 
>>> 
>>> 2016-02-25 10:56 GMT+01:00 Matthieu Vincent <mvincent.it@gmail.com <ma...@gmail.com>>:
>>> Hi,
>>> 
>>> I'm trying to upgrade to Karaf v4.0.4 but i'm facing a problem wityh the wrap mode for bundle installation.
>>> 
>>> I've tried to upgrade the definition to (according to documentation https://karaf.apache.org/manual/latest/developers-guide/creating-bundles.html <https://karaf.apache.org/manual/latest/developers-guide/creating-bundles.html>) : 
>>> 
>>> <bundle start-level="80">wrap:mvn:net.sf.ehcache/ehcache-core/2.6.11$Bundle-SymbolicName=ehcache-core&amp;Bundle-Version=2.6.11;</bundle>
>>> 
>>> But I get the following error when launching Karaf : 
>>> 
>>> Caused by: java.net.MalformedURLException: Unknown protocol: wrap
>>> 	at java.net.URL.<init>(URL.java:620)[:1.8.0_65]
>>> 	at java.net.URL.<init>(URL.java:483)[:1.8.0_65]
>>> 	at java.net.URL.<init>(URL.java:432)[:1.8.0_65]
>>> 	at org.apache.karaf.features.internal.download.impl.SimpleDownloadTask.download(SimpleDownloadTask.java:62)[9:org.apache.karaf.features.core:4.0.4]
>>> 	... 8 more
>>> Caused by: java.lang.IllegalStateException: Unknown protocol: wrap
>>> 	at org.apache.felix.framework.URLHandlersStreamHandlerProxy.parseURL(URLHandlersStreamHandlerProxy.java:373)[org.apache.felix.framework-5.4.0.jar:]
>>> 	at java.net.URL.<init>(URL.java:615)[:1.8.0_65]
>>> 	... 11 more
>>> 
>>> Any idea ?
>>> Thanks
>>> 
>>> 
>>> 
>>> -- 
>>> 
>>> Apache Member
>>> Apache Karaf <http://karaf.apache.org/ <http://karaf.apache.org/>> Committer & PMC
>>> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/ <http://wiki.ops4j.org/display/paxweb/Pax+Web/>> Committer & Project Lead
>>> blog <http://notizblog.nierbeck.de/ <http://notizblog.nierbeck.de/>>
>>> Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS <http://bit.ly/1ps9rkS>>
>>> 
>>> Software Architect / Project Manager / Scrum Master 
>>> 
>> 
>> 
>> 
>> 
>> -- 
>> 
>> Apache Member
>> Apache Karaf <http://karaf.apache.org/ <http://karaf.apache.org/>> Committer & PMC
>> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/ <http://wiki.ops4j.org/display/paxweb/Pax+Web/>> Committer & Project Lead
>> blog <http://notizblog.nierbeck.de/ <http://notizblog.nierbeck.de/>>
>> Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS <http://bit.ly/1ps9rkS>>
>> 
>> Software Architect / Project Manager / Scrum Master 
>> 
>> 
> 
> 


Re: Features : Install using wrap

Posted by Matthieu Vincent <mv...@gmail.com>.
ping ;)

2016-02-25 15:49 GMT+01:00 Łukasz Dywicki <lu...@code-house.org>:

> Matthieu,
> If you have time for making doc update please do, I can review your PR and
> push it for you. Just ping me when you submit it.
>
> Cheers,
> Lukasz
>
>
> Wiadomość napisana przez Matthieu Vincent <mv...@gmail.com> w dniu
> 25 lut 2016, o godz. 15:45:
>
> Confirm : it worked.
>
> I planned to pull request for doc but if Lukasz already has rights, it
> would be quicker :)
>
> 2016-02-25 15:12 GMT+01:00 Achim Nierbeck <bc...@googlemail.com>:
>
>> hey Lukasz,
>>
>> you have the rights to change it, so go ahead and document it ;)
>>
>> regards, Achim
>>
>>
>> 2016-02-25 15:10 GMT+01:00 Łukasz Dywicki <lu...@code-house.org>:
>>
>>> Hey Achim,
>>> Would be great to get a section in docs about that. I’ve found just blog
>>> post [1] which is describing that, but I belive best place for that is
>>> official guide.
>>>
>>> [1] http://blog.tonyganchev.com/beginning-karaf/
>>>
>>> Cheers,
>>> Łukasz
>>> --
>>> luke@code-house.org
>>> Twitter: ldywicki
>>> Blog: http://dywicki.pl
>>> Code-House - http://code-house.org
>>>
>>> Wiadomość napisana przez Achim Nierbeck <bc...@googlemail.com> w
>>> dniu 25 lut 2016, o godz. 11:02:
>>>
>>> yes, you need to add a dependency to your feature with the wrap feature:
>>>
>>> <feature prerequisit="true">wrap</feature>
>>>
>>> in your feature definition.
>>> If you have a custom build, make sure that the karaf std. features are
>>> "grouped" via brackets "(feature1, feature2, ...),(custom-feature)"
>>> in your karaf-maven-plugin section.
>>>
>>> regards, Achim
>>>
>>>
>>> 2016-02-25 10:56 GMT+01:00 Matthieu Vincent <mv...@gmail.com>:
>>>
>>>> Hi,
>>>>
>>>> I'm trying to upgrade to Karaf v4.0.4 but i'm facing a problem wityh
>>>> the wrap mode for bundle installation.
>>>>
>>>> I've tried to upgrade the definition to (according to documentation
>>>> https://karaf.apache.org/manual/latest/developers-guide/creating-bundles.html)
>>>> :
>>>>
>>>> <bundle
>>>> start-level="80">wrap:mvn:net.sf.ehcache/ehcache-core/2.6.11$Bundle-SymbolicName=ehcache-core&amp;Bundle-Version=2.6.11;</bundle>
>>>>
>>>> But I get the following error when launching Karaf :
>>>>
>>>> Caused by: java.net.MalformedURLException: Unknown protocol: wrap
>>>> at java.net.URL.<init>(URL.java:620)[:1.8.0_65]
>>>> at java.net.URL.<init>(URL.java:483)[:1.8.0_65]
>>>> at java.net.URL.<init>(URL.java:432)[:1.8.0_65]
>>>> at
>>>> org.apache.karaf.features.internal.download.impl.SimpleDownloadTask.download(SimpleDownloadTask.java:62)[9:org.apache.karaf.features.core:4.0.4]
>>>> ... 8 more
>>>> Caused by: java.lang.IllegalStateException: Unknown protocol: wrap
>>>> at
>>>> org.apache.felix.framework.URLHandlersStreamHandlerProxy.parseURL(URLHandlersStreamHandlerProxy.java:373)[org.apache.felix.framework-5.4.0.jar:]
>>>> at java.net.URL.<init>(URL.java:615)[:1.8.0_65]
>>>> ... 11 more
>>>>
>>>> Any idea ?
>>>> Thanks
>>>>
>>>
>>>
>>>
>>> --
>>>
>>> Apache Member
>>> Apache Karaf <http://karaf.apache.org/> Committer & PMC
>>> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer
>>> & Project Lead
>>> blog <http://notizblog.nierbeck.de/>
>>> Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
>>>
>>> Software Architect / Project Manager / Scrum Master
>>>
>>>
>>>
>>
>>
>> --
>>
>> Apache Member
>> Apache Karaf <http://karaf.apache.org/> Committer & PMC
>> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer
>> & Project Lead
>> blog <http://notizblog.nierbeck.de/>
>> Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
>>
>> Software Architect / Project Manager / Scrum Master
>>
>>
>
>

Re: Features : Install using wrap

Posted by Łukasz Dywicki <lu...@code-house.org>.
Matthieu,
If you have time for making doc update please do, I can review your PR and push it for you. Just ping me when you submit it.

Cheers,
Lukasz


> Wiadomość napisana przez Matthieu Vincent <mv...@gmail.com> w dniu 25 lut 2016, o godz. 15:45:
> 
> Confirm : it worked.
> 
> I planned to pull request for doc but if Lukasz already has rights, it would be quicker :)
> 
> 2016-02-25 15:12 GMT+01:00 Achim Nierbeck <bcanhome@googlemail.com <ma...@googlemail.com>>:
> hey Lukasz, 
> 
> you have the rights to change it, so go ahead and document it ;)
> 
> regards, Achim 
> 
> 
> 2016-02-25 15:10 GMT+01:00 Łukasz Dywicki <luke@code-house.org <ma...@code-house.org>>:
> Hey Achim,
> Would be great to get a section in docs about that. I’ve found just blog post [1] which is describing that, but I belive best place for that is official guide.
> 
> [1] http://blog.tonyganchev.com/beginning-karaf/ <http://blog.tonyganchev.com/beginning-karaf/>
> 
> Cheers,
> Łukasz
> --
> luke@code-house.org <ma...@code-house.org>
> Twitter: ldywicki
> Blog: http://dywicki.pl <http://dywicki.pl/>
> Code-House - http://code-house.org <http://code-house.org/>
>> Wiadomość napisana przez Achim Nierbeck <bcanhome@googlemail.com <ma...@googlemail.com>> w dniu 25 lut 2016, o godz. 11:02:
>> 
>> yes, you need to add a dependency to your feature with the wrap feature: 
>> 
>> <feature prerequisit="true">wrap</feature> 
>> 
>> in your feature definition. 
>> If you have a custom build, make sure that the karaf std. features are "grouped" via brackets "(feature1, feature2, ...),(custom-feature)" 
>> in your karaf-maven-plugin section. 
>> 
>> regards, Achim 
>> 
>> 
>> 2016-02-25 10:56 GMT+01:00 Matthieu Vincent <mvincent.it@gmail.com <ma...@gmail.com>>:
>> Hi,
>> 
>> I'm trying to upgrade to Karaf v4.0.4 but i'm facing a problem wityh the wrap mode for bundle installation.
>> 
>> I've tried to upgrade the definition to (according to documentation https://karaf.apache.org/manual/latest/developers-guide/creating-bundles.html <https://karaf.apache.org/manual/latest/developers-guide/creating-bundles.html>) : 
>> 
>> <bundle start-level="80">wrap:mvn:net.sf.ehcache/ehcache-core/2.6.11$Bundle-SymbolicName=ehcache-core&amp;Bundle-Version=2.6.11;</bundle>
>> 
>> But I get the following error when launching Karaf : 
>> 
>> Caused by: java.net.MalformedURLException: Unknown protocol: wrap
>> 	at java.net.URL.<init>(URL.java:620)[:1.8.0_65]
>> 	at java.net.URL.<init>(URL.java:483)[:1.8.0_65]
>> 	at java.net.URL.<init>(URL.java:432)[:1.8.0_65]
>> 	at org.apache.karaf.features.internal.download.impl.SimpleDownloadTask.download(SimpleDownloadTask.java:62)[9:org.apache.karaf.features.core:4.0.4]
>> 	... 8 more
>> Caused by: java.lang.IllegalStateException: Unknown protocol: wrap
>> 	at org.apache.felix.framework.URLHandlersStreamHandlerProxy.parseURL(URLHandlersStreamHandlerProxy.java:373)[org.apache.felix.framework-5.4.0.jar:]
>> 	at java.net.URL.<init>(URL.java:615)[:1.8.0_65]
>> 	... 11 more
>> 
>> Any idea ?
>> Thanks
>> 
>> 
>> 
>> -- 
>> 
>> Apache Member
>> Apache Karaf <http://karaf.apache.org/ <http://karaf.apache.org/>> Committer & PMC
>> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/ <http://wiki.ops4j.org/display/paxweb/Pax+Web/>> Committer & Project Lead
>> blog <http://notizblog.nierbeck.de/ <http://notizblog.nierbeck.de/>>
>> Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS <http://bit.ly/1ps9rkS>>
>> 
>> Software Architect / Project Manager / Scrum Master 
>> 
> 
> 
> 
> 
> -- 
> 
> Apache Member
> Apache Karaf <http://karaf.apache.org/ <http://karaf.apache.org/>> Committer & PMC
> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/ <http://wiki.ops4j.org/display/paxweb/Pax+Web/>> Committer & Project Lead
> blog <http://notizblog.nierbeck.de/ <http://notizblog.nierbeck.de/>>
> Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS <http://bit.ly/1ps9rkS>>
> 
> Software Architect / Project Manager / Scrum Master 
> 
> 


Re: Features : Install using wrap

Posted by Matthieu Vincent <mv...@gmail.com>.
Confirm : it worked.

I planned to pull request for doc but if Lukasz already has rights, it
would be quicker :)

2016-02-25 15:12 GMT+01:00 Achim Nierbeck <bc...@googlemail.com>:

> hey Lukasz,
>
> you have the rights to change it, so go ahead and document it ;)
>
> regards, Achim
>
>
> 2016-02-25 15:10 GMT+01:00 Łukasz Dywicki <lu...@code-house.org>:
>
>> Hey Achim,
>> Would be great to get a section in docs about that. I’ve found just blog
>> post [1] which is describing that, but I belive best place for that is
>> official guide.
>>
>> [1] http://blog.tonyganchev.com/beginning-karaf/
>>
>> Cheers,
>> Łukasz
>> --
>> luke@code-house.org
>> Twitter: ldywicki
>> Blog: http://dywicki.pl
>> Code-House - http://code-house.org
>>
>> Wiadomość napisana przez Achim Nierbeck <bc...@googlemail.com> w dniu
>> 25 lut 2016, o godz. 11:02:
>>
>> yes, you need to add a dependency to your feature with the wrap feature:
>>
>> <feature prerequisit="true">wrap</feature>
>>
>> in your feature definition.
>> If you have a custom build, make sure that the karaf std. features are
>> "grouped" via brackets "(feature1, feature2, ...),(custom-feature)"
>> in your karaf-maven-plugin section.
>>
>> regards, Achim
>>
>>
>> 2016-02-25 10:56 GMT+01:00 Matthieu Vincent <mv...@gmail.com>:
>>
>>> Hi,
>>>
>>> I'm trying to upgrade to Karaf v4.0.4 but i'm facing a problem wityh the
>>> wrap mode for bundle installation.
>>>
>>> I've tried to upgrade the definition to (according to documentation
>>> https://karaf.apache.org/manual/latest/developers-guide/creating-bundles.html)
>>> :
>>>
>>> <bundle
>>> start-level="80">wrap:mvn:net.sf.ehcache/ehcache-core/2.6.11$Bundle-SymbolicName=ehcache-core&amp;Bundle-Version=2.6.11;</bundle>
>>>
>>> But I get the following error when launching Karaf :
>>>
>>> Caused by: java.net.MalformedURLException: Unknown protocol: wrap
>>> at java.net.URL.<init>(URL.java:620)[:1.8.0_65]
>>> at java.net.URL.<init>(URL.java:483)[:1.8.0_65]
>>> at java.net.URL.<init>(URL.java:432)[:1.8.0_65]
>>> at
>>> org.apache.karaf.features.internal.download.impl.SimpleDownloadTask.download(SimpleDownloadTask.java:62)[9:org.apache.karaf.features.core:4.0.4]
>>> ... 8 more
>>> Caused by: java.lang.IllegalStateException: Unknown protocol: wrap
>>> at
>>> org.apache.felix.framework.URLHandlersStreamHandlerProxy.parseURL(URLHandlersStreamHandlerProxy.java:373)[org.apache.felix.framework-5.4.0.jar:]
>>> at java.net.URL.<init>(URL.java:615)[:1.8.0_65]
>>> ... 11 more
>>>
>>> Any idea ?
>>> Thanks
>>>
>>
>>
>>
>> --
>>
>> Apache Member
>> Apache Karaf <http://karaf.apache.org/> Committer & PMC
>> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer
>> & Project Lead
>> blog <http://notizblog.nierbeck.de/>
>> Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
>>
>> Software Architect / Project Manager / Scrum Master
>>
>>
>>
>
>
> --
>
> Apache Member
> Apache Karaf <http://karaf.apache.org/> Committer & PMC
> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
> Project Lead
> blog <http://notizblog.nierbeck.de/>
> Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
>
> Software Architect / Project Manager / Scrum Master
>
>

Re: Features : Install using wrap

Posted by Achim Nierbeck <bc...@googlemail.com>.
hey Lukasz,

you have the rights to change it, so go ahead and document it ;)

regards, Achim


2016-02-25 15:10 GMT+01:00 Łukasz Dywicki <lu...@code-house.org>:

> Hey Achim,
> Would be great to get a section in docs about that. I’ve found just blog
> post [1] which is describing that, but I belive best place for that is
> official guide.
>
> [1] http://blog.tonyganchev.com/beginning-karaf/
>
> Cheers,
> Łukasz
> --
> luke@code-house.org
> Twitter: ldywicki
> Blog: http://dywicki.pl
> Code-House - http://code-house.org
>
> Wiadomość napisana przez Achim Nierbeck <bc...@googlemail.com> w dniu
> 25 lut 2016, o godz. 11:02:
>
> yes, you need to add a dependency to your feature with the wrap feature:
>
> <feature prerequisit="true">wrap</feature>
>
> in your feature definition.
> If you have a custom build, make sure that the karaf std. features are
> "grouped" via brackets "(feature1, feature2, ...),(custom-feature)"
> in your karaf-maven-plugin section.
>
> regards, Achim
>
>
> 2016-02-25 10:56 GMT+01:00 Matthieu Vincent <mv...@gmail.com>:
>
>> Hi,
>>
>> I'm trying to upgrade to Karaf v4.0.4 but i'm facing a problem wityh the
>> wrap mode for bundle installation.
>>
>> I've tried to upgrade the definition to (according to documentation
>> https://karaf.apache.org/manual/latest/developers-guide/creating-bundles.html)
>> :
>>
>> <bundle
>> start-level="80">wrap:mvn:net.sf.ehcache/ehcache-core/2.6.11$Bundle-SymbolicName=ehcache-core&amp;Bundle-Version=2.6.11;</bundle>
>>
>> But I get the following error when launching Karaf :
>>
>> Caused by: java.net.MalformedURLException: Unknown protocol: wrap
>> at java.net.URL.<init>(URL.java:620)[:1.8.0_65]
>> at java.net.URL.<init>(URL.java:483)[:1.8.0_65]
>> at java.net.URL.<init>(URL.java:432)[:1.8.0_65]
>> at
>> org.apache.karaf.features.internal.download.impl.SimpleDownloadTask.download(SimpleDownloadTask.java:62)[9:org.apache.karaf.features.core:4.0.4]
>> ... 8 more
>> Caused by: java.lang.IllegalStateException: Unknown protocol: wrap
>> at
>> org.apache.felix.framework.URLHandlersStreamHandlerProxy.parseURL(URLHandlersStreamHandlerProxy.java:373)[org.apache.felix.framework-5.4.0.jar:]
>> at java.net.URL.<init>(URL.java:615)[:1.8.0_65]
>> ... 11 more
>>
>> Any idea ?
>> Thanks
>>
>
>
>
> --
>
> Apache Member
> Apache Karaf <http://karaf.apache.org/> Committer & PMC
> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
> Project Lead
> blog <http://notizblog.nierbeck.de/>
> Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
>
> Software Architect / Project Manager / Scrum Master
>
>
>


-- 

Apache Member
Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
Project Lead
blog <http://notizblog.nierbeck.de/>
Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>

Software Architect / Project Manager / Scrum Master

Re: Features : Install using wrap

Posted by Łukasz Dywicki <lu...@code-house.org>.
Hey Achim,
Would be great to get a section in docs about that. I’ve found just blog post [1] which is describing that, but I belive best place for that is official guide.

[1] http://blog.tonyganchev.com/beginning-karaf/ <http://blog.tonyganchev.com/beginning-karaf/>

Cheers,
Łukasz
--
luke@code-house.org
Twitter: ldywicki
Blog: http://dywicki.pl
Code-House - http://code-house.org

> Wiadomość napisana przez Achim Nierbeck <bc...@googlemail.com> w dniu 25 lut 2016, o godz. 11:02:
> 
> yes, you need to add a dependency to your feature with the wrap feature: 
> 
> <feature prerequisit="true">wrap</feature> 
> 
> in your feature definition. 
> If you have a custom build, make sure that the karaf std. features are "grouped" via brackets "(feature1, feature2, ...),(custom-feature)" 
> in your karaf-maven-plugin section. 
> 
> regards, Achim 
> 
> 
> 2016-02-25 10:56 GMT+01:00 Matthieu Vincent <mvincent.it@gmail.com <ma...@gmail.com>>:
> Hi,
> 
> I'm trying to upgrade to Karaf v4.0.4 but i'm facing a problem wityh the wrap mode for bundle installation.
> 
> I've tried to upgrade the definition to (according to documentation https://karaf.apache.org/manual/latest/developers-guide/creating-bundles.html <https://karaf.apache.org/manual/latest/developers-guide/creating-bundles.html>) : 
> 
> <bundle start-level="80">wrap:mvn:net.sf.ehcache/ehcache-core/2.6.11$Bundle-SymbolicName=ehcache-core&amp;Bundle-Version=2.6.11;</bundle>
> 
> But I get the following error when launching Karaf : 
> 
> Caused by: java.net.MalformedURLException: Unknown protocol: wrap
> 	at java.net.URL.<init>(URL.java:620)[:1.8.0_65]
> 	at java.net.URL.<init>(URL.java:483)[:1.8.0_65]
> 	at java.net.URL.<init>(URL.java:432)[:1.8.0_65]
> 	at org.apache.karaf.features.internal.download.impl.SimpleDownloadTask.download(SimpleDownloadTask.java:62)[9:org.apache.karaf.features.core:4.0.4]
> 	... 8 more
> Caused by: java.lang.IllegalStateException: Unknown protocol: wrap
> 	at org.apache.felix.framework.URLHandlersStreamHandlerProxy.parseURL(URLHandlersStreamHandlerProxy.java:373)[org.apache.felix.framework-5.4.0.jar:]
> 	at java.net.URL.<init>(URL.java:615)[:1.8.0_65]
> 	... 11 more
> 
> Any idea ?
> Thanks
> 
> 
> 
> -- 
> 
> Apache Member
> Apache Karaf <http://karaf.apache.org/ <http://karaf.apache.org/>> Committer & PMC
> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/ <http://wiki.ops4j.org/display/paxweb/Pax+Web/>> Committer & Project Lead
> blog <http://notizblog.nierbeck.de/ <http://notizblog.nierbeck.de/>>
> Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS <http://bit.ly/1ps9rkS>>
> 
> Software Architect / Project Manager / Scrum Master 
> 


Re: Features : Install using wrap

Posted by Achim Nierbeck <bc...@googlemail.com>.
yes, you need to add a dependency to your feature with the wrap feature:

<feature prerequisit="true">wrap</feature>

in your feature definition.
If you have a custom build, make sure that the karaf std. features are
"grouped" via brackets "(feature1, feature2, ...),(custom-feature)"
in your karaf-maven-plugin section.

regards, Achim


2016-02-25 10:56 GMT+01:00 Matthieu Vincent <mv...@gmail.com>:

> Hi,
>
> I'm trying to upgrade to Karaf v4.0.4 but i'm facing a problem wityh the
> wrap mode for bundle installation.
>
> I've tried to upgrade the definition to (according to documentation
> https://karaf.apache.org/manual/latest/developers-guide/creating-bundles.html)
> :
>
> <bundle
> start-level="80">wrap:mvn:net.sf.ehcache/ehcache-core/2.6.11$Bundle-SymbolicName=ehcache-core&amp;Bundle-Version=2.6.11;</bundle>
>
> But I get the following error when launching Karaf :
>
> Caused by: java.net.MalformedURLException: Unknown protocol: wrap
> at java.net.URL.<init>(URL.java:620)[:1.8.0_65]
> at java.net.URL.<init>(URL.java:483)[:1.8.0_65]
> at java.net.URL.<init>(URL.java:432)[:1.8.0_65]
> at
> org.apache.karaf.features.internal.download.impl.SimpleDownloadTask.download(SimpleDownloadTask.java:62)[9:org.apache.karaf.features.core:4.0.4]
> ... 8 more
> Caused by: java.lang.IllegalStateException: Unknown protocol: wrap
> at
> org.apache.felix.framework.URLHandlersStreamHandlerProxy.parseURL(URLHandlersStreamHandlerProxy.java:373)[org.apache.felix.framework-5.4.0.jar:]
> at java.net.URL.<init>(URL.java:615)[:1.8.0_65]
> ... 11 more
>
> Any idea ?
> Thanks
>



-- 

Apache Member
Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
Project Lead
blog <http://notizblog.nierbeck.de/>
Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>

Software Architect / Project Manager / Scrum Master