On Wed, Mar 3, 2010 at 4:38 PM, Matteo Capaccioli <[email protected]> wrote: > Kaushal Shriyan wrote: >> >> On Wed, Mar 3, 2010 at 3:20 PM, Matteo Capaccioli >> <[email protected]> wrote: >> >>> >>> ---------- Forwarded message ---------- >>> >>>> >>>> From: *Kaushal Shriyan* <[email protected] >>>> <mailto:[email protected]>> >>>> Date: 2010/3/3 >>>> Subject: Tomcat Client Deployer >>>> To: ubuntu-server <[email protected] >>>> <mailto:[email protected]>> >>>> >>>> >>>> Hi, >>>> >>>> I am referring to >>>> http://tomcat.apache.org/tomcat-5.5-doc/deployer-howto.html for >>>> deploying the same war on multiple tomcat server. >>>> I have downloaded apache-tomcat-5.5.27-deployer.tar.gz and extracted >>>> it. I have added deployer.properties under >>>> /usr/local/apache-tomcat-5.5.27-deployer >>>> >>>> The deployer.properties are as below :- >>>> >>>> deployer.properties >>>> >>>> ################################################ >>>> build=/usr/local/test/build >>>> webapp=config >>>> path=/config >>>> url=http://example:8080/manager >>>> username=tomcat >>>> password=tomcat >>>> <http://example:8080/managerusername=tomcatpassword=tomcat> >>>> ################################################ >>>> >>>> ant -Durl=http:/some.other.host:8080/manager >>>> >>>> Am i missing any thing ? >>>> >>>> Please suggest/guide. >>>> >>>> Thanks and Regards, >>>> >>>> Kaushal >>>> >>>> -- >>>> ubuntu-server mailing list >>>> [email protected] <mailto:[email protected]> >>>> https://lists.ubuntu.com/mailman/listinfo/ubuntu-server >>>> More info: https://wiki.ubuntu.com/ServerTeam >>>> >>>> >>> >>> Hi, >>> >>> I was able to use the TCD, launching ANT with the following command >>> (e.g. to deploy a webapp): >>> >>> ant -lib <library-folder> deploy >>> >>> where <library-folder> contains >>> >>> catalina-ant.jar catalina-deployer.jar commons-el.jar >>> commons-logging-1.1.1.jar jasper-compiler.jar jasper-runtime.jar >>> jsp-api.jar servlet-api.jar >>> tools.jar >>> >>> and "deploy" is a target inside the build.xml (I think this is the >>> default): >>> >>> <target name="deploy" description="Deploy web application"> >>> <deploy url="${url}" username="${username}" password="${password}" >>> path="${path}" war="${webapp.path}.war" update="true" /> >>> </target> >>> >>> Please remember to fill the following properties in the build.xml file: >>> >>> <property name="build" value="${basedir}/XXX"/> >>> <property name="webapp" value="XXX"/> >>> <property name="path" value="/"/> >>> <property name="url" value="http://XXX:port/manager"/> >>> <property name="username" value="XXX"/> >>> <property name="password" value="XXX"/> >>> >>> >>> Hope this can help, >>> >>> Matteo >>> >> >> Thanks Matteo. >> >> I have couple of questions. >> >> 1) if i need to deploy the same war from my laptop to the remote >> multiple Tomcat server. >> 2)Please explain me with an example about the value parameter in build.xml >> >> >>> >>> <property name="build" value="${basedir}/XXX"/> >>> <property name="webapp" value="XXX"/> >>> <property name="path" value="/"/> >>> >> >> Please suggest. >> >> Thanks and Regards, >> >> Kaushal >> Kaushal >> > > Hi Kaushal, > > here's an example: > > ("basedir" is specified into the "project" tag - > <project name="Deployer" default="XXX" basedir="."> > (for example) ) > > <property name="build" value="${basedir}/temp"/> > <property name="webapp" value="mywebapp"/> > <property name="path" value="/context"/> > > note: "path" can be just "/" in case you want to deploy your webapp in the > ROOT context > > > Hope this can help, > > Matteo Thanks Mateo.
Just was curious to know the answer about the first question: 1) if i need to deploy the same war from my laptop to the remote multiple Tomcat server. ? Please suggest/guide. Thanks, Kaushal -- ubuntu-server mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-server More info: https://wiki.ubuntu.com/ServerTeam
