RE: "Gracefull" restart of tomcat
> From: Christopher Schultz [mailto:ch...@christopherschultz.net] > Subject: Re: "Gracefull" restart of tomcat > > My experience is that if a .class file has been loaded by the > WebappClassLoader and it gets updated, the webapp is reloaded. Odd, because I observer no such behavior (just tried it on 6.0.26, Windows Vista), and it's certainly not documented to work that way. Will try it on Linux when I get a chance. - 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.
Re: "Gracefull" restart of tomcat
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, On 6/1/2010 9:33 AM, Caldarale, Charles R wrote: >> From: Christopher Schultz [mailto:ch...@christopherschultz.net] >> Subject: Re: "Gracefull" restart of tomcat >> >> With autoDeploy="true", you ought to just be able to update your .class >> or .jar files and Tomcat will automatically restart the webapp. > > Not quite; files to be monitored for changes have to be specified in a > element nested inside the webapp's element. By > default, this is only WEB-INF/web.xml, so a touch of that file should trigger > a restart of the webapp without taking Tomcat down. My experience is that if a .class file has been loaded by the WebappClassLoader and it gets updated, the webapp is reloaded. The same is true of a .class file loaded from a .jar file in WEB-INF/classes: if the .jar file changes, the webapp is auto-reloaded. I can observe this behavior in both 5.5(.25/.26/.27/.28) and 6.0(.26). - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkwFETIACgkQ9CaO5/Lv0PDEhQCeJLBfvpfIjF/a3NEYeCRRegkX O/kAn0R05Ze3qyUrqHQTsTCFRlE+B3CL =SYs8 -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: "Gracefull" restart of tomcat
> From: Christopher Schultz [mailto:ch...@christopherschultz.net] > Subject: Re: "Gracefull" restart of tomcat > > With autoDeploy="true", you ought to just be able to update your .class > or .jar files and Tomcat will automatically restart the webapp. Not quite; files to be monitored for changes have to be specified in a element nested inside the webapp's element. By default, this is only WEB-INF/web.xml, so a touch of that file should trigger a restart of the webapp without taking Tomcat down. - 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.
Re: "Gracefull" restart of tomcat
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Petr, On 6/1/2010 6:59 AM, Petr Hracek wrote: > my context file foo.xml is: > > The "path" attribute is illegal in all versions of Tomcat when using an external XML file: remove it. Where does "foo.xml" reside on the filesystem? More specifically, into what is it deployed? > > resourceName="UserDatabase"/> > unpackWARs="true" autoDeploy="true" >xmlValidation="false" xmlNamespaceAware="false"> > With autoDeploy="true", you ought to just be able to update your .class or .jar files and Tomcat will automatically restart the webapp. Note that updating static content will not cause Tomcat to reload, and there have been reports of some people having problems with cached copies of files. It's always best to trigger an application restart one way or another. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkwFCikACgkQ9CaO5/Lv0PDTewCgs6RXpW/DT9MzYfUykr5qS22p oRsAoJmNA7djnyJ6WkjFYgnnk35OrIdM =IQSB -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: "Gracefull" restart of tomcat
Hello *, my context file foo.xml is: my server.xml file is: If more config files will be neccessary I will provide. 2010/6/1 Pid > On 01/06/2010 11:31, Petr Hracek wrote: > > Hello *, > > > > I have make a really big error. > > Tomcat which is installed on the our systems is: > > tomcat5-5.5.27-0.8.39 > > > > If I have in /etc/tomcat5/base/Catalina/localhost file like foo.xml > > wich referes to /opt/foo/servlet. After uploading new jar files to > > /opt/foo/servlet > > how I can tell to tomcat that servlet has to be reloaded. > > Perhaps I need to be more specific: *post your config files to the list*. > > > p > > > > Thanks for your responses > > > > Best Regards > > Petr Hracek > > > > 2010/6/1 Pid * mailto:p...@pidster.com>> > > > > > > > > On 1 Jun 2010, at 10:01, Petr Hracek > <mailto:phrac...@gmail.com>> wrote: > > > >> Hello *, > >> > >> Manager application is not installed on the system. > >> You mentioned that it depends on the configuration. > >> Configuration of tomcat which is used is delivered by OS. > >> In the /etc/tomcat5/base/Catalina/localhost is only relevant XML > file. > > > > If you know which config files are relevant you already know the > > answer to your problem, no? > > > > You should upgrade to a newer version of Tomcat - 5.0 is very very > old. > > > > > > p > > > >> which contains path and docbase where tomcat can find servlets and > >> other jar files. > >> > >> War files are not used. Only jar files with web.xml files. > >> > >> 2010/5/31 Pid < <mailto:p...@pidster.com>p...@pidster.com > >> <mailto:p...@pidster.com>> > >> > >> On 31/05/2010 11:40, Petr Hracek wrote: > >> > Dear users, > >> > > >> > I would like to ask you on the some thing which regards to > >> the application > >> > deployment and > >> > neccessary restart of tomcat5. > >> > >> Tomcat 5? That's pretty old, and not supported any more. > >> > >> > When I am some servlet which are run under tomcat and I have > >> build up the > >> > new jar files for my application > >> > is it enought to copy this file to my location without > >> neccessary restart of > >> > tomcat? > >> > >> Depends on your configuration. Which you haven't posted. > >> > >> > Is there any "gracefull" restart of tomcat like in apache2? > >> > > >> > Is there any mechanishm how to update servlets when tomcat > >> is already > >> > running > >> > so that tomcat 5 will not be restarted and new servlets will > >> be loaded? > >> > >> You can update/replace the war file. This may trigger an > >> application > >> restart, depending on your configuration. > >> > >> The manager application can also be used to update and restart > web > >> applications. > >> > >> > >> p > >> > >> > >> > >> > >> -- > >> Best Regards / S pozdravem > >> Petr Hracek > > > > > > > > > > -- > > Best Regards / S pozdravem > > Petr Hracek > > > -- Best Regards / S pozdravem Petr Hracek
Re: "Gracefull" restart of tomcat
On 01/06/2010 11:31, Petr Hracek wrote: > Hello *, > > I have make a really big error. > Tomcat which is installed on the our systems is: > tomcat5-5.5.27-0.8.39 > > If I have in /etc/tomcat5/base/Catalina/localhost file like foo.xml > wich referes to /opt/foo/servlet. After uploading new jar files to > /opt/foo/servlet > how I can tell to tomcat that servlet has to be reloaded. Perhaps I need to be more specific: *post your config files to the list*. p > Thanks for your responses > > Best Regards > Petr Hracek > > 2010/6/1 Pid * mailto:p...@pidster.com>> > > > > On 1 Jun 2010, at 10:01, Petr Hracek <mailto:phrac...@gmail.com>> wrote: > >> Hello *, >> >> Manager application is not installed on the system. >> You mentioned that it depends on the configuration. >> Configuration of tomcat which is used is delivered by OS. >> In the /etc/tomcat5/base/Catalina/localhost is only relevant XML file. > > If you know which config files are relevant you already know the > answer to your problem, no? > > You should upgrade to a newer version of Tomcat - 5.0 is very very old. > > > p > >> which contains path and docbase where tomcat can find servlets and >> other jar files. >> >> War files are not used. Only jar files with web.xml files. >> >> 2010/5/31 Pid < <mailto:p...@pidster.com>p...@pidster.com >> <mailto:p...@pidster.com>> >> >> On 31/05/2010 11:40, Petr Hracek wrote: >> > Dear users, >> > >> > I would like to ask you on the some thing which regards to >> the application >> > deployment and >> > neccessary restart of tomcat5. >> >> Tomcat 5? That's pretty old, and not supported any more. >> >> > When I am some servlet which are run under tomcat and I have >> build up the >> > new jar files for my application >> > is it enought to copy this file to my location without >> neccessary restart of >> > tomcat? >> >> Depends on your configuration. Which you haven't posted. >> >> > Is there any "gracefull" restart of tomcat like in apache2? >> > >> > Is there any mechanishm how to update servlets when tomcat >> is already >> > running >> > so that tomcat 5 will not be restarted and new servlets will >> be loaded? >> >> You can update/replace the war file. This may trigger an >> application >> restart, depending on your configuration. >> >> The manager application can also be used to update and restart web >> applications. >> >> >> p >> >> >> >> >> -- >> Best Regards / S pozdravem >> Petr Hracek > > > > > -- > Best Regards / S pozdravem > Petr Hracek signature.asc Description: OpenPGP digital signature
Re: "Gracefull" restart of tomcat
Hello *, Manager application is not installed on the system. You mentioned that it depends on the configuration. Configuration of tomcat which is used is delivered by OS. In the /etc/tomcat5/base/Catalina/localhost is only relevant XML file. which contains path and docbase where tomcat can find servlets and other jar files. War files are not used. Only jar files with web.xml files. 2010/5/31 Pid > On 31/05/2010 11:40, Petr Hracek wrote: > > Dear users, > > > > I would like to ask you on the some thing which regards to the > application > > deployment and > > neccessary restart of tomcat5. > > Tomcat 5? That's pretty old, and not supported any more. > > > When I am some servlet which are run under tomcat and I have build up the > > new jar files for my application > > is it enought to copy this file to my location without neccessary restart > of > > tomcat? > > Depends on your configuration. Which you haven't posted. > > > Is there any "gracefull" restart of tomcat like in apache2? > > > > Is there any mechanishm how to update servlets when tomcat is already > > running > > so that tomcat 5 will not be restarted and new servlets will be loaded? > > You can update/replace the war file. This may trigger an application > restart, depending on your configuration. > > The manager application can also be used to update and restart web > applications. > > > p > > -- Best Regards / S pozdravem Petr Hracek
Re: "Gracefull" restart of tomcat
On 31/05/2010 11:40, Petr Hracek wrote: > Dear users, > > I would like to ask you on the some thing which regards to the application > deployment and > neccessary restart of tomcat5. Tomcat 5? That's pretty old, and not supported any more. > When I am some servlet which are run under tomcat and I have build up the > new jar files for my application > is it enought to copy this file to my location without neccessary restart of > tomcat? Depends on your configuration. Which you haven't posted. > Is there any "gracefull" restart of tomcat like in apache2? > > Is there any mechanishm how to update servlets when tomcat is already > running > so that tomcat 5 will not be restarted and new servlets will be loaded? You can update/replace the war file. This may trigger an application restart, depending on your configuration. The manager application can also be used to update and restart web applications. p signature.asc Description: OpenPGP digital signature
Re: "Gracefull" restart of tomcat
I am not sure if you had looked into deploy redeploy feature of tomcat. Probably, that is what you are looking for Perry On Mon, May 31, 2010 at 4:10 PM, Petr Hracek wrote: > Dear users, > > I would like to ask you on the some thing which regards to the application > deployment and > neccessary restart of tomcat5. > > When I am some servlet which are run under tomcat and I have build up the > new jar files for my application > is it enought to copy this file to my location without neccessary restart > of > tomcat? > > Is there any "gracefull" restart of tomcat like in apache2? > > Is there any mechanishm how to update servlets when tomcat is already > running > so that tomcat 5 will not be restarted and new servlets will be loaded? > > Thank you in advance > > -- > Best Regards / S pozdravem > Petr Hracek > -- Pankaj Tiwari
"Gracefull" restart of tomcat
Dear users, I would like to ask you on the some thing which regards to the application deployment and neccessary restart of tomcat5. When I am some servlet which are run under tomcat and I have build up the new jar files for my application is it enought to copy this file to my location without neccessary restart of tomcat? Is there any "gracefull" restart of tomcat like in apache2? Is there any mechanishm how to update servlets when tomcat is already running so that tomcat 5 will not be restarted and new servlets will be loaded? Thank you in advance -- Best Regards / S pozdravem Petr Hracek