1 Reply Latest reply on May 10, 2012 6:27 AM by ctomc

    changing the web context root of a web application

    peterfry

      Is there an alternative to renaming the war file prior to deployment to get a different web context root.

       

      Ideally I want to be able to deploy an unchanged war file (same name, unchanged contents) and then via a jboss as 7.1 specific file alter the web context root.

       

      My ideas are:

       

      an external web.xml file using the 5.0.1 deployers approach

       

      deployers/jbossweb.deployer/web.xml

       

      or

       

      URL rewrite functionality

       

      http://docs.jboss.org/jbossweb/7.0.x/rewrite.html

       

      (someone else has queried the uptodateness of for 7.1!)

       

      Anyone with experience of this or whether either are possible in 7.1?

        • 1. Re: changing the web context root of a web application
          ctomc

          Hi,

           

          short answer to what you want is yes.

          Long version gets bit complicated

           

          one way to rename deployment is when you use admin console and add new deployment you can rename it to whatever you want.

          another option is to connect with CLI and manually rename deployment.

          also we are preparing new functionality that will enable you to override any deployment descriptor as part of management without modifying your deployment, but this is scheduled for 7.2...

           

          hope anything of this helps,

          tomaz