[
https://issues.apache.org/jira/browse/KARAF-3361?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14211524#comment-14211524
]
Guillaume Nodet commented on KARAF-3361:
----------------------------------------
Karaf 4.x introduces the concept of prerequisites using the prerequisite="true"
flag, so you should be able to do exactly what you want:
{code}
<feature name='war-feature' version='${project.version}'>
<feature prerequisite="true">war</feature>
<bundle>webbundle:mvn:org.example/example-webap/${project.version}/war?Web-ContextPath=/sample</bundle>
</feature>
{code}
> 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: 3.0.2, 4.0.0.M1
> 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)