Maciej Mraczek created KARAF-3361:
-------------------------------------

             Summary: Unable to install war/webbundle together with war feature
                 Key: KARAF-3361
                 URL: https://issues.apache.org/jira/browse/KARAF-3361
             Project: Karaf
          Issue Type: Bug
          Components: karaf-feature
    Affects Versions: 4.0.0.M1, 3.0.2
            Reporter: Maciej Mraczek


It is not possible to install feature containing dependent war feature without 
installing war feature manually first.

If you define the feature:

{code:xml}
    <feature name='war-feature' version='${project.version}'>
        <feature>war</feature>
        
<bundle>webbundle:mvn:org.example/example-webap/${project.version}/war?Web-ContextPath=/sample</bundle>
    </feature>
{code}

The only way to install such a feature is to install war feature first.
Otherwise, webbundle protocol is not recognized.

feature:install war-feature gives the result:
Error when installing feature war-feature: java.net.MalformedURLException: 
Unknown protocol: webbundle

Reason:
BundleManager.waitForUrlHandler() is not able to find URLStreamHandlerService 
for "webbundle" protocol, although all war feature bundles are installed before 
war-feature feature.






--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to