Menu

Deploying WAR package in JBoss Server

2009-02-16
2013-04-25
  • Nobody/Anonymous

    Hello

    I have JBoss server running on my local machine. I want to deploy WAR package by checking out from my SVN. I am doing the same task using ANT script written in build.xml file. Now I want to do the same task using WebAutoDeply.

    Can anyone suggest how could I do this ??

    Thanks
    SudeepG

     
    • Jean-Baptiste Onofré

      Be careful, AutoDeploy is not a continuous integration tool, it's a continuous deployment one.

      You need to have your war artifact already build (by maven, ant or what you want).

      Once the artifact (war or ear) is build, AutoDeploy can take it and deploy on a target application server.

      To do it, you need :
      1/ start an AutoDeploy agent on the application server machine
      2/ setup the agent in WebAutoDeploy (that can be remote)
      3/ setup an environment choosing the corresponding agent
      4/ setup an application in this environment and add an archive configuration for your war.

      If you want, I can help you to setup the main autodeploy.xml corresponding with your need.

      Regards
      JB

       
    • Nobody/Anonymous

      Hi JB,

      I got excited with this project, and i'm willing to try this.
      Will you please provide some basic steps with some sample values?

      Looking forward for ur help.
      regards

       
      • Nobody/Anonymous

        Hi,

        first thanks for the interest on the project.

        AutoDeploy is composed by two parts:
        1/ the agent is installed on each target server that you want to manage. It's a standalone java application.
        2/ WebAutoDeploy manages the AutoDeploy configuration and interacts with the agents. It's a web application that has to be deployed into a JSP/Servlet container (Tomcat, Jetty) or an application server (JBoss, Glassfish, Weblogic, etc).

        The latest agent version is here:
        http://downloads.sourceforge.net/buildprocess/autodeploy-0.5.4.tar.gz
        It's a binary package containing required lib, script launcher, and sample XML configuration file. This configuration file is managed by WebAutoDeploy.

        The latest WebAutoDeploy release is here:
        http://downloads.sourceforge.net/buildprocess/WebAutoDeploy-0.5.3.tar.gz
        It contains both source and binary. You can find the war into the target directory of the tarball.

        To deploy into JBoss, you need to execute the following steps:
        1/ first, WebAutoDeploy requires a configuration file into the JBoss server classpath. This file is in the WebAutoDeploy tarball, in the src/main/config directory. The name is WebAutoDeploy-config.xml. This file contains only two properties: where the main XML AutoDeploy file is located (it's where WebAutoDeploy read/writes data) and the directory that will contain the journal log files (logging all action performed on each environment). You need to setup the WebAutoDeploy-config.xml file to match your environment requirement and copy this file into the JBoss application server (for example into the JBoss lib directory or adding a new JBoss classpath entry in the run.sh). You can find a startup AutoDeploy XML file into the agent tarball, in the sample/config directory (auto-deploy.xml.sample file).
        2/ copy the WebAutoDeploy war archive into the deploy directory of JBoss.

        It should be deployed. Keep me posted if you have some issues.

         

Log in to post a comment.