7 Replies Latest reply on Dec 8, 2009 1:40 PM by alesj

    Where does the working copy of the WAR file live?

    laredotornado

      Hi,

      I'm using JBoss 5.1 AS on Mac 10.5.6. After I deploy my web application (.war file), does JBoss keep a working copy in a temp directory somewhere? I'm troubleshooting an issue where JBoss keeps serving an old JSP file even though I have confirmed the newest one is getting included in my WAR. I just want to see what JBoss is actually looking at.

      Thanks, - Dave

        • 1. Re: Where does the working copy of the WAR file live?
          alesj

           

          "laredotornado" wrote:

          does JBoss keep a working copy in a temp directory somewhere?

          It depends on the type of the packaging.
          For exploded and standalone .wars it shouldn't create a copy by default.
          It should only create a .war copy if the archive is nested -- inside some other archive.


          • 2. Re: Where does the working copy of the WAR file live?
            jaikiran

             

            "alesj" wrote:

            It depends on the type of the packaging.
            For exploded and standalone .wars it shouldn't create a copy by default.


            I thought we started creating temp even for exploded deployments, to allow accessing resources during undeployment, starting JBossAS 5.1.0. Isn't that the case?

            • 3. Re: Where does the working copy of the WAR file live?
              laredotornado

              In my case I am using a WAR file (as opposed to an exploded one). So when you say

              > It should only create a .war copy if the archive is nested -- inside some other archive.

              Where does that get created?

              Thanks, - Dave

              • 4. Re: Where does the working copy of the WAR file live?
                alesj

                 

                "jaikiran" wrote:

                I thought we started creating temp even for exploded deployments, to allow accessing resources during undeployment, starting JBossAS 5.1.0. Isn't that the case?

                Hmmm ... I remember Jason adding something, but that could be for archives only ... afair.

                • 5. Re: Where does the working copy of the WAR file live?
                  alesj

                   

                  "laredotornado" wrote:

                  Where does that get created?

                  JBOSS_HOME/server/(your_config_here)/tmp

                  • 6. Re: Where does the working copy of the WAR file live?
                    laredotornado

                    I could only find one directory in there that seemed to match my WAR, but it has a date (and contents) of a deployment from yesterday.

                    ./5c4o4w1-qu3u9i-g2ytcv7x-1-g2yyjama-21/myco-galc-capitol-tours-webapp.war/editContactInfo.jsp

                    When I change the files in that tmp directory, the changes are reflected on the web site, but when I redeploy, the files revert back to an older date and version. Any ideas as to why I'm observing these bizarre phenomena?

                    Thanks, - Dave

                    PS - Psyched about the World Cup?

                    • 7. Re: Where does the working copy of the WAR file live?
                      alesj

                       

                      "laredotornado" wrote:
                      I could only find one directory in there that seemed to match my WAR, but it has a date (and contents) of a deployment from yesterday.

                      The old stuff should be deleted after re-boot or re/un-deploy.

                      "laredotornado" wrote:

                      When I change the files in that tmp directory, the changes are reflected on the web site, but when I redeploy, the files revert back to an older date and version. Any ideas as to why I'm observing these bizarre phenomena?

                      The old temp should / must be removed, hence the copy of the (old) original deployment kicks in.

                      You could un-jar the .war, which would mean we wouldn't create a copy.
                      unjar == explode only top level, leave nested jars as they are

                      "laredotornado" wrote:

                      PS - Psyched about the World Cup?

                      Not yet. After all, it's still far away.
                      But I guess you'll see me less on the forums in June. :-)