karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Achim Nierbeck (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (KARAF-3361) Unable to install war/webbundle together with war feature
Date Thu, 13 Nov 2014 21:43:33 GMT

    [ https://issues.apache.org/jira/browse/KARAF-3361?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14211340#comment-14211340

Achim Nierbeck commented on KARAF-3361:

If you make sure you have a OSGi-fied War (Web Application Bundle - WAB) ready you don't need
the _webbundle:_ url-handler and therefore it's possible to have a feature like you proposed

> 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:
> 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

View raw message