0 Replies Latest reply on Feb 8, 2013 5:07 PM by spiketuff

    JBoss 5 Common context root path for all applications

    spiketuff Newbie

      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.

       

      ApplicationOriginal URLDesired URL
      ROOT.warhttp://localhosthttp://localhost/parentcontext
      myApp.warhttp://localhost/myApphttp://localhost/parentcontext/myApp
      thirdpartyApp.warhttp://localhost/thirdpartyApphttp://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.