FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Ubuntu Server Development

 
 
LinkBack Thread Tools
 
Old 03-03-2010, 08:50 AM
Matteo Capaccioli
 
Default Fwd: Tomcat Client Deployer

---------- Forwarded message ----------
> From: *Kaushal Shriyan* <kaushalshriyan@gmail.com
> <mailto:kaushalshriyan@gmail.com>>
> Date: 2010/3/3
> Subject: Tomcat Client Deployer
> To: ubuntu-server <ubuntu-server@lists.ubuntu.com
> <mailto:ubuntu-server@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@lists.ubuntu.com <mailto:ubuntu-server@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://XXXort/manager"/>
<property name="username" value="XXX"/>
<property name="password" value="XXX"/>


Hope this can help,

Matteo


--
ubuntu-server mailing list
ubuntu-server@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
More info: https://wiki.ubuntu.com/ServerTeam
 
Old 03-03-2010, 09:37 AM
Kaushal Shriyan
 
Default Fwd: Tomcat Client Deployer

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

--
ubuntu-server mailing list
ubuntu-server@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
More info: https://wiki.ubuntu.com/ServerTeam
 

Thread Tools




All times are GMT. The time now is 05:17 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org