2 Replies Latest reply on Nov 6, 2004 5:36 AM by Joan Horta Tosas

    Overriding the base application

    Steven Brownlee Newbie

      Here's my deploy directory structure...

      deploy
      +-- webdev
          +-- developer.war
          +-- monkspunk.war

      I want...
      1. http://localhost:8080/ to point to the deploy>webdev>monkspunk.war directory
      2. http://localhost:8080/developer/ to point to the deploy>webdev>developer.war directory

      I put the following entries into server.xml

      <Context path="/" docBase="webdev/monkspunk.war" debug="0" reloadable="true"/>
      <Context path="/developer" docBase="webdev/developer.war" debug="0" reloadable="true"/>
      


      However, the server root still points to the JBoss administrative screen instead of to the monkspunk.war directory.

      The documentation is ver vague on how to define mappings to directories. Could someone please point me in the right direction?

        • 1. Re: Overriding the base application
          Steven Brownlee Newbie

           

          "orbwave" wrote:
          Here's my deploy directory structure...

          deploy
          +-- webdev
              +-- developer.war
              +-- monkspunk.war

          I want...
          1. http://localhost:8080/ to point to the deploy>webdev>monkspunk.war directory
          2. http://localhost:8080/developer/ to point to the deploy>webdev>developer.war directory

          I put the following entries into server.xml

          <Context path="/" docBase="webdev/monkspunk.war" debug="0" reloadable="true"/>
          <Context path="/developer" docBase="webdev/developer.war" debug="0" reloadable="true"/>
          


          However, the server root still points to the JBoss administrative screen instead of to the monkspunk.war directory.

          The documentation is ver vague on how to define mappings to directories. Could someone please point me in the right direction?


          • 2. Re: Overriding the base application
            Joan Horta  Tosas Novice

            You can rename the webdev dir to webdev.ear, make a META-INF dir on the webdev.ear dir (deploy/webdev.ear/META-INF) and put there an application.xml file. In that file you can specify which context has every war file within the webdev.ear dir. You should avoid using the server.xml file for doing this.