4 Replies Latest reply on Sep 21, 2007 8:52 PM by peterj

    Steps for Deploying the new EAR file  (Hot Deployment ??)

    pmohanan

      Hi..,

      What are the steps when you want to deploy the new war file to the server. Here are the steps I follow :

      1. Shutdown the App server
      2. Remove the EAR file from deploy folder
      3. Go to the tmp folder & remove all the files related to the earlier app
      4. Go to the work folder & remove all the files related to the earlier app
      5. Deploy the new war file.
      6. Start the app server.

      Are these steps correct. ?

      If I don't deploy the app as per the steps mentioned above, the App doesn't work fine & throws all kind of exceptions.

      Our is a linux RH ES , HP bladed env.

      Also , please let me know if there is any way to do the hot deployment on JBoss.

      Regards,

      Praveen

        • 1. Re: Steps for Deploying the new EAR file  (Hot Deployment ??
          peterj

          Those steps are correct if you want to start with a clean deployment.

          Hot deployment is easy - simply copy the EAR file to the deploy directory. The app server will undeploy the old app and deploy the new one. There are various situations under which this will fail, mostly having to do with how your application attempts to maintain state and the fact that the new app will have a different class loader than the old app.

          My rule-of-thumb. If hot deployment works, great. If not, do the steps you outlined (usually you do not need steps 3 and 4).

          • 2. Re: Steps for Deploying the new EAR file  (Hot Deployment ??
            pmohanan

            Hi..Peter,

            Thanks a lot for the reply. Hot deployment did not work in most of the cases. (Even though we are more interested in getting this work)

            Until & unless step 3 & 4 are done, we still have issues once the new ear is deployed.

            Regards,

            Praveen

            • 3. Re: Steps for Deploying the new EAR file  (Hot Deployment ??
              pmohanan

              Hi...Peter,

              Do you know where else it extracts the war file when JBoss starts. I am facing another issue now. I removed all the tmp file & redeployed the new war. For some reason, it still picks the old release.

              I removed the files from /tmp & /work

              Regards,

              Praveen

              • 4. Re: Steps for Deploying the new EAR file  (Hot Deployment ??
                peterj

                The WAR is extracted to tmp, the JSPs are compiled into work. There are no other locations.

                You could try setting the -verbose:class option on the Java command line, this should let you know the location of the jar files for each class loaded, look at where your servlets are being loaded from. That might give you some clue as to why the old app is showing up.

                Also, what kind of changes did you make? Sometime changes such as CSS or images don't get noticed because the browser caches them.