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, 12:09 PM
Kaushal Shriyan
 
Default Fwd: Tomcat Client Deployer

On Wed, Mar 3, 2010 at 4:38 PM, Matteo Capaccioli
<matteo.capaccioli@softecspa.it> wrote:
> Kaushal Shriyan wrote:
>>
>> 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
>>
>
> 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
ubuntu-server@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
More info: https://wiki.ubuntu.com/ServerTeam
 
Old 03-03-2010, 02:44 PM
Kaushal Shriyan
 
Default Fwd: Tomcat Client Deployer

On Wed, Mar 3, 2010 at 7:59 PM, Matteo Capaccioli
<matteo.capaccioli@softecspa.it> wrote:
> Kaushal Shriyan wrote:
>>
>> On Wed, Mar 3, 2010 at 4:38 PM, Matteo Capaccioli
>> <matteo.capaccioli@softecspa.it> wrote:
>>
>>>
>>> Kaushal Shriyan wrote:
>>>
>>>>
>>>> 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
>>>>
>>>>
>>>
>>> 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
>>
>
> Hi Kaushal,
>
> to deploy the same WAR to a Tomcat cluster (this is what I think you're
> meaning with "multiple Tomcat server"), you can use the "FarmWarDeployer".
> Please see:
>
> http://tomcat.apache.org/tomcat-5.5-doc/cluster-howto.html
> and
> http://tomcat.apache.org/tomcat-5.5-doc/catalina/docs/api/org/apache/catalina/cluster/deploy/FarmWarDeployer.html
>
> (..uh, are you using version 5.5 or version 6.0 ?)
>
>
> I think that this is a different topic than "Tomcat Client Deployer", and -
> please - note that I don't have that much experience with the
> "FarmWarDeployer".
>
>
> Hope this helps,
>
> Matteo
>
>

Thanks Matteo

One last question,

I need to stop tomcat on the remote server, kill the tomcat
process,deploy the war and then start tomcat. is it possible to do
using ant. I came to know that we can define it in build.xml file

Any example ?

Please suggest/Guide

Thanks and Regards

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 10:37 AM.

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