2 Replies Latest reply on Nov 6, 2004 5:36 AM by raist_majere

    Overriding the base application

    orbwave

      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
          orbwave

           

          "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
            raist_majere

            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.