2 Replies Latest reply on Oct 15, 2006 12:49 PM by Christoph Krammer

    EAR Redeployment not noticed by JBoss AS

    Christoph Krammer Newbie

      Hello,

      I am testing a new application, which is packed to an EAR archive by JBoss IDE 1.6.0.

      When I deploy this application everything is fine, but when I make some changes and want to redeploy it, the JBoss AS does not notice anything. I have to delete the ear archive and copy it to the deploy directory again.

      Any clues why this happens?

      Thanks and regards,
      Christoph

        • 1. Re: EAR Redeployment not noticed by JBoss AS
          Andrew Oxenburgh Newbie

          Hi Cristophe,

          What _exactly_ are you doing?

          To deploy an EAR to tomcat you copy it into the '/server/<server-config>/deploy' directory, JBoss picks up the drop, then unpacks it and its components into a '/server/<server-config>/temp/deploy'.

          The way to redeploy is to replace the EAR into '/server/<server-config>/deploy'.

          JBoss should then see the change, reploy and restart.

          Is this what you are doing?

          Also _how_ are you doing it? Are you using ant, drag and drop, or are you building it in the /deploy directory, or some other way.

          • 2. Re: EAR Redeployment not noticed by JBoss AS
            Christoph Krammer Newbie

            Hello,

            I do the following:

            I copy the .ear folder packed by JBossIDE to /server/default/deploy/projectxy
            Then JBoss deploys the application to a tmp folder and the application can be used. Then I do some changes in the code, repack the .ear and copy the files to the same destination, in overwrite mode (using filesystem copy).

            But nothing happens.

            If I delete the .ear folder from JBoss, the application gets undeployed, after copying it to the same destination again, the new version gets deployed.

            Thanks for your help.
            Christoph