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?