2 Replies Latest reply on Oct 11, 2006 8:22 PM by JBoss User

    Exploded Vs Packaged mode

    pandu talli Newbie


      When i deploy in Exploded mode and the server is running, I am unable to redeploy after adding a new method, I am forced to stop the server and do the redeploy, I observed struts.jar is locked. However, when i deploy in Packaged mode i am able to undeploy, deploy or redeploy without stopping the server and the changes (new methods that are added) are reflected, i am kind of confused which Mode i should use? it seems if i use Packaged mode i can modify the code (add new methods) and doesn't have to stop the server. With this observation I think Packaged benefits than Exploded? Am I correct?

        • 1. Re: Exploded Vs Packaged mode
          VisolveGroup Novice


          Refer the following wiki page.


          It says that,

          In a normal archive, JBoss will redeploy the application when the archive is updated. To force JBoss to redeploy an exploded application simply update the top level descriptor. (web.xml, application.xml, etc.)

          Hope this might be helpful.

          • 2. Re: Exploded Vs Packaged mode
            JBoss User Newbie

            I am having the same problem but I am doing it a little different.

            Whenever I package the ear file and deploy it as a file. I can delete that file and jboss will undeploy it. No problems here (besides being slow as dog%#$).

            Whenever I deploy it as an exploded directory (same exact structure). I cannot delete that directory without shutting down jboss because the classloader appears to be holding onto the supporting library jar files that are included within the ear file. Therefore, jboss will not allow me to undeploy (delete) the exploded directory.

            I don't know if this is a bug or not but it sure is a pain.

            The solution to redeploy an exploded directory that was pointed out above did not work for me.
            I was trying to just touch the application.xml and was observing the "modifed date" on the application.xml in windows explorer would change but the application would never repdeploy. I had to touch (using ant and fileset) the exploded ear directory. This is the only way I could trigger a redeploy while exploded.

            I am using 4.04GA on Windblows XP.