You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2010/09/16 14:24:33 UTC

[jira] Resolved: (KARAF-210) Allow to specific context-path when installing a war file using the war url handler

     [ https://issues.apache.org/jira/browse/KARAF-210?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen resolved KARAF-210.
-------------------------------

    Fix Version/s: 2.1.0
       Resolution: Incomplete

This feature exists already and its documented here
http://wiki.ops4j.org/display/paxurl/War+Protocol

Albeit the documentation doesnt have an example and its not so clear how to use that option.

> Allow to specific context-path when installing a war file using the war url handler
> -----------------------------------------------------------------------------------
>
>                 Key: KARAF-210
>                 URL: https://issues.apache.org/jira/browse/KARAF-210
>             Project: Karaf
>          Issue Type: Improvement
>    Affects Versions: 2.0.0
>            Reporter: Claus Ibsen
>            Priority: Minor
>             Fix For: 2.1.0
>
>
> For example you can install the wicket example as follows:
> 1)
> features:install war
> 2)
> osgi:install war:mvn:org.apache.wicket/wicket-examples/1.4.7/war
> 3)
> osgi:start BUNDLE_ID
> 4)
> Access the web app using
> http://localhost:8181/mvn_org.apache.wicket_wicket-examples_1.4.7_war
> Now the war has been installed using the SymbolicName from the bundle. But since we install a war file it doesnt have OSGi metadata and there fore it gets the SymbolicBundle name based on its file name. And his may not be what you want as the jar got version and war in it.
> So what you would like is to be able at step 2 to do:
> osgi:install war:mvn:org.apache.wicket/wicket-examples/1.4.7/war coolapp
> Then you can access the web app with this url
> http://localhost:8181/coolapp

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.