It occurs at runtime. I have a very simple maven project that only
publishes features.xml to a local maven repo and then I do these steps:
1) feature:repo-add mvn:test.test/test43/0.0.1/xml/features
2) feature:install test-http2

Jakub


On Sun, Apr 19, 2020 at 5:39 PM Jean-Baptiste Onofre <[email protected]>
wrote:

> Hi,
>
> Is it at runtime or when you build a custom distribution ?
>
> Unknown mvn protocol means that pax-url-aether is not there probably
> (maybe due to a refresh).
>
> Let me try to reproduce.
>
> Regards
> JB
>
> Le 19 avr. 2020 à 11:47, Jakub Herkel <[email protected]> a écrit :
>
> I have tried karaf 4.3.0 RC1 (OpenJDK 64-Bit Server VM version 11.0.6+10)
> with pax-jetty-http2 feature and there is something wrong when it is used
> together with a configFile.
>
> After some investigation I have found a very simple feature.xml for
> reproducing of problem:
> <?xml version="1.0" encoding="UTF-8"?>
> <features xmlns="http://karaf.apache.org/xmlns/features/v1.3.0";
>           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>           xsi:schemaLocation="
> http://karaf.apache.org/xmlns/features/v1.3.0";
>           name="test">
>
>   <feature name="test-http2">
>     <configfile finalname="${karaf.etc}/test.test" override="true">
>       mvn:org.apache.karaf.features/standard/4.3.0.RC1/xml/features
>     </configfile>
> <!--    <feature>pax-jetty</feature>-->
>     <feature>pax-jetty-http2</feature>
>     <!--    <feature>war</feature>   -->
>   </feature>
>
> </features>
>
> when I tried to deploy this feature I have got this exception :
> org.apache.karaf.features.core
> [org.apache.karaf.features.internal.service.FeaturesServiceImpl] ERROR :
> Unknown protocol: mvn
> java.net.MalformedURLException: Unknown protocol: mvn
> at java.net.URL.<init>(URL.java:645)
> at java.net.URL.<init>(URL.java:508)
> at java.net.URL.<init>(URL.java:457)
> at
> org.apache.karaf.features.internal.service.FeatureConfigInstaller.installConfigurationFile(FeatureConfigInstaller.java:272)
> at
> org.apache.karaf.features.internal.service.FeatureConfigInstaller.installFeatureConfigs(FeatureConfigInstaller.java:159)
> at
> org.apache.karaf.features.internal.service.BundleInstallSupportImpl.installConfigs(BundleInstallSupportImpl.java:301)
> at
> org.apache.karaf.features.internal.service.FeaturesServiceImpl.installConfigs(FeaturesServiceImpl.java:1178)
> at
> org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:953)
> at
> org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1062)
> at
> org.apache.karaf.features.internal.service.FeaturesServiceImpl.lambda$doProvisionInThread$13(FeaturesServiceImpl.java:998)
> at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
> at java.lang.Thread.run(Thread.java:748)
> Caused by: java.lang.IllegalStateException: Unknown protocol: mvn
> at
> org.apache.felix.framework.URLHandlersStreamHandlerProxy.parseURL(URLHandlersStreamHandlerProxy.java:373)
> at java.net.URL.<init>(URL.java:640)
> ... 13 more
>
> In karaf.log I could see :
> 2020-04-19T11:27:35,009 | INFO  | pipe-feature:install test-http2 |
> FeaturesServiceImpl              | 11 - org.apache.karaf.features.core -
> 4.3.0.RC1 | Adding features: test-http2/[0,0.0.0]
> 2020-04-19T11:27:35,120 | INFO  | features-3-thread-1 |
> FeaturesServiceImpl              | 11 - org.apache.karaf.features.core -
> 4.3.0.RC1 | Changes to perform:
> 2020-04-19T11:27:35,120 | INFO  | features-3-thread-1 |
> FeaturesServiceImpl              | 11 - org.apache.karaf.features.core -
> 4.3.0.RC1 |   Region: root
> 2020-04-19T11:27:35,121 | INFO  | features-3-thread-1 |
> FeaturesServiceImpl              | 11 - org.apache.karaf.features.core -
> 4.3.0.RC1 |     Bundles to install:
> 2020-04-19T11:27:35,121 | INFO  | features-3-thread-1 |
> FeaturesServiceImpl              | 11 - org.apache.karaf.features.core -
> 4.3.0.RC1 |       mvn:javax.servlet/javax.servlet-api/3.1.0
> 2020-04-19T11:27:35,122 | INFO  | features-3-thread-1 |
> FeaturesServiceImpl              | 11 - org.apache.karaf.features.core -
> 4.3.0.RC1 |
> mvn:org.apache.aries.spifly/org.apache.aries.spifly.dynamic.bundle/1.2.3
> 2020-04-19T11:27:35,122 | INFO  | features-3-thread-1 |
> FeaturesServiceImpl              | 11 - org.apache.karaf.features.core -
> 4.3.0.RC1 |       mvn:org.apache.geronimo.specs/geronimo-jaspic_1.0_spec/1.1
> 2020-04-19T11:27:35,122 | INFO  | features-3-thread-1 |
> FeaturesServiceImpl              | 11 - org.apache.karaf.features.core -
> 4.3.0.RC1 |       mvn:org.apache.geronimo.specs/geronimo-jta_1.1_spec/1.1.1
> 2020-04-19T11:27:35,122 | INFO  | features-3-thread-1 |
> FeaturesServiceImpl              | 11 - org.apache.karaf.features.core -
> 4.3.0.RC1 |       mvn:org.eclipse.jetty.alpn/alpn-api/1.1.2.v20150522
> 2020-04-19T11:27:35,123 | INFO  | features-3-thread-1 |
> FeaturesServiceImpl              | 11 - org.apache.karaf.features.core -
> 4.3.0.RC1 |       mvn:org.eclipse.jetty/jetty-alpn-server/9.4.22.v20191022
> 2020-04-19T11:27:35,123 | INFO  | features-3-thread-1 |
> FeaturesServiceImpl              | 11 - org.apache.karaf.features.core -
> 4.3.0.RC1 |       mvn:org.eclipse.jetty/jetty-client/9.4.22.v20191022
> 2020-04-19T11:27:35,124 | INFO  | features-3-thread-1 |
> FeaturesServiceImpl              | 11 - org.apache.karaf.features.core -
> 4.3.0.RC1 |       mvn:org.eclipse.jetty/jetty-continuation/9.4.22.v20191022
> 2020-04-19T11:27:35,124 | INFO  | features-3-thread-1 |
> FeaturesServiceImpl              | 11 - org.apache.karaf.features.core -
> 4.3.0.RC1 |       mvn:org.eclipse.jetty/jetty-deploy/9.4.22.v20191022
> 2020-04-19T11:27:35,124 | INFO  | features-3-thread-1 |
> FeaturesServiceImpl              | 11 - org.apache.karaf.features.core -
> 4.3.0.RC1 |       mvn:org.eclipse.jetty/jetty-http/9.4.22.v20191022
> 2020-04-19T11:27:35,125 | INFO  | features-3-thread-1 |
> FeaturesServiceImpl              | 11 - org.apache.karaf.features.core -
> 4.3.0.RC1 |       mvn:org.eclipse.jetty.http2/http2-common/9.4.22.v20191022
> 2020-04-19T11:27:35,125 | INFO  | features-3-thread-1 |
> FeaturesServiceImpl              | 11 - org.apache.karaf.features.core -
> 4.3.0.RC1 |       mvn:org.eclipse.jetty.http2/http2-hpack/9.4.22.v20191022
> 2020-04-19T11:27:35,125 | INFO  | features-3-thread-1 |
> FeaturesServiceImpl              | 11 - org.apache.karaf.features.core -
> 4.3.0.RC1 |       mvn:org.eclipse.jetty.http2/http2-server/9.4.22.v20191022
> 2020-04-19T11:27:35,125 | INFO  | features-3-thread-1 |
> FeaturesServiceImpl              | 11 - org.apache.karaf.features.core -
> 4.3.0.RC1 |       mvn:org.eclipse.jetty/jetty-io/9.4.22.v20191022
> 2020-04-19T11:27:35,126 | INFO  | features-3-thread-1 |
> FeaturesServiceImpl              | 11 - org.apache.karaf.features.core -
> 4.3.0.RC1 |       mvn:org.eclipse.jetty/jetty-jaas/9.4.22.v20191022
> 2020-04-19T11:27:35,126 | INFO  | features-3-thread-1 |
> FeaturesServiceImpl              | 11 - org.apache.karaf.features.core -
> 4.3.0.RC1 |       mvn:org.eclipse.jetty/jetty-jmx/9.4.22.v20191022
> 2020-04-19T11:27:35,127 | INFO  | features-3-thread-1 |
> FeaturesServiceImpl              | 11 - org.apache.karaf.features.core -
> 4.3.0.RC1 |       mvn:org.eclipse.jetty/jetty-jndi/9.4.22.v20191022
> 2020-04-19T11:27:35,127 | INFO  | features-3-thread-1 |
> FeaturesServiceImpl              | 11 - org.apache.karaf.features.core -
> 4.3.0.RC1 |
> mvn:org.eclipse.jetty.osgi/jetty-osgi-alpn/9.4.22.v20191022
> 2020-04-19T11:27:35,128 | INFO  | features-3-thread-1 |
> FeaturesServiceImpl              | 11 - org.apache.karaf.features.core -
> 4.3.0.RC1 |       mvn:org.eclipse.jetty/jetty-plus/9.4.22.v20191022
> 2020-04-19T11:27:35,128 | INFO  | features-3-thread-1 |
> FeaturesServiceImpl              | 11 - org.apache.karaf.features.core -
> 4.3.0.RC1 |       mvn:org.eclipse.jetty/jetty-proxy/9.4.22.v20191022
> 2020-04-19T11:27:35,128 | INFO  | features-3-thread-1 |
> FeaturesServiceImpl              | 11 - org.apache.karaf.features.core -
> 4.3.0.RC1 |       mvn:org.eclipse.jetty/jetty-rewrite/9.4.22.v20191022
> 2020-04-19T11:27:35,128 | INFO  | features-3-thread-1 |
> FeaturesServiceImpl              | 11 - org.apache.karaf.features.core -
> 4.3.0.RC1 |       mvn:org.eclipse.jetty/jetty-security/9.4.22.v20191022
> 2020-04-19T11:27:35,129 | INFO  | features-3-thread-1 |
> FeaturesServiceImpl              | 11 - org.apache.karaf.features.core -
> 4.3.0.RC1 |       mvn:org.eclipse.jetty/jetty-jaspi/9.4.22.v20191022
> 2020-04-19T11:27:35,129 | INFO  | features-3-thread-1 |
> FeaturesServiceImpl              | 11 - org.apache.karaf.features.core -
> 4.3.0.RC1 |       mvn:org.eclipse.jetty/jetty-server/9.4.22.v20191022
> 2020-04-19T11:27:35,129 | INFO  | features-3-thread-1 |
> FeaturesServiceImpl              | 11 - org.apache.karaf.features.core -
> 4.3.0.RC1 |       mvn:org.eclipse.jetty/jetty-servlet/9.4.22.v20191022
> 2020-04-19T11:27:35,130 | INFO  | features-3-thread-1 |
> FeaturesServiceImpl              | 11 - org.apache.karaf.features.core -
> 4.3.0.RC1 |       mvn:org.eclipse.jetty/jetty-servlets/9.4.22.v20191022
> 2020-04-19T11:27:35,130 | INFO  | features-3-thread-1 |
> FeaturesServiceImpl              | 11 - org.apache.karaf.features.core -
> 4.3.0.RC1 |       mvn:org.eclipse.jetty/jetty-util/9.4.22.v20191022
> 2020-04-19T11:27:35,130 | INFO  | features-3-thread-1 |
> FeaturesServiceImpl              | 11 - org.apache.karaf.features.core -
> 4.3.0.RC1 |       mvn:org.eclipse.jetty/jetty-util-ajax/9.4.22.v20191022
> 2020-04-19T11:27:35,130 | INFO  | features-3-thread-1 |
> FeaturesServiceImpl              | 11 - org.apache.karaf.features.core -
> 4.3.0.RC1 |       mvn:org.eclipse.jetty/jetty-webapp/9.4.22.v20191022
> 2020-04-19T11:27:35,130 | INFO  | features-3-thread-1 |
> FeaturesServiceImpl              | 11 - org.apache.karaf.features.core -
> 4.3.0.RC1 |       mvn:org.eclipse.jetty/jetty-xml/9.4.22.v20191022
> 2020-04-19T11:27:35,131 | INFO  | features-3-thread-1 |
> FeaturesServiceImpl              | 11 - org.apache.karaf.features.core -
> 4.3.0.RC1 | Stopping bundles:
> 2020-04-19T11:27:35,132 | INFO  | features-3-thread-1 |
> FeaturesServiceImpl              | 11 - org.apache.karaf.features.core -
> 4.3.0.RC1 |   org.apache.karaf.event/4.3.0.RC1
> 2020-04-19T11:27:35,133 | INFO  | features-3-thread-1 | CommandExtension
>               | 36 - org.apache.karaf.shell.core - 4.3.0.RC1 |
> Unregistering commands for bundle org.apache.karaf.event/4.3.0.RC1
> 2020-04-19T11:27:35,135 | INFO  | features-3-thread-1 |
> FeaturesServiceImpl              | 11 - org.apache.karaf.features.core -
> 4.3.0.RC1 |   org.jline.terminal/3.13.2
> 2020-04-19T11:27:35,136 | INFO  | features-3-thread-1 |
> FeaturesServiceImpl              | 11 - org.apache.karaf.features.core -
> 4.3.0.RC1 |   org.jline.reader/3.13.2
> 2020-04-19T11:27:35,137 | INFO  | features-3-thread-1 |
> FeaturesServiceImpl              | 11 - org.apache.karaf.features.core -
> 4.3.0.RC1 |   org.jline.builtins/3.13.2
>
> When I use pax-jetty feature or I comment the configfile element
> everything works without any problem.
> Do I need to do anything more when I want to use pax-jetty-http2 or is
> there any bug there?
>
> best regards
>
> jakub
>
>
>

Reply via email to