Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Virgo » How to deploy a WAR to ROOT web context (/)?
How to deploy a WAR to ROOT web context (/)? [message #656903] Mon, 28 February 2011 22:46 Go to next message
Wolfgang Schell is currently offline Wolfgang SchellFriend
Messages: 3
Registered: July 2009
Junior Member
Hi all,

I would like my web app (bundle as WAR file) to process all requests within the root web context (i.e. /). How do I configure this? Using "Web-ContextPath: /" in MANIFEST.MF?

Another question: is there a way to override the value specified in Web-ContextPath? Standalone Tomcat supports renaming the WAR file to ROOT.war in order to run it under the root context /.

Thanks for any help and pointers!

Wolfgang
Re: How to deploy a WAR to ROOT web context (/)? [message #656953 is a reply to message #656903] Tue, 01 March 2011 07:35 Go to previous message
Violeta Georgieva is currently offline Violeta GeorgievaFriend
Messages: 244
Registered: October 2010
Senior Member
Wolfgang Schell wrote on Tue, 01 March 2011 00:46
Hi all,

I would like my web app (bundle as WAR file) to process all requests within the root web context (i.e. /). How do I configure this? Using "Web-ContextPath: /" in MANIFEST.MF?



Yes you can add Web-ContextPath: /
You can see in <Virgo-Home>/pickup/org.eclipse.virgo.apps.splash-3.0.0.M01.jar
This application has such context path

Quote:

Another question: is there a way to override the value specified in Web-ContextPath? Standalone Tomcat supports renaming the WAR file to ROOT.war in order to run it under the root context /.

Thanks for any help and pointers!

Wolfgang


You can do this with plan
You can see an example in <Vigo-Home>/pickup/org.eclipse.virgo.apps.admin-3.0.0.M01.plan
<property name="header:Web-ContextPath" value="/admin" />


Regards
Violeta
Previous Topic:Milestone 3.0.0.M02 is available
Next Topic:Exception: ...required property 'bundleContext' has not been set
Goto Forum:
  


Current Time: Fri Nov 21 20:38:50 GMT 2014

Powered by FUDForum. Page generated in 0.01606 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software