Fwd: Tomcat Client Deployer

Kaushal Shriyan kaushalshriyan at gmail.com
Wed Mar 3 10:37:49 UTC 2010


On Wed, Mar 3, 2010 at 3:20 PM, Matteo Capaccioli
<matteo.capaccioli at softecspa.it> wrote:
> ---------- Forwarded message ----------
>> From: *Kaushal Shriyan* <kaushalshriyan at gmail.com
>> <mailto:kaushalshriyan at gmail.com>>
>> Date: 2010/3/3
>> Subject: Tomcat Client Deployer
>> To: ubuntu-server <ubuntu-server at lists.ubuntu.com
>> <mailto:ubuntu-server at lists.ubuntu.com>>
>>
>>
>> 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
>> ubuntu-server at lists.ubuntu.com <mailto:ubuntu-server at lists.ubuntu.com>
>> 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




More information about the ubuntu-server mailing list