3 Replies Latest reply on May 28, 2008 11:18 AM by peterj

    How to deploy an EAr in JBOSS from the command line

    padmarathiprithvi

      I am migrating my product from OC4j to JBoss.I would like to deploy
      EAR from Command prompt.I neither want to copy the Ear to deploy directory nor use the tools to deploy my EAR.
      Also I would like to know how to make use of plan files which takes the inputs from jboss.xml and jboss-web.xml during this deployment from the command prompt.

      If some has worked on this Kindly help me out on this issue.

      thanks
      Padmarathi

        • 1. Re: How to deploy an EAr in JBOSS from the command line
          peterj

          You are asking for the impossible. There are no plan files in JBossAS, and the way to deploy is to copy the archive to server/xxx/deploy.

          • 2. Re: How to deploy an EAr in JBOSS from the command line
            padmarathiprithvi

            Many thanks for your reply, Peter.

            But i noticed the below information in Google.I also noticed that deployer.jar is there till JBOSS3.0 used for deploying from the command prompt. Currently i am using JBOSS4.2 and the following doen't work for me.

            java -jar bin/deployer.jar --user
            system --password manager deploy myrar.rar myplan.xml

            I am not sure about the above one in JBoss4.2. Let me know if you have an idea on this.
            Do we have something similar to this in JBOSS4.2 or the only way is to copy to deploy folder as you mentioned.

            If so i have to follow this only option.

            Thanks

            • 3. Re: How to deploy an EAr in JBOSS from the command line
              peterj

              There is no deployer.jar for 4.0.x or 4.2.x (and I don't recall one in 3.2.x).

              Other than copying a file to the deploy directory, you could invoke the deploy method on the MainDeployer mbean. The only caveat is that the deployment is temporary - when you restart the server you will have to redeploy the application.