Re: How to make a webapp restart

2010-06-29 Thread Rafa Orteu
Hi.

I think that it could be something like
http://www.mulesoft.com/tomcat-reload

Regards,

2010/6/29 Dola Woolfe dolac...@yahoo.com





 - Original Message 
 From: Caldarale, Charles R chuck.caldar...@unisys.com
 To: Tomcat Users List users@tomcat.apache.org
 Sent: Mon, June 28, 2010 5:54:47 PM
 Subject: RE: How to make a webapp restart

  From: Dola Woolfe [mailto:dolac...@yahoo.com]
  Subject: How to make a webapp restart
 
  What setting makes a webapp restart when a .jar changes under
  tomcat/lib?

 Nothing.  Since the jar is in tomcat/lib, it's handled by the common class
 loader, so you have to restart Tomcat to get the updated jar recognized.  If
 the jar were in the webapp's WEB-INF/lib directory, you could restart just
 that one webapp.

 - Chuck



 Thanks, Chuck.

 And is there a setting to have Tomcat automatically restarted when jar
 changes under tomcat/lib?




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




Re: How to make a webapp restart

2010-06-29 Thread Christoph Kukulies

Am 29.06.2010 00:22, schrieb Dola Woolfe:



Thanks, Chuck.

And is there a setting to have Tomcat automatically restarted when jar changes 
under tomcat/lib?

   
I'm not sure if this is of any use for you, Dola, but when a .war file 
is deployed to the webapps directory, tomcat loads the webapp.
I don't know, what happens, when this .war file is updated our touched. 
And there is JIT compilation if that's of any use.


--
Christoph


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



Re: How to make a webapp restart

2010-06-29 Thread Pid
On 28/06/2010 23:22, Dola Woolfe wrote:
 
 
 
 
 - Original Message 
 From: Caldarale, Charles R chuck.caldar...@unisys.com
 To: Tomcat Users List users@tomcat.apache.org
 Sent: Mon, June 28, 2010 5:54:47 PM
 Subject: RE: How to make a webapp restart
 
 From: Dola Woolfe [mailto:dolac...@yahoo.com]
 Subject: How to make a webapp restart

 What setting makes a webapp restart when a .jar changes under
 tomcat/lib?
 
 Nothing.  Since the jar is in tomcat/lib, it's handled by the common class 
 loader, so you have to restart Tomcat to get the updated jar recognized.  If 
 the jar were in the webapp's WEB-INF/lib directory, you could restart just 
 that one webapp.
 
 - Chuck
 
 
 
 Thanks, Chuck.
 
 And is there a setting to have Tomcat automatically restarted when jar 
 changes under tomcat/lib?

No there isn't.


p

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




signature.asc
Description: OpenPGP digital signature


Re: How to make a webapp restart

2010-06-29 Thread Dola Woolfe
How about this trick then.

Whenever I recompile a library under tomcat/lib, I also touch an empty .jar 
file under WEB-INF/lib.

That seems to work, BUT:

it states:
Jun 29, 2010 2:08:36 PM org.apache.catalina.core.StandardContext reload
INFO: Reloading this Context has started

but a load-on-startup1/load-on-startup servlet does not fire again. What's 
the explanation.

Thanks again,

Dola









- Original Message 
From: Pid p...@pidster.com
To: Tomcat Users List users@tomcat.apache.org
Sent: Tue, June 29, 2010 5:16:41 AM
Subject: Re: How to make a webapp restart

On 28/06/2010 23:22, Dola Woolfe wrote:
 
 
 
 
 - Original Message 
 From: Caldarale, Charles R chuck.caldar...@unisys.com
 To: Tomcat Users List users@tomcat.apache.org
 Sent: Mon, June 28, 2010 5:54:47 PM
 Subject: RE: How to make a webapp restart
 
 From: Dola Woolfe [mailto:dolac...@yahoo.com]
 Subject: How to make a webapp restart

 What setting makes a webapp restart when a .jar changes under
 tomcat/lib?
 
 Nothing.  Since the jar is in tomcat/lib, it's handled by the common class 
 loader, so you have to restart Tomcat to get the updated jar recognized.  If 
 the jar were in the webapp's WEB-INF/lib directory, you could restart just 
 that one webapp.
 
 - Chuck
 
 
 
 Thanks, Chuck.
 
 And is there a setting to have Tomcat automatically restarted when jar 
 changes under tomcat/lib?

No there isn't.


p

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


  

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



RE: How to make a webapp restart

2010-06-29 Thread Caldarale, Charles R
 From: Dola Woolfe [mailto:dolac...@yahoo.com]
 Subject: Re: How to make a webapp restart
 
 Whenever I recompile a library under tomcat/lib, I also 
 touch an empty .jar file under WEB-INF/lib.
 
 That seems to work

What do you mean by work?  That will typically reload the webapp (assuming a 
default Tomcat configuration), but your new jar in Tomcat's lib directory is 
completely independent of that.

 but a load-on-startup1/load-on-startup servlet 
 does not fire again.

How do you know it does not fire again?  (Better to use precise terminology; 
do you mean the init() method is not called?)

 - 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-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: How to make a webapp restart

2010-06-29 Thread Caldarale, Charles R
 From: Dola Woolfe [mailto:dolac...@yahoo.com]
 Subject: Re: How to make a webapp restart
 
 but not fire I mean that init() does not get called.

Does the init() method get called later, when the servlet is actually used by a 
request?

How do you know if the init() method is called or not?

 - 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-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



How to make a webapp restart

2010-06-28 Thread Dola Woolfe
Hi,

What setting makes a webapp restart when a .jar changes under tomcat/lib?

Many thanks in advance,

Dola


  

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



RE: How to make a webapp restart

2010-06-28 Thread Caldarale, Charles R
 From: Dola Woolfe [mailto:dolac...@yahoo.com]
 Subject: How to make a webapp restart
 
 What setting makes a webapp restart when a .jar changes under
 tomcat/lib?

Nothing.  Since the jar is in tomcat/lib, it's handled by the common class 
loader, so you have to restart Tomcat to get the updated jar recognized.  If 
the jar were in the webapp's WEB-INF/lib directory, you could restart just that 
one webapp.

 - 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-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: How to make a webapp restart

2010-06-28 Thread Dola Woolfe




- Original Message 
From: Caldarale, Charles R chuck.caldar...@unisys.com
To: Tomcat Users List users@tomcat.apache.org
Sent: Mon, June 28, 2010 5:54:47 PM
Subject: RE: How to make a webapp restart

 From: Dola Woolfe [mailto:dolac...@yahoo.com]
 Subject: How to make a webapp restart
 
 What setting makes a webapp restart when a .jar changes under
 tomcat/lib?

Nothing.  Since the jar is in tomcat/lib, it's handled by the common class 
loader, so you have to restart Tomcat to get the updated jar recognized.  If 
the jar were in the webapp's WEB-INF/lib directory, you could restart just that 
one webapp.

- Chuck



Thanks, Chuck.

And is there a setting to have Tomcat automatically restarted when jar changes 
under tomcat/lib?


  

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