2 Replies Latest reply on Feb 3, 2011 1:54 PM by gibsonc

    how to redeploy from command line in jboss6

    devinderpal

      Is there any Linux command that I can use to redeploy an ear file?

      some other articles stated twiddle but couldn't make it work. I can delete the ear dir and copy it again, but not sure if that's the right way

        • 1. Re: how to redeploy from command line in jboss6
          peterj
          I can delete the ear dir and copy it again, but not sure if that's the right way

          That is a perfectly acceptable way (and also the easiest way) of redeploying an app.

          • 2. Re: how to redeploy from command line in jboss6
            gibsonc

            Hi Peter

             

            Must one delete the old war / ear first before copying the new one - ie wait for an undeploy?

             

            I have noticed an issue on 5.1.0 - I will try on AS6 tomorrow to see if the same applies.....

             

            If I touch the web.xml, the app is redeployed successfully on a clustered / non clustered instance - this is expected and works.

            If I copy a new war into the deploy folder over an existing one - ie without first deleting, and the instance is part of a cluster, the instance I am deploying into aborts immediately.

             

            Is this a bug, or am I doing it wrong?