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

Reply via email to