karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] Created: (KARAF-210) Allow to specific context-path when installing a war file using the war url handler
Date Thu, 16 Sep 2010 11:54:33 GMT
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.


Mime
View raw message