I am using JBoss 5.1.0 and want to force all applications that get deployed to have a common parent context root path. Is there a way to force the entire JBoss instance to have a common context path for all deployed applications without manually configuring each one?
For example:
If I have the following contents in the default/server/deploy directory this is what I want the web application url to look like.
Application | Original URL | Desired URL |
---|---|---|
ROOT.war | http://localhost | http://localhost/parentcontext |
myApp.war | http://localhost/myApp | http://localhost/parentcontext/myApp |
thirdpartyApp.war | http://localhost/thirdpartyApp | http://localhost/parentcontext/thirdpartyApp |
I've tried using the org.jboss.web.rewrite.RewriteValve but this just redirects the page and I want the actual url seen by the client to always contain the parent context path.
I welcome any suggestions how to accomplish this.
Thanks.