[
https://issues.apache.org/jira/browse/KARAF-210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12910122#action_12910122
]
Claus Ibsen commented on KARAF-210:
-----------------------------------
gnodet told me you can use ?Webapp-Context=coolapp to specify the context path.
I verified and it worked
http://localhost:8181/coolapp/index.html
lists the wicket example now
> 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
>
> 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.