• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Is it possible to deploy two wars in the same context?

 
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In Tomcat, I have a webapp packaged up as a war file.

I have an extension to the webapp (just a new login page and servlet) which I would like to distribute as a separate war file. The problem is that when Tomcat starts up, the war file is deployed as a different context to the original webapp. I would like the content to be accessible using the context of the original webapp, so my login page is accessible through URLs that match the original webapp context.

My other problem is that my webapp extension cannot be packaged in the war file of the original webapp, since it's strictly not part of the webapp.

Does anyone have any suggestions as to how I can make the extension a part of the original webapp? Is it possible to deploy two wars in the same context?
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, war files and contexts have a one-to-one relationship.
 
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic