You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Jonathan Soons <js...@juilliard.edu> on 2010/02/19 22:13:12 UTC

Restart one webapp

 
I have one webapp that randomly freezes. I detect this with a script and restart tomcat. I would prefer to restart just the one webapp the way the manager does. Is there a command line way to do this?

jon soons 

Java version "1.6.0_14"
Tomcat 5.5.27
Debian Linux 2.6.24-23-xen
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: Restart one webapp

Posted by Jonathan Soons <js...@juilliard.edu>.
 Restarting works fine. I think the restarting mechanism is built into tomcat and not into the webapp itself.

Konstantin: Thanks for the tip on wget documentation. I was reading tomcat docs only.

jonsoons

-----Original Message-----
From: Mikolaj Rydzewski [mailto:miki@ceti.pl] 
Sent: Sunday, February 21, 2010 4:15 PM
To: Tomcat Users List
Subject: Re: Restart one webapp


Jonathan Soons wrote:
>  
> I have one webapp that randomly freezes. I detect this with a script and restart tomcat. I would prefer to restart just the one webapp the way the manager does. 
Are you soure, that manager is able to restart webapp when it is 'frozen'?

--
Mikolaj Rydzewski <mi...@ceti.pl>



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


Re: Restart one webapp

Posted by Mikolaj Rydzewski <mi...@ceti.pl>.
Jonathan Soons wrote:
>  
> I have one webapp that randomly freezes. I detect this with a script and restart tomcat. I would prefer to restart just the one webapp the way the manager does. 
Are you soure, that manager is able to restart webapp when it is 'frozen'?

-- 
Mikolaj Rydzewski <mi...@ceti.pl>


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


Re: Restart one webapp

Posted by Konstantin Kolinko <kn...@gmail.com>.
2010/2/21 Jonathan Soons <js...@juilliard.edu>:
> The documentation gives no way to append a username and password so this is where I am stuck.
>
> www:~# wget localhost:8080/manager/list
> --2010-02-21 02:31:52--  http://localhost:8080/manager/list
> Resolving localhost... 127.0.0.1
> Connecting to localhost|127.0.0.1|:8080... connected.
> HTTP request sent, awaiting response... 401 Unauthorized
> Authorization failed.
> www:~#

Citing from  `wget --help`:

HTTP options:
       --http-user=USER        set http user to USER.
       --http-password=PASS    set http password to PASS.

Try those.

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


RE: Restart one webapp

Posted by Jonathan Soons <js...@juilliard.edu>.
The documentation gives no way to append a username and password so this is where I am stuck.

www:~# wget localhost:8080/manager/list
--2010-02-21 02:31:52--  http://localhost:8080/manager/list
Resolving localhost... 127.0.0.1
Connecting to localhost|127.0.0.1|:8080... connected.
HTTP request sent, awaiting response... 401 Unauthorized
Authorization failed.
www:~#

________________________________________
From: Caldarale, Charles R [Chuck.Caldarale@unisys.com]
Sent: Saturday, February 20, 2010 10:15 AM
To: Tomcat Users List
Subject: RE: Restart one webapp

> From: Jonathan Soons [mailto:jsoons@juilliard.edu]
> Subject: Restart one webapp

> I have one webapp that randomly freezes. I detect this with a script
> and restart tomcat. I would prefer to restart just the one webapp the
> way the manager does. Is there a command line way to do this?

Use curl or wget to send the manager the plain-text commands, not the HTML ones.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.



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


RE: Restart one webapp

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Jonathan Soons [mailto:jsoons@juilliard.edu]
> Subject: Restart one webapp
 
> I have one webapp that randomly freezes. I detect this with a script
> and restart tomcat. I would prefer to restart just the one webapp the
> way the manager does. Is there a command line way to do this?

Use curl or wget to send the manager the plain-text commands, not the HTML ones.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.


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