• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

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

 
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
No, war files and contexts have a one-to-one relationship.
 
"I know this defies the law of gravity... but I never studied law." -B. Bunny Defiant tiny ad:
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
    Bookmark Topic Watch Topic
  • New Topic