Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Aaron John
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?
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, war files and contexts have a one-to-one relationship.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic