You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Kaushal Shriyan <ka...@gmail.com> on 2010/03/03 10:34:40 UTC

Deploy war

Hi,

At the moment, I stop,kill tomcat and scp the war to webapps folder
and start tomcat server. is there a better way to do it ?

Thanks,

Kaushal

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Deploy war

Posted by Pid <pi...@pidster.com>.
On 05/03/2010 06:08, Kaushal Shriyan wrote:
> On Wed, Mar 3, 2010 at 9:22 PM, Gurkan Erdogdu<cg...@gmail.com>  wrote:
>> I wonder whether you have looked at
>> http://tomcat.apache.org/tomcat-6.0-doc/index.html or not
>>
>> 2010/3/3 Kaushal Shriyan<ka...@gmail.com>
>>
>>> On Wed, Mar 3, 2010 at 4:50 PM, André Warnier<aw...@ice-sa.com>  wrote:
>>>> Pid wrote:
>>>>>
>>>>> On 03/03/2010 09:52, André Warnier wrote:
>>>>>>
>>>>>> Kaushal Shriyan wrote:
>>>>>>>
>>>>>>> Hi,
>>>>>>>
>>>>>>> At the moment, I stop,kill tomcat and scp the war to webapps folder
>>>>>>> and start tomcat server. is there a better way to do it ?
>>>>>>>
>>>>>>
>>>>>> http://tomcat.apache.org/tomcat-6.0-doc/deployer-howto.html
>>>>>
>>>>> At the very least you could
>>>>
>>>> *without stopping Tomcat*
>>>>
>>>> upload an inactive version "webapp.war-off"
>>>>>
>>>>> and then rename it "webapp.war" once it's there, which would reduce the
>>>>> downtime.
>>>>>
>>>>
>>>> Which is what is explained - among other useful things like autoDeploy -
>>> in
>>>> the section "Deploying on a running Tomcat server".
>>>>
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>>>> For additional commands, e-mail: users-help@tomcat.apache.org
>>>>
>>>>
>>>
>>> Hi,
>>>
>>> is it possible to restart tomcat using ant ? I googled and found out
>>> that its possible using build.xml file.
>>> Any example ?
>>>
>>> Thanks and Regards,
>>>
>>> Kaushal
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>>> For additional commands, e-mail: users-help@tomcat.apache.org
>>>
>>>
>>
>>
>> --
>> Gurkan Erdogdu
>> http://gurkanerdogdu.blogspot.com
>>
>
> Hi,
>
> We face issues whenever we deploy application using tomcat manager we
> used to face the situation where new
> changes were not reflected. On stopping, cleaning work folder and
> starting tomcat again application used to get deployed properly. But
> to restart and clean we need to ssh again on the machine where we want
> to deploy defeating our main purpose.
>
> Also one more issue we have faced is we are not able to locate the new
> war file where Tomcat manager has deployed it
>
> We need to have a tool that does the following on specified remote hosts
>
> 1. stop the tomcat
> 2. back up the existing war
> 3. remove existing wars and folders and copy the new war
> 4. start the tomcat again
>
> Are the above steps possible using ant or is there a better and
> efficient way to do it ?

Yes.  The Deployer uses Ant, perhaps you missed the link from earlier.

  http://tomcat.apache.org/tomcat-6.0-doc/deployer-howto.html#Deploying 
using the Client Deployer Package


p

> Thanks and Regards,
>
> Kaushal
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Deploy war

Posted by Kaushal Shriyan <ka...@gmail.com>.
On Wed, Mar 3, 2010 at 9:22 PM, Gurkan Erdogdu <cg...@gmail.com> wrote:
> I wonder whether you have looked at
> http://tomcat.apache.org/tomcat-6.0-doc/index.html or not
>
> 2010/3/3 Kaushal Shriyan <ka...@gmail.com>
>
>> On Wed, Mar 3, 2010 at 4:50 PM, André Warnier <aw...@ice-sa.com> wrote:
>> > Pid wrote:
>> >>
>> >> On 03/03/2010 09:52, André Warnier wrote:
>> >>>
>> >>> Kaushal Shriyan wrote:
>> >>>>
>> >>>> Hi,
>> >>>>
>> >>>> At the moment, I stop,kill tomcat and scp the war to webapps folder
>> >>>> and start tomcat server. is there a better way to do it ?
>> >>>>
>> >>>
>> >>> http://tomcat.apache.org/tomcat-6.0-doc/deployer-howto.html
>> >>
>> >> At the very least you could
>> >
>> > *without stopping Tomcat*
>> >
>> > upload an inactive version "webapp.war-off"
>> >>
>> >> and then rename it "webapp.war" once it's there, which would reduce the
>> >> downtime.
>> >>
>> >
>> > Which is what is explained - among other useful things like autoDeploy -
>> in
>> > the section "Deploying on a running Tomcat server".
>> >
>> >
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> > For additional commands, e-mail: users-help@tomcat.apache.org
>> >
>> >
>>
>> Hi,
>>
>> is it possible to restart tomcat using ant ? I googled and found out
>> that its possible using build.xml file.
>> Any example ?
>>
>> Thanks and Regards,
>>
>> Kaushal
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>>
>
>
> --
> Gurkan Erdogdu
> http://gurkanerdogdu.blogspot.com
>

Hi,

We face issues whenever we deploy application using tomcat manager we
used to face the situation where new
changes were not reflected. On stopping, cleaning work folder and
starting tomcat again application used to get deployed properly. But
to restart and clean we need to ssh again on the machine where we want
to deploy defeating our main purpose.

Also one more issue we have faced is we are not able to locate the new
war file where Tomcat manager has deployed it

We need to have a tool that does the following on specified remote hosts

1. stop the tomcat
2. back up the existing war
3. remove existing wars and folders and copy the new war
4. start the tomcat again

Are the above steps possible using ant or is there a better and
efficient way to do it ?

Thanks and Regards,

Kaushal

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Deploy war

Posted by Gurkan Erdogdu <cg...@gmail.com>.
I wonder whether you have looked at
http://tomcat.apache.org/tomcat-6.0-doc/index.html or not

2010/3/3 Kaushal Shriyan <ka...@gmail.com>

> On Wed, Mar 3, 2010 at 4:50 PM, André Warnier <aw...@ice-sa.com> wrote:
> > Pid wrote:
> >>
> >> On 03/03/2010 09:52, André Warnier wrote:
> >>>
> >>> Kaushal Shriyan wrote:
> >>>>
> >>>> Hi,
> >>>>
> >>>> At the moment, I stop,kill tomcat and scp the war to webapps folder
> >>>> and start tomcat server. is there a better way to do it ?
> >>>>
> >>>
> >>> http://tomcat.apache.org/tomcat-6.0-doc/deployer-howto.html
> >>
> >> At the very least you could
> >
> > *without stopping Tomcat*
> >
> > upload an inactive version "webapp.war-off"
> >>
> >> and then rename it "webapp.war" once it's there, which would reduce the
> >> downtime.
> >>
> >
> > Which is what is explained - among other useful things like autoDeploy -
> in
> > the section "Deploying on a running Tomcat server".
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> > For additional commands, e-mail: users-help@tomcat.apache.org
> >
> >
>
> Hi,
>
> is it possible to restart tomcat using ant ? I googled and found out
> that its possible using build.xml file.
> Any example ?
>
> Thanks and Regards,
>
> Kaushal
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>


-- 
Gurkan Erdogdu
http://gurkanerdogdu.blogspot.com

Re: Deploy war

Posted by Kaushal Shriyan <ka...@gmail.com>.
On Wed, Mar 3, 2010 at 4:50 PM, André Warnier <aw...@ice-sa.com> wrote:
> Pid wrote:
>>
>> On 03/03/2010 09:52, André Warnier wrote:
>>>
>>> Kaushal Shriyan wrote:
>>>>
>>>> Hi,
>>>>
>>>> At the moment, I stop,kill tomcat and scp the war to webapps folder
>>>> and start tomcat server. is there a better way to do it ?
>>>>
>>>
>>> http://tomcat.apache.org/tomcat-6.0-doc/deployer-howto.html
>>
>> At the very least you could
>
> *without stopping Tomcat*
>
> upload an inactive version "webapp.war-off"
>>
>> and then rename it "webapp.war" once it's there, which would reduce the
>> downtime.
>>
>
> Which is what is explained - among other useful things like autoDeploy - in
> the section "Deploying on a running Tomcat server".
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Hi,

is it possible to restart tomcat using ant ? I googled and found out
that its possible using build.xml file.
Any example ?

Thanks and Regards,

Kaushal

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Deploy war

Posted by André Warnier <aw...@ice-sa.com>.
Pid wrote:
> On 03/03/2010 09:52, André Warnier wrote:
>> Kaushal Shriyan wrote:
>>> Hi,
>>>
>>> At the moment, I stop,kill tomcat and scp the war to webapps folder
>>> and start tomcat server. is there a better way to do it ?
>>>
>>
>> http://tomcat.apache.org/tomcat-6.0-doc/deployer-howto.html
> 
> At the very least you could 

*without stopping Tomcat*

upload an inactive version "webapp.war-off"
> and then rename it "webapp.war" once it's there, which would reduce the 
> downtime.
> 

Which is what is explained - among other useful things like autoDeploy - 
in the section "Deploying on a running Tomcat server".



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Deploy war

Posted by Pid <pi...@pidster.com>.
On 03/03/2010 09:52, André Warnier wrote:
> Kaushal Shriyan wrote:
>> Hi,
>>
>> At the moment, I stop,kill tomcat and scp the war to webapps folder
>> and start tomcat server. is there a better way to do it ?
>>
>
> http://tomcat.apache.org/tomcat-6.0-doc/deployer-howto.html

At the very least you could upload an inactive version "webapp.war-off" 
and then rename it "webapp.war" once it's there, which would reduce the 
downtime.


p

> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Deploy war

Posted by André Warnier <aw...@ice-sa.com>.
Kaushal Shriyan wrote:
> Hi,
> 
> At the moment, I stop,kill tomcat and scp the war to webapps folder
> and start tomcat server. is there a better way to do it ?
> 

http://tomcat.apache.org/tomcat-6.0-doc/deployer-howto.html


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org