1 Reply Latest reply on May 6, 2004 10:16 PM by jlward4

    mapping the urls for jboss

    ca_cise

      I would like to deploy several versions of the same .war file. The way I would like to do this is to have the current app.war file in the /deploy directory and then all the older versions of the app.war file in a different directory. Then have it so I can access all of these versions on the web like so:

      /deploy/app.war maps to http://myserver:port/app
      /deploy/versionX.1/app.war maps to http://myserver:port/versionX.1/app
      /deploy/versionX.2/app.war maps to http://myserver:port/versionX.2/app

      When I try this I get the following error:

      java.lang.IllegalArgumentException: addChild Child name '/app.war' is not unique
      .......

      Thanks in advance for any help

        • 1. Re: mapping the urls for jboss
          jlward4

          The only way that I know of to do this is to create a jboss-web.xml for each version and specify the context-root. Like this:

          <?xml version="1.0"?>
          <jboss-web>
          <context-root>/versionX.1/app</context-root>
          </jboss-web>


          I hope that helps.

          -James