5 Replies Latest reply on Apr 15, 2009 6:52 AM by secretdark

    Deployment path precedence

    secretdark

      Hi,

      I'm have a question regarding the precedence of deployment paths. Specifically, if I was to deploy a WAR file with a specified path (for example, /newHTML) alongside a already deployed EAR file with a path specified as the same (/newHTML) would the precedence simply be given to the last deployment i.e. the WAR file? If so, is there any specific method of establishing a more advanced hierarchy for precedence?

      thanks,

      Ryan

        • 1. Re: Deployment path precedence
          peterj

          By "path" do you mean web app context? If so, if there is already an app that is using the context /xxx then deploying a new app with the same context will fail.

          If you don't mean 'context', what do you mean by 'path'?

          • 2. Re: Deployment path precedence
            secretdark

            Thanks for the response.
            The context of the WAR I'm deploy ends up being:

            /static

            If I then deploy an EAR containing a similiar WAR with the same context (i.e. /static) it is then overridden. Is there any method of defining what deployment would take precedence beyond simply timestamp (i.e. last touched / updated)?

            • 3. Re: Deployment path precedence
              jaikiran

               

              "secretdark" wrote:


              If I then deploy an EAR containing a similiar WAR with the same context (i.e. /static) it is then overridden.


              That's changed (read handled correctly) in JBossAS-5.0.x, where multiple applications are not allowed to have the same context. Which AS version do you use?

              • 4. Re: Deployment path precedence
                secretdark

                We're currently using 4.2.2. and, unfortunately, an upgrade is not an option at the moment. I take it that this is the expected behaviour for this version then?

                • 5. Re: Deployment path precedence
                  secretdark

                  Likewise, are context paths allowed to be shared? For example, if I deploy a EAR with a context path of:
                  /application
                  which contains a subdirectory named 'static' i.e.
                  /application/static
                  And I then deploy a WAR containing simply a modified verison of the directory and the same sub-context path, i.e.
                  /application/static
                  I will simply have overridden the applications sub-context path (but not any other path under /application)? i.e. the contents of /application/static will now refer to the WARs contents, rather than the EARs?