Restarting Tomcat via Ant
Is there any way I can restart a remote Tomcat using an Ant task? I googled a while and even found some sources but they were about HttpClient abusing the manager application and exec calling the batches via net shares. Anything better than the ManagerApp abuse? thx in advance -- Sent from the Tomcat - User forum at Nabble.com: http://www.nabble.com/Restarting-Tomcat-via-Ant-t207149.html#a577719
RE: Restarting Tomcat via Ant
project name=Learning default=reloadContext basedir=. target name=reloadContext get dest=stop.txt src=http://localhost:8080/manager/stop?path=/Learning; username=adminUserName password=adminPassword/ loadfile property=STOPOUTPUT srcfile=stop.txt/loadfile echo${STOPOUTPUT}/echo delete file=stop.txt/delete get dest=start.txt src=http://localhost:8080/manager/start?path=/Learning; username=adminUserNAme password=adminPassword/ loadfile property=STARTOUTPUT srcfile=start.txt/loadfile echo${STARTOUTPUT}/echo delete file=start.txt/delete /target /project The only thing you need to change is the http://localhost:8080/manager/stop?path=/Learning; of it ... So if you want to do for www.manik.com for context /Learning Then it will be http://www.manik.com/manager/stop?path=/Learning and if you want to do for www.guru.com for context /Learning Then it will be http://www.guru.com/manager/stop?path=/Learning Hope you find this useful -Original Message- From: itteerde (sent by Nabble.com) [mailto:[EMAIL PROTECTED] Sent: 08 August 2005 15:43 To: tomcat-user@jakarta.apache.org Subject: Restarting Tomcat via Ant Is there any way I can restart a remote Tomcat using an Ant task? I googled a while and even found some sources but they were about HttpClient abusing the manager application and exec calling the batches via net shares. Anything better than the ManagerApp abuse? thx in advance -- Sent from the Tomcat - User forum at Nabble.com: http://www.nabble.com/Restarting-Tomcat-via-Ant-t207149.html#a577719 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Viewing Web Resource Updates without Restarting Tomcat
I wasn't aware of Tomcat doing any caching of JSP pages... could be wrong, but are you sure it's Tomcat doing the caching, not a browser or proxy server? You may want to look at the Expires, Cache-Control etc. headers that are being sent with your pages. You can clear the compiled classes in the work dir if you want to force JSPs to be recompiled, but I've always found that Tomcat detects new JSPs itself (even with the Context set with reloadable=false). Anything in WEB-INF/classes or WEB-INF/lib (basically anything picked up by the classloader) requires a restart or reload for changes to be detected. Cheers Martin Martyn George wrote: Currently, I wish to make minor changes to web pages, and the like, associated with a production application without restarting Tomcat, and with minimal impact to users. These changes can be made, but are not immediately observable due to caching. Is there any command that can be issued to Tomcat so that changes can be immediately observed (e.g. a cache flush)? Thankyou _ Sell your car for $9 on carpoint.com.au http://www.carpoint.com.au/sellyourcar - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Viewing Web Resource Updates without Restarting Tomcat
What version are you running? Doug - Original Message - From: Martyn George [EMAIL PROTECTED] To: tomcat-user@jakarta.apache.org Sent: Wednesday, July 27, 2005 10:59 PM Subject: Viewing Web Resource Updates without Restarting Tomcat Currently, I wish to make minor changes to web pages, and the like, associated with a production application without restarting Tomcat, and with minimal impact to users. These changes can be made, but are not immediately observable due to caching. Is there any command that can be issued to Tomcat so that changes can be immediately observed (e.g. a cache flush)? Thankyou _ Sell your car for $9 on carpoint.com.au http://www.carpoint.com.au/sellyourcar - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Viewing Web Resource Updates without Restarting Tomcat
Currently, I wish to make minor changes to web pages, and the like, associated with a production application without restarting Tomcat, and with minimal impact to users. These changes can be made, but are not immediately observable due to caching. Is there any command that can be issued to Tomcat so that changes can be immediately observed (e.g. a cache flush)? Thankyou _ Sell your car for $9 on carpoint.com.au http://www.carpoint.com.au/sellyourcar - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: restarting tomcat in production
Agreed, and if you have any session information and the session can't be (for whatever reason) be de/serialized, it would indeed be a very bad idea to restart tomcat. Christoph Robert Harper wrote: The best practice is to find the leak and fix it. Restarting is a cover up to a problem that may cause bigger problems down the road as the project scope increases. You can do this but it only hides the real problem and if someone replicates you site and forgets to write or enable the script, then the problem will resurface and you will have to start the discovery process all over again. Robert S. Harper Information Access Technology, Inc. -Original Message- From: Ron Heeb [mailto:[EMAIL PROTECTED] Sent: Monday, July 25, 2005 2:16 PM To: tomcat-user@jakarta.apache.org Subject: restarting tomcat in production hi, i'm looking for some feedback on whether or not it's a normal procedure to regularly restart tomcat. we have some memory leak somewhere that forces us to restart the process every 6-8 days but we're thinking that just putting in a script to restart daily would prevent this and may not be a bad idea to do even if there wasn't any leak. any response appreciated. thanks in advance...ron - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
restarting tomcat in production
hi, i'm looking for some feedback on whether or not it's a normal procedure to regularly restart tomcat. we have some memory leak somewhere that forces us to restart the process every 6-8 days but we're thinking that just putting in a script to restart daily would prevent this and may not be a bad idea to do even if there wasn't any leak. any response appreciated. thanks in advance...ron -- Ron Heeb, Project Leader Applications Development - Information Technology Resources California State University, Northridge 18111 Nordhoff St., Northridge, CA 91330-8280 [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: restarting tomcat in production
The best practice is to find the leak and fix it. Restarting is a cover up to a problem that may cause bigger problems down the road as the project scope increases. You can do this but it only hides the real problem and if someone replicates you site and forgets to write or enable the script, then the problem will resurface and you will have to start the discovery process all over again. Robert S. Harper Information Access Technology, Inc. -Original Message- From: Ron Heeb [mailto:[EMAIL PROTECTED] Sent: Monday, July 25, 2005 2:16 PM To: tomcat-user@jakarta.apache.org Subject: restarting tomcat in production hi, i'm looking for some feedback on whether or not it's a normal procedure to regularly restart tomcat. we have some memory leak somewhere that forces us to restart the process every 6-8 days but we're thinking that just putting in a script to restart daily would prevent this and may not be a bad idea to do even if there wasn't any leak. any response appreciated. thanks in advance...ron -- Ron Heeb, Project Leader Applications Development - Information Technology Resources California State University, Northridge 18111 Nordhoff St., Northridge, CA 91330-8280 [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Redeployment of a webapp without restarting tomcat
Hi I am using tomcat 5.0.X, and have the following serlvet.xml file: /etc/tomcat5/Catalina/localhost/Servlet.xml Context path= docBase=/home/chrisp/Servlet.war reloadable=true/ I would like the webapp to be unloaded and reloaded when I make changes to the war file. autoDeploy and unpackWARs are both true in the server.xml Currently, when tomcat starts, it upacks Servlet.war to /var/lib/tomcat5/webapps/ROOT. If I update Servlet.xml, the webapp is reloaded, but not unpacked again, even if the war file has changed. Is there a way to get the war to be unpacked again if it has changed. I don't have the manager webapp installed, and do not want to install it. Are there any other ways around my problem? -- Chris Picton [EMAIL PROTECTED] Tangent Systems - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: new Host without restarting Tomcat
So nobody knows how to deploy a new Host without the restart of Tomcat ? On Tue, 11 Jan 2005 16:05:06 +0100 Lionel Farbos [EMAIL PROTECTED] wrote: Hi all, I'd want to create and deploy new Virtual(s) Host(s) and Contexts without having to restart the entire Tomcat Server (4.1.31 or 5.0.28). This works if my Host(s) exist in server.xml when I start Tomcat (I follow http://jakarta.apache.org/tomcat/tomcat-4.1-doc/manager-howto.html). BUT, if I want to create and deploy new Hosts before deploying new Contexts, I don't succeed (I tried this with the Tomcat Admin tool and the Tomcat Manager Tool) In my test, I create a new Host (myHOST) with the Tomcat Admin tool. I put a Logger and a manager Context into it. The problem is : With the Admin GUI, it is not possible to put privileged=true, so, when I launch http://myHost:8080/manager/html/list, I have a SecurityException because the HTMLManagerServlet est privileged and cannot be loaded by this web app... I don't find a solution in the mailing lists, so, what is the solution for this ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: new Host without restarting Tomcat
I may be incorrect, but in all I have read, the server.xml is only read once, during Tomcat startup. This is the reason for the context.xml fragment files which can be read and loaded without a restart. So the answer is it can't be done at this point. To the best of my knowledge. http://jakarta.apache.org/tomcat/tomcat-5.0-doc/architecture/startup/serverStartup.txt Section b4 Doug - Original Message - From: Lionel Farbos [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Wednesday, January 12, 2005 6:38 AM Subject: Re: new Host without restarting Tomcat So nobody knows how to deploy a new Host without the restart of Tomcat ? On Tue, 11 Jan 2005 16:05:06 +0100 Lionel Farbos [EMAIL PROTECTED] wrote: Hi all, I'd want to create and deploy new Virtual(s) Host(s) and Contexts without having to restart the entire Tomcat Server (4.1.31 or 5.0.28). This works if my Host(s) exist in server.xml when I start Tomcat (I follow http://jakarta.apache.org/tomcat/tomcat-4.1-doc/manager-howto.html). BUT, if I want to create and deploy new Hosts before deploying new Contexts, I don't succeed (I tried this with the Tomcat Admin tool and the Tomcat Manager Tool) In my test, I create a new Host (myHOST) with the Tomcat Admin tool. I put a Logger and a manager Context into it. The problem is : With the Admin GUI, it is not possible to put privileged=true, so, when I launch http://myHost:8080/manager/html/list, I have a SecurityException because the HTMLManagerServlet est privileged and cannot be loaded by this web app... I don't find a solution in the mailing lists, so, what is the solution for this ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: new Host without restarting Tomcat
Thank you for your response. server.xml is read only once, but, with the Tomcat Admin Tool, we can increase this config and save it. So, I think the only (perhaps?) missing feature to do the creation of the Host is the ability to declare the privileged=true within the Context Manager. I'll try to declare a bug for this. Thank you. On Wed, 12 Jan 2005 07:51:20 -0500 Parsons Technical Services [EMAIL PROTECTED] wrote: I may be incorrect, but in all I have read, the server.xml is only read once, during Tomcat startup. This is the reason for the context.xml fragment files which can be read and loaded without a restart. So the answer is it can't be done at this point. To the best of my knowledge. http://jakarta.apache.org/tomcat/tomcat-5.0-doc/architecture/startup/serverStartup.txt Section b4 Doug - Original Message - From: Lionel Farbos [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Wednesday, January 12, 2005 6:38 AM Subject: Re: new Host without restarting Tomcat So nobody knows how to deploy a new Host without the restart of Tomcat ? On Tue, 11 Jan 2005 16:05:06 +0100 Lionel Farbos [EMAIL PROTECTED] wrote: Hi all, I'd want to create and deploy new Virtual(s) Host(s) and Contexts without having to restart the entire Tomcat Server (4.1.31 or 5.0.28). This works if my Host(s) exist in server.xml when I start Tomcat (I follow http://jakarta.apache.org/tomcat/tomcat-4.1-doc/manager-howto.html). BUT, if I want to create and deploy new Hosts before deploying new Contexts, I don't succeed (I tried this with the Tomcat Admin tool and the Tomcat Manager Tool) In my test, I create a new Host (myHOST) with the Tomcat Admin tool. I put a Logger and a manager Context into it. The problem is : With the Admin GUI, it is not possible to put privileged=true, so, when I launch http://myHost:8080/manager/html/list, I have a SecurityException because the HTMLManagerServlet est privileged and cannot be loaded by this web app... I don't find a solution in the mailing lists, so, what is the solution for this ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
new Host without restarting Tomcat
Hi all, I'd want to create and deploy new Virtual(s) Host(s) and Contexts without having to restart the entire Tomcat Server (4.1.31 or 5.0.28). This works if my Host(s) exist in server.xml when I start Tomcat (I follow http://jakarta.apache.org/tomcat/tomcat-4.1-doc/manager-howto.html). BUT, if I want to create and deploy new Hosts before deploying new Contexts, I don't succeed (I tried this with the Tomcat Admin tool and the Tomcat Manager Tool) In my test, I create a new Host (myHOST) with the Tomcat Admin tool. I put a Logger and a manager Context into it. The problem is : With the Admin GUI, it is not possible to put privileged=true, so, when I launch http://myHost:8080/manager/html/list, I have a SecurityException because the HTMLManagerServlet est privileged and cannot be loaded by this web app... I don't find a solution in the mailing lists, so, what is the solution for this ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: AW: How can I add Host without restarting Tomcat?
Hi, yeah thanks - have been doing that this morning! Regards, Carl -Original Message- From: Ivan Jouikov [mailto:[EMAIL PROTECTED] Sent: 21 June 2004 09:34 PM To: 'Tomcat Users List' Subject: RE: AW: How can I add Host without restarting Tomcat? Look at tomcat's administration tool - it can dynamically add hosts. Looks at its codes. Go from there. -Original Message- From: Carl Olivier [mailto:[EMAIL PROTECTED] Sent: Monday, June 21, 2004 7:00 AM To: 'Tomcat Users List' Subject: RE: AW: How can I add Host without restarting Tomcat? Hmmm Is it possible to prgramatically init and start a new StandardHost? I have code that deploys the context for a new Host and writes the Host block into the server.xml - now I want to be able to programatically init and start the new host - making it available WITHOUT having to do a server restart! Is this possible? Thanks! Carl -Original Message- From: Peter Rossbach [mailto:[EMAIL PROTECTED] Sent: 18 June 2004 12:49 PM To: Tomcat Users List Subject: Re: AW: How can I add Host without restarting Tomcat? Hey, you can used the admin application. Tipp: Add a user with admin role at your conf/tomcat-users.xml! Before you create the new host, create the webapps directory! After create your new host, copy the Catalina/localhost/manager.xml to Catalina/newhost/manager.xml and you have at usefull new host without server restart. Tested with Tomcat 5.0.25. regards Peter Nikola Milutinovic schrieb: Gunnar Prschke wrote: Non way, because it is written in server.xml file. You'll need to stop the server, I guess Tomcat has a manager application. It can deploy new contexts (applications) on-the-fly, but I'm not sure about hosts. Nix. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- J2EE Systemarchitekt und Tomcat Experte http://objektpark.de/ http://www.webapp.de/ Am Josephsschacht 72, 44879 Bochum, Deutschland Telefon: (49) 234 9413228 Mobil:(49) 175 1660884 E-Mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.701 / Virus Database: 458 - Release Date: 07.06.2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.701 / Virus Database: 458 - Release Date: 07.06.2004 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: AW: How can I add Host without restarting Tomcat?
Hmmm Is it possible to prgramatically init and start a new StandardHost? I have code that deploys the context for a new Host and writes the Host block into the server.xml - now I want to be able to programatically init and start the new host - making it available WITHOUT having to do a server restart! Is this possible? Thanks! Carl -Original Message- From: Peter Rossbach [mailto:[EMAIL PROTECTED] Sent: 18 June 2004 12:49 PM To: Tomcat Users List Subject: Re: AW: How can I add Host without restarting Tomcat? Hey, you can used the admin application. Tipp: Add a user with admin role at your conf/tomcat-users.xml! Before you create the new host, create the webapps directory! After create your new host, copy the Catalina/localhost/manager.xml to Catalina/newhost/manager.xml and you have at usefull new host without server restart. Tested with Tomcat 5.0.25. regards Peter Nikola Milutinovic schrieb: Gunnar Pörschke wrote: Non way, because it is written in server.xml file. You'll need to stop the server, I guess Tomcat has a manager application. It can deploy new contexts (applications) on-the-fly, but I'm not sure about hosts. Nix. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- J2EE Systemarchitekt und Tomcat Experte http://objektpark.de/ http://www.webapp.de/ Am Josephsschacht 72, 44879 Bochum, Deutschland Telefon: (49) 234 9413228 Mobil:(49) 175 1660884 E-Mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: AW: How can I add Host without restarting Tomcat?
Look at tomcat's administration tool - it can dynamically add hosts. Looks at its codes. Go from there. -Original Message- From: Carl Olivier [mailto:[EMAIL PROTECTED] Sent: Monday, June 21, 2004 7:00 AM To: 'Tomcat Users List' Subject: RE: AW: How can I add Host without restarting Tomcat? Hmmm Is it possible to prgramatically init and start a new StandardHost? I have code that deploys the context for a new Host and writes the Host block into the server.xml - now I want to be able to programatically init and start the new host - making it available WITHOUT having to do a server restart! Is this possible? Thanks! Carl -Original Message- From: Peter Rossbach [mailto:[EMAIL PROTECTED] Sent: 18 June 2004 12:49 PM To: Tomcat Users List Subject: Re: AW: How can I add Host without restarting Tomcat? Hey, you can used the admin application. Tipp: Add a user with admin role at your conf/tomcat-users.xml! Before you create the new host, create the webapps directory! After create your new host, copy the Catalina/localhost/manager.xml to Catalina/newhost/manager.xml and you have at usefull new host without server restart. Tested with Tomcat 5.0.25. regards Peter Nikola Milutinovic schrieb: Gunnar Prschke wrote: Non way, because it is written in server.xml file. You'll need to stop the server, I guess Tomcat has a manager application. It can deploy new contexts (applications) on-the-fly, but I'm not sure about hosts. Nix. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- J2EE Systemarchitekt und Tomcat Experte http://objektpark.de/ http://www.webapp.de/ Am Josephsschacht 72, 44879 Bochum, Deutschland Telefon: (49) 234 9413228 Mobil:(49) 175 1660884 E-Mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.701 / Virus Database: 458 - Release Date: 07.06.2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.701 / Virus Database: 458 - Release Date: 07.06.2004 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How can I add Host without restarting Tomcat?
Nobody knows the answer to subj? --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.701 / Virus Database: 458 - Release Date: 07.06.2004
AW: How can I add Host without restarting Tomcat?
Non way, because it is written in server.xml file. You'll need to stop the server, I guess -Ursprüngliche Nachricht- Von: Ivan Jouikov [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 18. Juni 2004 11:33 An: 'Tomcat Users List' Betreff: How can I add Host without restarting Tomcat? Nobody knows the answer to subj? --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.701 / Virus Database: 458 - Release Date: 07.06.2004 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AW: How can I add Host without restarting Tomcat?
Gunnar Pörschke wrote: Non way, because it is written in server.xml file. You'll need to stop the server, I guess Tomcat has a manager application. It can deploy new contexts (applications) on-the-fly, but I'm not sure about hosts. Nix. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AW: How can I add Host without restarting Tomcat?
Hey, you can used the admin application. Tipp: Add a user with admin role at your conf/tomcat-users.xml! Before you create the new host, create the webapps directory! After create your new host, copy the Catalina/localhost/manager.xml to Catalina/newhost/manager.xml and you have at usefull new host without server restart. Tested with Tomcat 5.0.25. regards Peter Nikola Milutinovic schrieb: Gunnar Pörschke wrote: Non way, because it is written in server.xml file. You'll need to stop the server, I guess Tomcat has a manager application. It can deploy new contexts (applications) on-the-fly, but I'm not sure about hosts. Nix. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- J2EE Systemarchitekt und Tomcat Experte http://objektpark.de/ http://www.webapp.de/ Am Josephsschacht 72, 44879 Bochum, Deutschland Telefon: (49) 234 9413228 Mobil:(49) 175 1660884 E-Mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How can I add Host without restarting Tomcat?
MatrixOne Tech Support eMail incident submission functionality requires specific subject line. The following subject lines are recognized. Request for CustomerLink Access - This will submit a request for new CustomerLink account Request for CustomerLink Password Reset - This will submit a request for existing CustomerLink account password reset Submit [PUT YOUR SUBJECT LINE HERE] - This will submit a new incident (please only use when CustomerLink is not available to ensure prompt service) Keywords Request or Submit must be the 1st word in the subject line. If you already have a CustomerLink account, please use CustomerLink (https://customerlink.matrixone.com) to submit or update your incidents. Otherwise, please resend your message with the required subject line. Thank you! MatrixOne Tech Support - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
stopping-restarting Tomcat
Hi All, Does one need to stop-restart Tomcat server every time when a servlet is changed/compiled ? The restart takes lots of time during the development and testing of web application. Is there any way to expedite this. Cheers, Santosh - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: stopping-restarting Tomcat
[EMAIL PROTECTED] wrote: Does one need to stop-restart Tomcat server every time when a servlet is changed/compiled ? The restart takes lots of time during the development and testing of web application. Is there any way to expedite this. reloadable=true attribute of Context tag will do what you want. See tomcat-docs/config/context.html . - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: stopping-restarting Tomcat
Reloadable does the job only if the servlet changes, if you want to add another servlet you still have to Stop tomcat change the web.xml and start it again, afterwards the reloadable would work again. But you could workaround the web.xml problem I you enable the Invoker servlet. mfg Michael Nitschke -Original Message- From: Veniamin Fichin [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 02, 2004 12:53 PM To: Tomcat Users List Subject: Re: stopping-restarting Tomcat [EMAIL PROTECTED] wrote: Does one need to stop-restart Tomcat server every time when a servlet is changed/compiled ? The restart takes lots of time during the development and testing of web application. Is there any way to expedite this. reloadable=true attribute of Context tag will do what you want. See tomcat-docs/config/context.html . - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: stopping-restarting Tomcat
Nitschke Michael wrote: Reloadable does the job only if the servlet changes, if you want to add another servlet you still have to Stop tomcat change the web.xml and start it again, afterwards the reloadable would work again. Original question was about reloading (already deployed) servlet, so reloadable attribute is enough, but yes, when you add a new one, you should edit web.xml and restarting Tomcat or redeploy entire webapp. mfg Michael Nitschke -Original Message- From: Veniamin Fichin [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 02, 2004 12:53 PM To: Tomcat Users List Subject: Re: stopping-restarting Tomcat [EMAIL PROTECTED] wrote: Does one need to stop-restart Tomcat server every time when a servlet is changed/compiled ? The restart takes lots of time during the development and testing of web application. Is there any way to expedite this. reloadable=true attribute of Context tag will do what you want. See tomcat-docs/config/context.html . - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: stopping-restarting Tomcat
or you can use something like this http://download.com.com/3000-2417-10227362.html -- Veniamin Fichin wrote: Nitschke Michael wrote: Reloadable does the job only if the servlet changes, if you want to add another servlet you still have to Stop tomcat change the web.xml and start it again, afterwards the reloadable would work again. Original question was about reloading (already deployed) servlet, so reloadable attribute is enough, but yes, when you add a new one, you should edit web.xml and restarting Tomcat or redeploy entire webapp. mfg Michael Nitschke -Original Message- From: Veniamin Fichin [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 02, 2004 12:53 PM To: Tomcat Users List Subject: Re: stopping-restarting Tomcat [EMAIL PROTECTED] wrote: Does one need to stop-restart Tomcat server every time when a servlet is changed/compiled ? The restart takes lots of time during the development and testing of web application. Is there any way to expedite this. reloadable=true attribute of Context tag will do what you want. See tomcat-docs/config/context.html . - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: restarting tomcat
Yes, you need to reload the webapp for changes to be recognised, although for caching reasons, some browsers may not recognise the change to a JSP straightaway. JSP's are compiled on-the-fly and compiled in the work directory as you mentioned. I use the ant build tool for this, I'm not sure what other alternatives are available. This is my understanding from looking at the log files. This is a typical entry when I reload a webapp: 2004-03-30 13:29:08 StandardContext[/gfapp]: Reloading this Context has started 2004-03-30 13:29:08 WebappLoader[/gfapp]: Deploying class repositories to work directory /usr/local/tomcat/work/Standalone/www.thegoldenfreeway.com/gfapp 2004-03-30 13:29:08 WebappLoader[/gfapp]: Deploy class files /WEB-INF/classes to /home/webapps/gfapp/WEB-INF/classes 2004-03-30 13:29:08 WebappLoader[/gfapp]: Reloading checks are enabled for this Context 2004-03-30 13:29:08 StandardWrapper[/gfapp:default]: Loading container servlet default 2004-03-30 13:29:08 StandardWrapper[/gfapp:invoker]: Loading container servlet invoker 2004-03-30 13:29:08 StandardManager[/gfapp]: Seeding random number generator class java.security.SecureRandom 2004-03-30 13:29:08 StandardManager[/gfapp]: Seeding of random number generator has been completed 2004-03-30 13:29:08 StandardContext[/gfapp]: Reloading this Context is completed 2004-03-30 13:30:08 StandardContext[/gfapp]: Reloading this Context has started 2004-03-30 13:30:08 StandardWrapper[/gfapp:jsp]: Waiting for 1 instance(s) to be deallocated 2004-03-30 13:30:09 StandardManager[/gfapp]: Seeding random number generator class java.security.SecureRandom 2004-03-30 13:30:09 StandardManager[/gfapp]: Seeding of random number generator has been completed 2004-03-30 13:30:09 ApplicationDispatcher[/gfapp] Allocate exception for servlet jsp On Wed, 2004-03-31 at 07:06, Rob Ross wrote: I'm not talking about *restarting* Tomcat, I'm talking about *reloading* a web app. You're right, you don't have to shut down the Tomcat server to restart a webapp, you can just reload it, either manually by using the http manager interface, or automatically by setting the reloadable attribute in the config file to true. But for Tomcat to pick up changes to any files in WEB-INF/lib or WEB-INF/classes, the web app to which they belong MUST be reloaded, whether or you do so explicitly or have it done for you automatically. My question was, what about JSP files? and the original poster asked what about servlets? Since servlets must live in WEB-INF, I'm *guessing* you must also reload the web app if you want to pick up those changes to the servlet. But I still don't know what is supposed to happen for JSP files. They must be compiled to a servlet, but they get saved in the work directory, so they could be handled differently, but I'm guessing, unless I hear something definitive, that they too require the web app to be reloaded. Rob -Original Message- From: Duncan Krebs [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 30, 2004 10:06 PM To: Tomcat Users List Subject: Re: restarting tomcat Rob, I know with using ECLIPSE and Tomcat4x you can run 'catalina jpda start' from a command prompt and be able to walk through your servlet code and make changes, recompile and run the updated .java file without having to restart Tomcat. This is very useful in a development environment. I don't see why this would not carry over to Tomcat5. - Duncan - Original Message - From: Rob Ross [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Tuesday, March 30, 2004 10:55 PM Subject: RE: restarting tomcat -Original Message- From: Duncan Krebs [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 30, 2004 8:51 PM To: Tomcat Users List Subject: Re: restarting tomcat I also know that there are different types of debugging modes that you can run Tomcat it that do not require a restart for a .class file change. - Duncan Actually, according the Servlet 2.4 spec which I am just starting to read, this should not be true. SRV.3.7 Reloading Considerations (page 33) states ... ...any such implementation must ensure that all servlets, and classes that they may use, are loaded in the scope of a single class loader. This requirement is needed to guarantee that the application will behave as expected by the Developer. My understanding of this requirement is that there would be no way to reload a single servlet separately from the other servlets in the same context - a new Classloader would be created to load the new servlet, and all other servlets/classes in that context. But since I just started reading this, maybe I'm not understanding all the subtleties. Rob - To unsubscribe, e-mail
Re: restarting tomcat
Changed items can be re-loaded on the fly because of dynamic classloading. Every JSP instance lives in its own classloader. When a jsp source file is changed, the JSP servlet recognizes the change and recompiles the JSP. Once the JSP is translated to a new .java (and .class file) - the class file is read in as a new class under a new classloader and the old classloader is discarded. Because the of the creation and destruction(well ... the absence of referenceing) of classloaders - you can reload the same class (jsp class name) mulitple times in the life of a single JVM instance. When it comes to servlets - they aren't loaded by an extra classloader. In that case - you need to reload the *entire* webapp which does the above but for all classes/jars in the WEB-INF directory. The dynamic classloading abilities are (one of)the primary reasons why tomcat ignores the CLASSPATH variable on startup. Because once the system classloader loads a class - its there forever - no dynamic reloading allowed! For information on classloaders in tomcat: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html -Tim naryam naryam wrote: Hi, Is it true that each time a java servlet changes the tomcat servlet engine must be restarted. Does it mean that each time we need to recompile, we need also to restart the engine? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
restarting tomcat
Hi, Is it true that each time a java servlet changes the tomcat servlet engine must be restarted. Does it mean that each time we need to recompile, we need also to restart the engine? Chris - Do you Yahoo!? Yahoo! Finance Tax Center - File online. File on time.
RE: restarting tomcat
That's a great question! I was about to ask a very similar question myself. If you make changes to a JSP file, that means that file has to be recompiled, first to a .java file, then by javac to a .class file, which is really a Servlet. So, does changing a JSP file mean the Tomcat web app to which it belongs is also reloaded? Rob -Original Message- From: naryam naryam [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 30, 2004 8:28 PM To: [EMAIL PROTECTED] Subject: restarting tomcat Hi, Is it true that each time a java servlet changes the tomcat servlet engine must be restarted. Does it mean that each time we need to recompile, we need also to restart the engine? Chris - Do you Yahoo!? Yahoo! Finance Tax Center - File online. File on time. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: restarting tomcat
I don't know the why's. I just know that a change to a JSP doesn't require a restart but a change to a class file does. Karl That's a great question! I was about to ask a very similar question myself. If you make changes to a JSP file, that means that file has to be recompiled, first to a .java file, then by javac to a .class file, which is really a Servlet. So, does changing a JSP file mean the Tomcat web app to which it belongs is also reloaded? Rob -Original Message- From: naryam naryam [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 30, 2004 8:28 PM To: [EMAIL PROTECTED] Subject: restarting tomcat Hi, Is it true that each time a java servlet changes the tomcat servlet engine must be restarted. Does it mean that each time we need to recompile, we need also to restart the engine? Chris - Do you Yahoo!? Yahoo! Finance Tax Center - File online. File on time. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: restarting tomcat
I also know that there are different types of debugging modes that you can run Tomcat it that do not require a restart for a .class file change. - Duncan - Original Message - From: Karl Coleman [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, March 30, 2004 10:43 PM Subject: RE: restarting tomcat I don't know the why's. I just know that a change to a JSP doesn't require a restart but a change to a class file does. Karl That's a great question! I was about to ask a very similar question myself. If you make changes to a JSP file, that means that file has to be recompiled, first to a .java file, then by javac to a .class file, which is really a Servlet. So, does changing a JSP file mean the Tomcat web app to which it belongs is also reloaded? Rob -Original Message- From: naryam naryam [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 30, 2004 8:28 PM To: [EMAIL PROTECTED] Subject: restarting tomcat Hi, Is it true that each time a java servlet changes the tomcat servlet engine must be restarted. Does it mean that each time we need to recompile, we need also to restart the engine? Chris - Do you Yahoo!? Yahoo! Finance Tax Center - File online. File on time. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: restarting tomcat
-Original Message- From: Duncan Krebs [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 30, 2004 8:51 PM To: Tomcat Users List Subject: Re: restarting tomcat I also know that there are different types of debugging modes that you can run Tomcat it that do not require a restart for a .class file change. - Duncan Actually, according the Servlet 2.4 spec which I am just starting to read, this should not be true. SRV.3.7 Reloading Considerations (page 33) states ... ...any such implementation must ensure that all servlets, and classes that they may use, are loaded in the scope of a single class loader. This requirement is needed to guarantee that the application will behave as expected by the Developer. My understanding of this requirement is that there would be no way to reload a single servlet separately from the other servlets in the same context - a new Classloader would be created to load the new servlet, and all other servlets/classes in that context. But since I just started reading this, maybe I'm not understanding all the subtleties. Rob - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: restarting tomcat
Rob, I know with using ECLIPSE and Tomcat4x you can run 'catalina jpda start' from a command prompt and be able to walk through your servlet code and make changes, recompile and run the updated .java file without having to restart Tomcat. This is very useful in a development environment. I don't see why this would not carry over to Tomcat5. - Duncan - Original Message - From: Rob Ross [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Tuesday, March 30, 2004 10:55 PM Subject: RE: restarting tomcat -Original Message- From: Duncan Krebs [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 30, 2004 8:51 PM To: Tomcat Users List Subject: Re: restarting tomcat I also know that there are different types of debugging modes that you can run Tomcat it that do not require a restart for a .class file change. - Duncan Actually, according the Servlet 2.4 spec which I am just starting to read, this should not be true. SRV.3.7 Reloading Considerations (page 33) states ... ...any such implementation must ensure that all servlets, and classes that they may use, are loaded in the scope of a single class loader. This requirement is needed to guarantee that the application will behave as expected by the Developer. My understanding of this requirement is that there would be no way to reload a single servlet separately from the other servlets in the same context - a new Classloader would be created to load the new servlet, and all other servlets/classes in that context. But since I just started reading this, maybe I'm not understanding all the subtleties. Rob - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: restarting tomcat
I'm not talking about *restarting* Tomcat, I'm talking about *reloading* a web app. You're right, you don't have to shut down the Tomcat server to restart a webapp, you can just reload it, either manually by using the http manager interface, or automatically by setting the reloadable attribute in the config file to true. But for Tomcat to pick up changes to any files in WEB-INF/lib or WEB-INF/classes, the web app to which they belong MUST be reloaded, whether or you do so explicitly or have it done for you automatically. My question was, what about JSP files? and the original poster asked what about servlets? Since servlets must live in WEB-INF, I'm *guessing* you must also reload the web app if you want to pick up those changes to the servlet. But I still don't know what is supposed to happen for JSP files. They must be compiled to a servlet, but they get saved in the work directory, so they could be handled differently, but I'm guessing, unless I hear something definitive, that they too require the web app to be reloaded. Rob -Original Message- From: Duncan Krebs [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 30, 2004 10:06 PM To: Tomcat Users List Subject: Re: restarting tomcat Rob, I know with using ECLIPSE and Tomcat4x you can run 'catalina jpda start' from a command prompt and be able to walk through your servlet code and make changes, recompile and run the updated .java file without having to restart Tomcat. This is very useful in a development environment. I don't see why this would not carry over to Tomcat5. - Duncan - Original Message - From: Rob Ross [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Tuesday, March 30, 2004 10:55 PM Subject: RE: restarting tomcat -Original Message- From: Duncan Krebs [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 30, 2004 8:51 PM To: Tomcat Users List Subject: Re: restarting tomcat I also know that there are different types of debugging modes that you can run Tomcat it that do not require a restart for a .class file change. - Duncan Actually, according the Servlet 2.4 spec which I am just starting to read, this should not be true. SRV.3.7 Reloading Considerations (page 33) states ... ...any such implementation must ensure that all servlets, and classes that they may use, are loaded in the scope of a single class loader. This requirement is needed to guarantee that the application will behave as expected by the Developer. My understanding of this requirement is that there would be no way to reload a single servlet separately from the other servlets in the same context - a new Classloader would be created to load the new servlet, and all other servlets/classes in that context. But since I just started reading this, maybe I'm not understanding all the subtleties. Rob - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Restarting tomcat from web page
hi, could u please give an example ? - Original Message - From: Shapira, Yoav [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, December 05, 2003 4:09 PM Subject: RE: Restarting tomcat from web page Howdy, It does matter from a practicality perspective: tomcat comes with built-in features to restart individual webapps, so you don't have to do any work. O restart all of tomcat externally is much more work, you'll have to write a script, or use an external tool, etc. Yoav Shapira Millennium ChemInformatics -Original Message- From: Altug B. Altintas [mailto:[EMAIL PROTECTED] Sent: Friday, December 05, 2003 4:21 AM To: Tomcat Users List Subject: Re: Restarting tomcat from web page it doesn't matter, but restarting all of tomcat much better. - Original Message - From: Shapira, Yoav [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, December 04, 2003 6:03 PM Subject: RE: Restarting tomcat from web page Howdy, Restarting all of tomcat or just selected webapps? Yoav Shapira Millennium ChemInformatics -Original Message- From: Altug B. Altintas [mailto:[EMAIL PROTECTED] Sent: Thursday, December 04, 2003 10:57 AM To: Tomcat Users List Subject: Restarting tomcat from web page Hi How can i restart Tomcat which is running as service, from a web page 1 - calling bat file ? (not working) 2 - calling http://localhost:8080/manager/html/start?path=/engine (asking password) any clean way ? Regards Altug. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Restarting tomcat from web page
it doesn't matter, but restarting all of tomcat much better. - Original Message - From: Shapira, Yoav [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, December 04, 2003 6:03 PM Subject: RE: Restarting tomcat from web page Howdy, Restarting all of tomcat or just selected webapps? Yoav Shapira Millennium ChemInformatics -Original Message- From: Altug B. Altintas [mailto:[EMAIL PROTECTED] Sent: Thursday, December 04, 2003 10:57 AM To: Tomcat Users List Subject: Restarting tomcat from web page Hi How can i restart Tomcat which is running as service, from a web page 1 - calling bat file ? (not working) 2 - calling http://localhost:8080/manager/html/start?path=/engine (asking password) any clean way ? Regards Altug. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Restarting tomcat from web page
Howdy, It does matter from a practicality perspective: tomcat comes with built-in features to restart individual webapps, so you don't have to do any work. O restart all of tomcat externally is much more work, you'll have to write a script, or use an external tool, etc. Yoav Shapira Millennium ChemInformatics -Original Message- From: Altug B. Altintas [mailto:[EMAIL PROTECTED] Sent: Friday, December 05, 2003 4:21 AM To: Tomcat Users List Subject: Re: Restarting tomcat from web page it doesn't matter, but restarting all of tomcat much better. - Original Message - From: Shapira, Yoav [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, December 04, 2003 6:03 PM Subject: RE: Restarting tomcat from web page Howdy, Restarting all of tomcat or just selected webapps? Yoav Shapira Millennium ChemInformatics -Original Message- From: Altug B. Altintas [mailto:[EMAIL PROTECTED] Sent: Thursday, December 04, 2003 10:57 AM To: Tomcat Users List Subject: Restarting tomcat from web page Hi How can i restart Tomcat which is running as service, from a web page 1 - calling bat file ? (not working) 2 - calling http://localhost:8080/manager/html/start?path=/engine (asking password) any clean way ? Regards Altug. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Restarting tomcat from web page
Hi How can i restart Tomcat which is running as service, from a web page 1 - calling bat file ? (not working) 2 - calling http://localhost:8080/manager/html/start?path=/engine (asking password) any clean way ? Regards Altug. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Restarting tomcat from web page
I have heard of this done by using a second webserver with perl installed and then using Perl Win32 calls from webserver A to webserver B to restart the server. You could always run the other webserver on a high protected port so you don't need a second box. -Tim Altug B. Altintas wrote: Hi How can i restart Tomcat which is running as service, from a web page 1 - calling bat file ? (not working) 2 - calling http://localhost:8080/manager/html/start?path=/engine (asking password) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Restarting tomcat from web page
Howdy, Restarting all of tomcat or just selected webapps? Yoav Shapira Millennium ChemInformatics -Original Message- From: Altug B. Altintas [mailto:[EMAIL PROTECTED] Sent: Thursday, December 04, 2003 10:57 AM To: Tomcat Users List Subject: Restarting tomcat from web page Hi How can i restart Tomcat which is running as service, from a web page 1 - calling bat file ? (not working) 2 - calling http://localhost:8080/manager/html/start?path=/engine (asking password) any clean way ? Regards Altug. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Restarting tomcat from web page
The only way to restart a Windows service is through native code. You could use JNDI, or Runtime.exec() to run a net stop net start script, or a perl script, or a vbs one... there are many options here :-) Apart from protecting the page, I would also implement a first step with a countdown, so you can abort the restart operation if you want :-P Regards, Rodrigo Ruiz Tim Funk wrote: I have heard of this done by using a second webserver with perl installed and then using Perl Win32 calls from webserver A to webserver B to restart the server. You could always run the other webserver on a high protected port so you don't need a second box. -Tim Altug B. Altintas wrote: Hi How can i restart Tomcat which is running as service, from a web page 1 - calling bat file ? (not working) 2 - calling http://localhost:8080/manager/html/start?path=/engine (asking password) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Restarting Apache without restarting Tomcat
Hi, I noticed if I restart Apache without restarting Tomcat, *sometimes* the request doesn't get sent properly. It's a rather weird error though. From the tomcat debug, I can seem that the program got to the handleLogin() method in the login class. But the user will not be able to login. The database side is not the issue here. Restarting Tomcat fixed the above behaviour. So my question is: why *sometimes* restarting Apache without restarting Tomcat works, but not all the time? Does the order matter? I can always restart Tomcat without restarting Apache. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
I need to logout all users while restarting tomcat
Hello everybody! I have a question. Cluster from two tomcat.apache communicates with them by ajp. Web application looks after two users couldn't enter the system at the same time. When the first tomcat restarts it is desirable all users who were logged at this tomcat would logged out to give them opportunity to enter the second tomcat. The list of sessions in servlet 2.3 couldn't be accessed. The method SessionListener.sessionDestroyed couldn't be called when tomcat restarts. Any suggestions? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
lag when restarting tomcat
If I bounce tomcat via the /bin/shutdown.sh /bin/startup.sh scripts it takes at least 20 seconds until it responds again. This is still after my war has been unpacked and jsps compiled.. Any suggestions please? Running standalone, on linux 2*700mhz, 1GB. One application 30mb. Thanks Euan
Re: lag when restarting tomcat
That's normal, in my experience. In fact, my scripts sleep for 10 seconds at least before starting Tomcat after a full stop, and 10 seconds minimum in between starting every instance (22 on one server). Tomcat != Apache. John On Tue, 10 Jun 2003 22:07:12 +0100, Euan Guttridge [EMAIL PROTECTED] wrote: If I bounce tomcat via the /bin/shutdown.sh /bin/startup.sh scripts it takes at least 20 seconds until it responds again. This is still after my war has been unpacked and jsps compiled.. Any suggestions please? Running standalone, on linux 2*700mhz, 1GB. One application 30mb. Thanks Euan -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: lag when restarting tomcat
Howdy, You can reduce startup time by eliminating unneeded applications. In production servers, I hardly ever leave anything but the webapp itself: I remove the admin, manager, docs, webdav, examples, ROOT contexts. Things that affect shutdown include your custom finalizers, if any. Similarly, destroy() methods in servlets, filters, and various shutdown methods in listeners can take time to invoke and execute. If you're really annoyed by this and care enough to contribute code, why don't you profile tomcat startup to see where CPU time is spent, and then suggest patches? ;) Yoav Shapira --- Euan Guttridge [EMAIL PROTECTED] wrote: If I bounce tomcat via the /bin/shutdown.sh /bin/startup.sh scripts it takes at least 20 seconds until it responds again. This is still after my war has been unpacked and jsps compiled.. Any suggestions please? Running standalone, on linux 2*700mhz, 1GB. One application 30mb. Thanks Euan = Yoav Shapira [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Calendar - Free online calendar with sync to Outlook(TM). http://calendar.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Restarting Tomcat without restarting Apache
Protective Marking: UNCLASSIFIED Thanks for the replies; sounds like I needn't have worried so much :-) * This Email and any files transmitted with it is intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify: [EMAIL PROTECTED] Communications with this Department maybe monitored or recorded in order to secure the effective operation of the system and for other lawful purposes. * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Restarting Tomcat without restarting Apache
If you are using the mod_jk from 3.2.x, then this is true. Any more recent version allows you to restart Tomcat independently of Apache. You can even simply upgrade mod_jk, and continue to use TC 3.2.x if you want. softspt [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Protective Marking: UNCLASSIFIED Is it possible to set up Tomcat so that it services JSP requests for Apache, yet can be restarted independently? The docs for mod_jk say that restarting Tomcat requires restarting Apache. * This Email and any files transmitted with it is intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify: [EMAIL PROTECTED] Communications with this Department maybe monitored or recorded in order to secure the effective operation of the system and for other lawful purposes. * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Restarting Tomcat without restarting Apache
Protective Marking: UNCLASSIFIED Is it possible to set up Tomcat so that it services JSP requests for Apache, yet can be restarted independently? The docs for mod_jk say that restarting Tomcat requires restarting Apache. * This Email and any files transmitted with it is intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify: [EMAIL PROTECTED] Communications with this Department maybe monitored or recorded in order to secure the effective operation of the system and for other lawful purposes. * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Restarting Tomcat without restarting Apache
If that is the case then I believe that the docs would be incorrect. I often restart Tomcat without restarting Apache. -Original Message- From: softspt [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 03, 2003 1:32 AM To: [EMAIL PROTECTED] Subject: Restarting Tomcat without restarting Apache Protective Marking: UNCLASSIFIED Is it possible to set up Tomcat so that it services JSP requests for Apache, yet can be restarted independently? The docs for mod_jk say that restarting Tomcat requires restarting Apache. * This Email and any files transmitted with it is intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify: [EMAIL PROTECTED] Communications with this Department maybe monitored or recorded in order to secure the effective operation of the system and for other lawful purposes. * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Restarting Tomcat without restarting Apache
You can start/stop each independently. I do it all the time. You may encounter errors in Apache's logs, if it is in the middle of trying to satisfy a request to Tomcat, but Tomcat is restarted before the request can complete. The cleanest way to do this, for stops, is: stop Apache, then stop Tomcat. For starts: start Tomcat, then start Apache. that way, requests are not handled until Apache is up. But doing it this way is not required. The only time restarting Tomcat requires an Apache restart is if you are using the ApacheConfig classes in server.xml to auto-generate mod_jk configuration information for Apache. Since the mod_jk.conf file gets created every time Tomcat is started, you would need to restart Apache for it to pick up any changes to that file. John On Tue, 3 Jun 2003 09:32:26 +0100, softspt [EMAIL PROTECTED] wrote: Protective Marking: UNCLASSIFIED Is it possible to set up Tomcat so that it services JSP requests for Apache, yet can be restarted independently? The docs for mod_jk say that restarting Tomcat requires restarting Apache. * This Email and any files transmitted with it is intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify: [EMAIL PROTECTED] Communications with this Department maybe monitored or recorded in order to secure the effective operation of the system and for other lawful purposes. * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Server.xml Reload without Restarting Tomcat
I was using 4.0.x. The admin tool that allows you to do the reloading of server.xml file does not exist. I checked ou 4.1.x and it seems that this admin tool is available. Is there a way to programmatically do this? I guess you have to use JMX to manipulate Tomcat on the fly. Am I correct? Nick From: Jamesey [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: ClassNotFoundException... ? serializable objects? help!! Date: Fri, 14 Mar 2003 10:16:52 - I am using struts and tomcat... i am swiching from non ssl to ssl.. I have got the RSA certificates stuff ok.. and switching back and forth to sll seems to be fine.. My problem is I have a serializable object[] in the session. When i switch to SSL the object appears in the session.getAttributeNames() list... but the log reports a ClassNotFoundException ...? this makes no sense and the class is in my WEB-INF/classes/com/blah... I have an import in the page for the class and have my persistantManager config is: Manager className=org.apache.catalina.session.PersistentManager debug=0 saveOnRestart=true maxActiveSessions=-1 minIdleSwap=-1 maxIdleSwap=-1 maxIdleBackup=-1 Store className=org.apache.catalina.session.FileStore/ /Manager i'm stuck on this one.. little help?? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Server.xml Reload without Restarting Tomcat
Hi, I think I asked this question before but I didn't get a definitive answer. I want to be able to reload my server.xml file on the fly after making modifications to it. I want to know whether this is possible on Tomcat (Stand-alone) for version 4.1.x. Someone suggested the use of the Admin servlet but that doesn't really give you a means of changing configurations such as maxProcessors/minProcessors/connectionTimeout etc... Regards, Nicolas Dinh _ Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Server.xml Reload without Restarting Tomcat
Really? Which version of tomcat are you using ? The max min stuff is under Service (Tomcat Standalone) | -Connector (8080) Someone suggested the use of the Admin servlet but that doesn't really give you a means of changing configurations such as maxProcessors/minProcessors/connectionTimeout etc... Regards, Nicolas Dinh _ Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Reloading configuration changes from server.xml without restarting Tomcat
Is it possible to reload configuration changes in server.xml without bringing down the entire tomcat-server? Will this be included in the manager app in future releases? thx alot Johannes Fiala -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Reloading configuration changes from server.xml without restarting Tomcat
In another thread here, Craig mentioned that there was a discussion about this on tomcat-dev for Tomcat 5, where Tomcat would pick up server.xml changes on the fly. John -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED]] Sent: Monday, January 06, 2003 7:16 AM To: Tomcat Users List Subject: Re: Reloading configuration changes from server.xml without restarting Tomcat If you make changes via the admin app the changes might be immediately seen. (You'll have to play with it to see if it meets your needs) If you manually change server.xml - then your out of luck and must restart. -Tim [EMAIL PROTECTED] wrote: Is it possible to reload configuration changes in server.xml without bringing down the entire tomcat-server? Will this be included in the manager app in future releases? thx alot Johannes Fiala -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Shutting down and restarting Tomcat
Hi Peter, try this batch file (startAndStop.bat): echo off echo. echo Calling startup echo. call startup.bat echo. echo Started echo. pause echo. echo Calling shutdown echo. call shutdown.bat echo. echo Shut down echo. pause startAndStop.bat The pause command is necessary, because it takes Tomcat a few seconds to shut down. The next call will be done after you'll have pressed any key. This script is an endless loop because it calls itself in the end. To end it press Ctrl-C or the X-Button in the upper right corner. Andreas On 7 Nov 2002 at 11:05, Peter Lee wrote: I need to shutdown and then restart tomcat repeatedly for my testing purposes. I am using a Windows batch file which will call shutdown.bat and startup.bat. But each time Tomcat did not restart. Is there any better way of doing this? Thanks -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
Re: Shutting down and restarting Tomcat
On 8 Nov 2002, at 2:43, yves lambert wrote: Peter Lee wrote: I need to shutdown and then restart tomcat repeatedly for my testing purposes. I am using a Windows batch file which will call shutdown.bat and startup.bat. But each time Tomcat did not restart. Is there any better way of doing this? Thanks -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org your batch file must be like that restart.bat call %CATALINA_HOME%\bin\shutdown.bat call %CATALINA_HOME%\bin\startup.bat if it doesn't work you may set a delay between the 2 commands What is the command for setting the delay in a Windows batch file? I used delay but it didn't work. Thanks -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: Shutting down and restarting Tomcat
As far as I know, there isn't one. You can only use PAUSE which waits for user input before continuing. That won't help you, though, if you're sitting at your keyboard tapping the spacebar or Enter key as soon as you see the pause prompt. You could try installing something like Cygwin and writing a shell script...then you'd have access to the sleep command. Otherwise, you're stuck with counting to yourself in-between batch file iterations. John -Original Message- From: Peter Lee [mailto:tomcatuser;shaw.ca] Sent: Friday, November 08, 2002 4:16 AM To: Tomcat Users List Subject: Re: Shutting down and restarting Tomcat On 8 Nov 2002, at 2:43, yves lambert wrote: Peter Lee wrote: I need to shutdown and then restart tomcat repeatedly for my testing purposes. I am using a Windows batch file which will call shutdown.bat and startup.bat. But each time Tomcat did not restart. Is there any better way of doing this? Thanks -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org your batch file must be like that restart.bat call %CATALINA_HOME%\bin\shutdown.bat call %CATALINA_HOME%\bin\startup.bat if it doesn't work you may set a delay between the 2 commands What is the command for setting the delay in a Windows batch file? I used delay but it didn't work. Thanks -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
Re: Shutting down and restarting Tomcat
Or if you have perl installed: REM -- sleep for 2 seconds perl -e 'sleep(2);' -Tim Turner, John wrote: As far as I know, there isn't one. You can only use PAUSE which waits for user input before continuing. That won't help you, though, if you're sitting at your keyboard tapping the spacebar or Enter key as soon as you see the pause prompt. You could try installing something like Cygwin and writing a shell script...then you'd have access to the sleep command. Otherwise, you're stuck with counting to yourself in-between batch file iterations. John -Original Message- From: Peter Lee [mailto:tomcatuser;shaw.ca] Sent: Friday, November 08, 2002 4:16 AM To: Tomcat Users List Subject: Re: Shutting down and restarting Tomcat On 8 Nov 2002, at 2:43, yves lambert wrote: Peter Lee wrote: I need to shutdown and then restart tomcat repeatedly for my testing purposes. I am using a Windows batch file which will call shutdown.bat and startup.bat. But each time Tomcat did not restart. Is there any better way of doing this? Thanks -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org your batch file must be like that restart.bat call %CATALINA_HOME%\bin\shutdown.bat call %CATALINA_HOME%\bin\startup.bat if it doesn't work you may set a delay between the 2 commands What is the command for setting the delay in a Windows batch file? I used delay but it didn't work. Thanks -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
Re: Shutting down and restarting Tomcat
Hi, What is the command for setting the delay in a Windows batch file? I downloaded something called UnxUtils.zip from the web (can't find where from at the moment). Amongst other Unix goodies this includes sleep.exe. It is a package of standalone binaries and you need install/use only those you need, unlike Cygwin or Perl which are pretty massive. With sleep.exe on your path you could then put a line like sleep 2 in your batchfile to wait 2 seconds before proceeding. Regards, John. MRC HGMP-RC -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
Re: Shutting down and restarting Tomcat
What is the command for setting the delay in a Windows batch file? If there isn't one you can simply write sleep.java and call using: java sleep 2 :D Sri -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
Re: Shutting down and restarting Tomcat
What is the command for setting the delay in a Windows batch file? I used delay but it didn't work. Thanks Assuming this isn't a 'day late and a dollar short', you might want to take a look at this web site. It has all sorts of tips for DOS batch files: http://www.calweb.com/~webspace/batch/ Additionally, there are several ways to get a time delay from a batch file. They are described here: http://www.calweb.com/~webspace/batch/samples/sleep.txt Some of the things described will only work if you have the original files (junk?) from DOS. I personally keep some of that stuff around - if all else fails, email me directly, and I'll send the utility you need as an attachment. === Chris Parker Programmer/Analyst Health Care Services Division California Youth Authority -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
Re: Shutting down and restarting Tomcat
I am trying to create a custom jdbc realm. I create a class that extends org.apache.catalina.realm.JDBCRealm. When I start up my server, I get a class not found exception on my new realm class. How am I supposed to set my paths to see the realm class I created? when I add the class to my classpath directly, then the server can't find org.apache.catalina.realm.JDBCRealm. Thanks, Eric -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
Re: Shutting down and restarting Tomcat
On Fri, 8 Nov 2002, [EMAIL PROTECTED] wrote: Date: Fri, 8 Nov 2002 11:47:32 -0500 From: [EMAIL PROTECTED] [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED], [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: Shutting down and restarting Tomcat I am trying to create a custom jdbc realm. I create a class that extends org.apache.catalina.realm.JDBCRealm. When I start up my server, I get a class not found exception on my new realm class. How am I supposed to set my paths to see the realm class I created? when I add the class to my classpath directly, then the server can't find org.apache.catalina.realm.JDBCRealm. Tomcat ignores the system classpath totally. You'll need to put your custom Realm implementation in a directory where Catalina internals can see it -- specifically, in $CATALINA_HOME/server/classes or in a JAR file in $CATALINA_HOME/server/lib. For more info, see the class loader docs: http://jakarta.apache.org/tomcat/tomcat-4.0-doc/class-loader-howto.html http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html If you're using 4.1, you'll also want to disable the MBean support because it won't recognize your custom Realm class. You can do this by commenting out the two Listener elements at the top of server.xml. Thanks, Eric Craig -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
Shutting down and restarting Tomcat
I need to shutdown and then restart tomcat repeatedly for my testing purposes. I am using a Windows batch file which will call shutdown.bat and startup.bat. But each time Tomcat did not restart. Is there any better way of doing this? Thanks -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: Shutting down and restarting Tomcat
You have to do it slowly...it is not instant. 3-10 seconds between calls to either of the scripts should be sufficient. John -Original Message- From: Peter Lee [mailto:tomcatuser;shaw.ca] Sent: Thursday, November 07, 2002 2:05 PM To: [EMAIL PROTECTED] Subject: Shutting down and restarting Tomcat I need to shutdown and then restart tomcat repeatedly for my testing purposes. I am using a Windows batch file which will call shutdown.bat and startup.bat. But each time Tomcat did not restart. Is there any better way of doing this? Thanks -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: Shutting down and restarting Tomcat
Try putting a delay in, sometimes tomcat doesn't quickly enough exit for you to immediately restart. At least not on my box (which is linux). However if you're using Tomcat4.x you can stop and restart webapps directly, so you may not really need to restart all of tomcat... --mikej -=- mike jackson [EMAIL PROTECTED] -Original Message- From: Peter Lee [mailto:tomcatuser;shaw.ca] Sent: Thursday, November 07, 2002 11:05 AM To: [EMAIL PROTECTED] Subject: Shutting down and restarting Tomcat I need to shutdown and then restart tomcat repeatedly for my testing purposes. I am using a Windows batch file which will call shutdown.bat and startup.bat. But each time Tomcat did not restart. Is there any better way of doing this? Thanks -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
Re: Shutting down and restarting Tomcat
Look at the Manager application in the Tomcat documentation. It will allow you to deploy, redeploy, and restart a single application, rather than the entire Tomcat instance. These operations take a matter of seconds. I need to shutdown and then restart tomcat repeatedly for my testing purposes. I am using a Windows batch file which will call shutdown.bat and startup.bat. But each time Tomcat did not restart. Is there any better way of doing this? Thanks -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
Re: Shutting down and restarting Tomcat
Peter Lee wrote: I need to shutdown and then restart tomcat repeatedly for my testing purposes. I am using a Windows batch file which will call shutdown.bat and startup.bat. But each time Tomcat did not restart. Is there any better way of doing this? Thanks -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org your batch file must be like that restart.bat call %CATALINA_HOME%\bin\shutdown.bat call %CATALINA_HOME%\bin\startup.bat if it doesn't work you may set a delay between the 2 commands? -- \/ /\ -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
Restarting Tomcat Every After Every Update?
Hello, Do I need to restart tomcat every time I update a class/bean? This is so frustrating! /Fredrik -Original Message- From: Lihn, Steve [mailto:[EMAIL PROTECTED]] Sent: Friday, August 16, 2002 1:06 PM To: 'Tomcat Users List' Subject: RE: new install - JSP failed. Thanks. I mistakenly installed the Java Runtime instead of the SDK. Steve Lihn -Original Message- From: Durham David Cntr 805CSS/SCBE [mailto:[EMAIL PROTECTED]] Sent: Friday, August 16, 2002 2:28 PM To: Tomcat Users List Subject: RE: new install - JSP failed. Did you install the j2sdk ?? Is java_home set? -Original Message- From: Lihn, Steve [mailto:[EMAIL PROTECTED]] Sent: Friday, August 16, 2002 12:18 PM To: 'Tomcat Users List' Subject: new install - JSP failed. Hi, I am new to this mailing list and new to Tomcat. I just installed the Tomcat 4.0 on my PC. It works basically. Servlet also works. But the JSP samples are all failing. Does any body know what I missed? Error like: Apache Tomcat/4.0.4 - HTTP Status 500 - Internal Server Error -- -- type Exception report message Internal Server Error description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request. exception javax.servlet.ServletException: sun/tools/javac/Main at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:481) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilt er(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli cationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardW rapperValve.ja va:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipel ine.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardC ontextValve.ja va:190) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:5 66) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Aut henticatorBase .java:475) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:5 64) at org.apache.catalina.valves.CertificatesValve.invoke(Certificat esValve.java:2 46) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipel ine.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContex t.java:2347) at org.apache.catalina.core.StandardHostValve.invoke(StandardHost Valve.java:180 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:5 66) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDi spatcherValve. java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:5 64) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReport Valve.java:170 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:5 64) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValv e.java:468) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipel ine.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEn gineValve.java :174) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipel ine.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.connector.http.HttpProcessor.process(HttpP rocessor.java: 1027) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProce ssor.java:1125 ) at java.lang.Thread.run(Unknown Source) root cause java.lang.NoClassDefFoundError: sun/tools/javac/Main at org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaComp iler.java:136) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:272) at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:548) at
Re: Restarting Tomcat Every After Every Update?
Hello fredrik, You can use the manager task to reload the app without restarting the server. See the manager docs. Jake Friday, August 16, 2002, 3:03:58 PM, you wrote: ftc Hello, ftc Do I need to restart tomcat every time I update a class/bean? ftc This is so frustrating! ftc /Fredrik ftc -Original Message- ftc From: Lihn, Steve [mailto:[EMAIL PROTECTED]] ftc Sent: Friday, August 16, 2002 1:06 PM ftc To: 'Tomcat Users List' ftc Subject: RE: new install - JSP failed. ftc Thanks. ftc I mistakenly installed the Java Runtime instead of the SDK. ftc Steve Lihn -Original Message- From: Durham David Cntr 805CSS/SCBE [mailto:[EMAIL PROTECTED]] Sent: Friday, August 16, 2002 2:28 PM To: Tomcat Users List Subject: RE: new install - JSP failed. Did you install the j2sdk ?? Is java_home set? -Original Message- From: Lihn, Steve [mailto:[EMAIL PROTECTED]] Sent: Friday, August 16, 2002 12:18 PM To: 'Tomcat Users List' Subject: new install - JSP failed. Hi, I am new to this mailing list and new to Tomcat. I just installed the Tomcat 4.0 on my PC. It works basically. Servlet also works. But the JSP samples are all failing. Does any body know what I missed? Error like: Apache Tomcat/4.0.4 - HTTP Status 500 - Internal Server Error -- -- type Exception report message Internal Server Error description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request. exception javax.servlet.ServletException: sun/tools/javac/Main at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:481) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilt er(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli cationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardW rapperValve.ja va:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipel ine.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardC ontextValve.ja va:190) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:5 66) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Aut henticatorBase .java:475) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:5 64) at org.apache.catalina.valves.CertificatesValve.invoke(Certificat esValve.java:2 46) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipel ine.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContex t.java:2347) at org.apache.catalina.core.StandardHostValve.invoke(StandardHost Valve.java:180 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:5 66) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDi spatcherValve. java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:5 64) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReport Valve.java:170 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:5 64) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValv e.java:468) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipel ine.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEn gineValve.java :174) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipel ine.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.connector.http.HttpProcessor.process(HttpP rocessor.java: 1027) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProce ssor.java:1125 ) at java.lang.Thread.run(Unknown Source) root cause java.lang.NoClassDefFoundError: sun/tools/javac/Main at org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaComp
restarting tomcat without restarting ;)
Subject: restarting tomcat without restarting ;) From: David Chu [EMAIL PROTECTED] === Hello, I remember reading there was a way to force Tomcat 4.0 to use new versions of modified servlets w/o restarting the server, but I glossed over the details. I think it was just accessing some URL. Is there any such thing or am I confused? Thanks! -- -david -- David C. Chu America Online Network Tools Intern -- -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: restarting tomcat without restarting ;)
There is a manager application well described in the doc ;-) -Original Message- From: Jakarta Tomcat Newsgroup [mailto:[EMAIL PROTECTED]] Sent: 09 July 2002 16:40 To: [EMAIL PROTECTED] Subject: restarting tomcat without restarting ;) Subject: restarting tomcat without restarting ;) From: David Chu [EMAIL PROTECTED] === Hello, I remember reading there was a way to force Tomcat 4.0 to use new versions of modified servlets w/o restarting the server, but I glossed over the details. I think it was just accessing some URL. Is there any such thing or am I confused? Thanks! -- -david -- David C. Chu America Online Network Tools Intern -- -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] DISCLAIMER This e-mail and any attachments thereto may contain information which is confidential and/or protected by intellectual property rights and are intended for the sole use of the recipient(s) named above. Any use of the information contained herein (including, but not limited to, total or partial reproduction, communication or distribution in any form) by persons other than the designated recipient(s) is prohibited. If you have received this e-mail in error, please notify the sender either by telephone or by e-mail and delete the material from any computer. Thank you for your cooperation. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: restarting tomcat without restarting ;)
Set the reloadable attribute of the Context element in your server.xml to true RS jakarta-tom on 07/09/2002 09:40:02 AM Please respond to Tomcat Users List [EMAIL PROTECTED] To:[EMAIL PROTECTED] cc: Subject:restarting tomcat without restarting ;) Subject: restarting tomcat without restarting ;) From: David Chu [EMAIL PROTECTED] === Hello, I remember reading there was a way to force Tomcat 4.0 to use new versions of modified servlets w/o restarting the server, but I glossed over the details. I think it was just accessing some URL. Is there any such thing or am I confused? Thanks! -- -david -- David C. Chu America Online Network Tools Intern -- -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Updating files without restarting Tomcat
Subject: Re: Updating files without restarting Tomcat From: Dan Paraschiv [EMAIL PROTECTED] === In my opinion you have a different problem here. Probably you read those properties files at some point in your application lifecycle. Suppose that point is your servlet init method (which is called only once in the servlet life). If you change the properties files it's your responsibility that you re-read those file and propagate the changes. You need to find a way to tell your application that something in it's environment changed and it has to reinitialize itself. Best regards, Dan -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Updating files without restarting Tomcat
In my opinion you have a different problem here. Probably you read those properties files at some point in your application lifecycle. Suppose that point is your servlet init method (which is called only once in the servlet life). If you change the properties files it's your responsibility that you re-read those file and propagate the changes. You need to find a way to tell your application that something in it's environment changed and it has to reinitialize itself. Best regards, Dan The properties files are reread by entering a particular URL - which is the behaviour I want. Unfortunatly it reads the old version of the properties file not the updated version. It will only read the updated version if I restart Tomcat. Thanks for your reply. Catharine -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Updating files without restarting Tomcat
I am using Tomcat 4. I have a number of properties files in the WEB-INF/classes directory. I need to be able to change the values of the properties in these files, but it looks as though I need to restart Tomcat every time I change a value in order for it to recognise the new version of the file. Is there any configuration I can change so that it is not necessary to restart Tomcat when I change the values of the properties. Is it possible for this to apply just to specified files - I don't want it to check the status of all the files in WEB-INF/classes because I know the class files won't change. Thanks, Catharine -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Updating files without restarting Tomcat
Title: RE: Updating files without restarting Tomcat You can specify the attribute reloadable=true in the context element for your web-application (in server.xml) This will, however, watch all files for changes. There is no way to my knowledge of watching only some files. cheers Rory -Original Message- From: cbarnes [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 02, 2002 11:31 AM To: Tomcat Users List Subject: Updating files without restarting Tomcat I am using Tomcat 4. I have a number of properties files in the WEB-INF/classes directory. I need to be able to change the values of the properties in these files, but it looks as though I need to restart Tomcat every time I change a value in order for it to recognise the new version of the file. Is there any configuration I can change so that it is not necessary to restart Tomcat when I change the values of the properties. Is it possible for this to apply just to specified files - I don't want it to check the status of all the files in WEB-INF/classes because I know the class files won't change. Thanks, Catharine -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Updating files without restarting Tomcat
I've actually had problems with the reloadable attribute. I think it may be broken. You may try the HTMLManager application, which allows you to monitor, start, stop and reload your various webapps. You'll need to modify the conf/tomcat-users.xml and webapps/manager/WEB-INF/web.xml; instructions are in the comments, and here's the link to the HOW-TO: http://jakarta.apache.org/tomcat/tomcat-4.0-doc/manager-howto.html - Alfred Douglas, Rory wrote: You can specify the attribute reloadable=true in the context element for your web-application (in server.xml) This will, however, watch all files for changes. There is no way to my knowledge of watching only some files. cheers Rory -Original Message- From: cbarnes [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 02, 2002 11:31 AM To: Tomcat Users List Subject: Updating files without restarting Tomcat I am using Tomcat 4. I have a number of properties files in the WEB-INF/classes directory. I need to be able to change the values of the properties in these files, but it looks as though I need to restart Tomcat every time I change a value in order for it to recognise the new version of the file. Is there any configuration I can change so that it is not necessary to restart Tomcat when I change the values of the properties. Is it possible for this to apply just to specified files - I don't want it to check the status of all the files in WEB-INF/classes because I know the class files won't change. Thanks, Catharine -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] --- -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- A. Alfred Ayache, | 20 years' experience President, The Last Byte, Inc. | Testimonials Custom software par excellence | Links http://www.lastbyte-inc.com| Free Software -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
restarting tomcat programatically
hi, i am trying to restart tomcat from my web application. Is there anyway i can do it programmatically? Does Tomcat provide any class to allow restart(I know about org.apache.tomcat.startup.Tomcat, i have tried this, It does not work b,coz once VM dies it does not call start)? Thanx in advance Ankit Chansoriya Software Engineer Lisle Technology Partners 45/3 Gopalkrishna Complex, Residency Cross Road, Bangalore-25 ph:5595636
RE: restarting tomcat programatically
Try to call shell/DOS script (startup.bat/sh) from Java. tom -Original Message- From: Ankit [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 13, 2002 8:36 AM To: [EMAIL PROTECTED] Subject: restarting tomcat programatically hi, i am trying to restart tomcat from my web application. Is there anyway i can do it programmatically? Does Tomcat provide any class to allow restart(I know about org.apache.tomcat.startup.Tomcat, i have tried this, It does not work b,coz once VM dies it does not call start)? Thanx in advance Ankit Chansoriya Software Engineer Lisle Technology Partners 45/3 Gopalkrishna Complex, Residency Cross Road, Bangalore-25 ph:5595636 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: restarting tomcat programatically
u can execute DOS/shell scripts like this Runtime rt = new Runtime(); Process p = rt.exec(command); int status=p.exitValue(); status is 0 if command executes successfully but i don't know if it is really necessary to start the server from an application.. ravi - Original Message - From: Marek, Tomas [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Thursday, June 13, 2002 12:24 PM Subject: RE: restarting tomcat programatically Try to call shell/DOS script (startup.bat/sh) from Java. tom -Original Message- From: Ankit [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 13, 2002 8:36 AM To: [EMAIL PROTECTED] Subject: restarting tomcat programatically hi, i am trying to restart tomcat from my web application. Is there anyway i can do it programmatically? Does Tomcat provide any class to allow restart(I know about org.apache.tomcat.startup.Tomcat, i have tried this, It does not work b,coz once VM dies it does not call start)? Thanx in advance Ankit Chansoriya Software Engineer Lisle Technology Partners 45/3 Gopalkrishna Complex, Residency Cross Road, Bangalore-25 ph:5595636 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: restarting tomcat programatically
Howdy, If your own webapp is running on the tomcat instance you're trying to restart, then HUH? ;) One VM can always restart another, as others have proposed. So you can have a command line program, shell scripts, another webapp running on another tomcat instance, etc. Alternatively, look at how JBoss manages its embedded tomcat ;) You'll have to do a bit more work, and need to know some JMX MBeans stuff. (I'm no longer bitter about 4.0.2 removing the System.exit() to accommodate JBoss -- long live my System.exit() context listener! ;)) Yoav Shapira Millennium ChemInformatics -Original Message- From: Ankit [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 13, 2002 2:36 AM To: [EMAIL PROTECTED] Subject: restarting tomcat programatically hi, i am trying to restart tomcat from my web application. Is there anyway i can do it programmatically? Does Tomcat provide any class to allow restart(I know about org.apache.tomcat.startup.Tomcat, i have tried this, It does not work b,coz once VM dies it does not call start)? Thanx in advance Ankit Chansoriya Software Engineer Lisle Technology Partners 45/3 Gopalkrishna Complex, Residency Cross Road, Bangalore-25 ph:5595636 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Problem in restarting Tomcat
hi, yourself, Zhongwen Zhu (LMC) wrote: Hi In linux OS, when Tomcat is shut down, the port which is used by Tomcat is not released. Hence it is impossible to re-start Tomcat. Do you have any solution so that the system is forced to release the port when Tomcat is shut down? yes, don't shut down by Ctrl-C. use shutdown.sh i sometimes have troubles using [tim-mn@spiderman tim-mn]$ shutdown.sh startup.sh and in those cases have to resort to doing this in two lines [tim-mn@spiderman tim-mn]$ shutdown.sh [tim-mn@spiderman tim-mn]$ startup.sh this *allways* work for me ~mats Thank you for your hints. michael zhu -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Problem in restarting Tomcat
Hi In linux OS, when Tomcat is shut down, the port which is used by Tomcat is not released. Hence it is impossible to re-start Tomcat. Do you have any solution so that the system is forced to release the port when Tomcat is shut down? Thank you for your hints. michael zhu
RE: Problem in restarting Tomcat
We had this problem the other day. We fixed it by putting 'killall java' in the restart script before attempting to restart tomcat... of course this is no good if you want other java processes to keep running though. ChrisC -Original Message- From: Zhongwen Zhu (LMC) [mailto:[EMAIL PROTECTED]] Sent: Monday, May 20, 2002 11:55 AM To: '[EMAIL PROTECTED]' Subject: Problem in restarting Tomcat Hi In linux OS, when Tomcat is shut down, the port which is used by Tomcat is not released. Hence it is impossible to re-start Tomcat. Do you have any solution so that the system is forced to release the port when Tomcat is shut down? Thank you for your hints. michael zhu -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Problem in restarting Tomcat
On 05/20 09:54 Zhongwen Zhu (LMC) wrote: In linux OS, when Tomcat is shut down, the port which is used by Tomcat is not released. Hence it is impossible to re-start Tomcat. Do you have any What version of Tomcat do you use? I use 4.0.3, on a Linux machine. /usr/local/tomcat/bin/catalina.sh start or /usr/local/tomcat/bin/catalina.sh stop works fine; ie: another catalina.sh start will start it again. Try to connect to port 8005, using telnet on the localhost, and type SHUTDOWN; and see whether Tomcat gets shutdown properly. Oki -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Updating files without restarting Tomcat
I am using Tomcat 4. I have a .properties file in my WEB-INF/classes part of my work tree, which is read in using a ResourceBundle. My problem is that if I update this properties file it does not recognise the new version until I have restarted Tomcat. Is there a config value I can change so that I don't have to restart Tomcat each time I change the properties file? If there is can it apply to only certain files or sections of the application? I don't want Tomcat to check if .class files have changed everytime it uses them as this isn't necessary and will obviously effect performance. Thanks, Catharine -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Updating files without restarting Tomcat
Hi, In order for tomcat to reload your files, you have to add reloadable=true to your application context in server.xml. However, this will cause tomcat to restart each time one of yout classes has been changed or one of the jars in WEB-INF/lib. Not only, it'll effect performance, but creating a new class loader isn't so obvious, and might cause problems (If you use jni, for example). good luck, Tamir -Original Message- From: cbarnes [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 12:16 PM To: Tomcat Users List Subject: Updating files without restarting Tomcat I am using Tomcat 4. I have a .properties file in my WEB-INF/classes part of my work tree, which is read in using a ResourceBundle. My problem is that if I update this properties file it does not recognise the new version until I have restarted Tomcat. Is there a config value I can change so that I don't have to restart Tomcat each time I change the properties file? If there is can it apply to only certain files or sections of the application? I don't want Tomcat to check if .class files have changed everytime it uses them as this isn't necessary and will obviously effect performance. Thanks, Catharine -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
BIG problem with restarting Tomcat 4
Hi, there are already messages in this forum, but: nevertheless it doesn't work. When starting Tomcat 4 (Linux) for the first time, everything works fine. But when stopping Tomcat and restarting there is the following message: Catalina.start: LifecycleException: Error creating server socket (java.net.BindException): java.net.BindException: Die Adresse wird bereits verwendet LifecycleException: Error creating server socket (java.net.BindException): java.net.BindException: Die Adresse wird bereits verwendet at org.apache.catalina.connector.warp.WarpConnector.initialize(WarpConnector.java:491) at org.apache.catalina.core.StandardService.initialize(StandardService.java:454) at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:553) at org.apache.catalina.startup.Catalina.start(Catalina.java:780) at org.apache.catalina.startup.Catalina.execute(Catalina.java:681) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243) - Root Cause - I don't see what application should listen to some of the used ports, too (how to find out??). And everything worked fine with Jakarta 3.3. I tried the -XdoCloseWithReadPending parameter, but this does#nt work (JVM doesn't start). Please help me - I'm at the end of the rope...No ideas any more. Best regards and thanks in advance Thomas :-) As sceptical as one can be! (-: -- Get personalised email addresses at http://another.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: BIG problem with restarting Tomcat 4 - it's Expresso!
Hi, just to answer myself: it is definitely not Tomcat 4 - it's Expresso. When deploying Expresso something is being used but I don't know what. Any ideas from the Expresso community? Regards Thomas :-) As sceptical as one can be! (-: -- Get personalised email addresses at http://another.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
SV: BIG problem with restarting Tomcat 4
Hi Thomas, I've got the same problem. I found out that I have to wait a few seconds after I stopped catalina. Uwe -Ursprungligt meddelande- Från: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Skickat: den 25 februari 2002 17:02 Till: [EMAIL PROTECTED] Ämne: BIG problem with restarting Tomcat 4 Hi, there are already messages in this forum, but: nevertheless it doesn't work. When starting Tomcat 4 (Linux) for the first time, everything works fine. But when stopping Tomcat and restarting there is the following message: Catalina.start: LifecycleException: Error creating server socket (java.net.BindException): java.net.BindException: Die Adresse wird bereits verwendet LifecycleException: Error creating server socket (java.net.BindException): java.net.BindException: Die Adresse wird bereits verwendet at org.apache.catalina.connector.warp.WarpConnector.initialize(WarpConnector.ja va:491) at org.apache.catalina.core.StandardService.initialize(StandardService.java:454 ) at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:553) at org.apache.catalina.startup.Catalina.start(Catalina.java:780) at org.apache.catalina.startup.Catalina.execute(Catalina.java:681) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243) - Root Cause - I don't see what application should listen to some of the used ports, too (how to find out??). And everything worked fine with Jakarta 3.3. I tried the -XdoCloseWithReadPending parameter, but this does#nt work (JVM doesn't start). Please help me - I'm at the end of the rope...No ideas any more. Best regards and thanks in advance Thomas :-) As sceptical as one can be! (-: -- Get personalised email addresses at http://another.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: restarting Tomcat 4
It works fine if you wait long enough between calling the stop and start script, but not if you write a restart script which calls catalina.sh start and immediately after, catalina.sh stop, because then there's no delay between the two, and tomcat doesn't have the time to shutdown before you try (and fail) to restart it. In my case, I need to wait 10 seconds between doing a shutdown and a startup, but this varies depending on the number of webapps you have (in the case of the original poster, it's 40 seconds), so I agree with him there should be a more elegant way to restart the server. Thanh Duong wrote: Hi, to start tomcat in a separate window use $CATALINA_HOME/bin/catalina.sh start to stop tomcat use $CATALINA_HOME/bin/catalina.sh stop It works fine so you don't need to wait for ending the tomcat process. Bye Thanh -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Donnerstag, 14. Februar 2002 16:02 To: [EMAIL PROTECTED] Subject: restarting Tomcat 4 Hi. I was wondering if anyone out there has a good way of restarting Tomcat 4...? In version 3, I used to just be able to do $TOMCAT_HOME/bin/shutdown.sh; $TOMCAT_HOME/bin/startup.sh. Now, in version 4 though, since the starting and stopping scripts seem to have been modified to be background processes, this no longer works since it won't wait for the first script to finish anymore before starting the second one. Now, my restart alias looks like this: $CATALINA_HOME/bin/shutdown.sh; sleep 40; $CATALINA_HOME/bin/startup.sh. Pretty lame, and I just arrived at the sleep value by trial and error (actually as I add more stuff in my server.xml file, I think the shutdown might even take longer, so I may need to bump this value up). Does anyone have any more elegant/exact ways of doing this? -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
restarting Tomcat 4
Hi. I was wondering if anyone out there has a good way of restarting Tomcat 4...? In version 3, I used to just be able to do $TOMCAT_HOME/bin/shutdown.sh; $TOMCAT_HOME/bin/startup.sh. Now, in version 4 though, since the starting and stopping scripts seem to have been modified to be background processes, this no longer works since it won't wait for the first script to finish anymore before starting the second one. Now, my restart alias looks like this: $CATALINA_HOME/bin/shutdown.sh; sleep 40; $CATALINA_HOME/bin/startup.sh. Pretty lame, and I just arrived at the sleep value by trial and error (actually as I add more stuff in my server.xml file, I think the shutdown might even take longer, so I may need to bump this value up). Does anyone have any more elegant/exact ways of doing this? Thanks, -Jeff -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: restarting Tomcat 4
Hi, to start tomcat in a separate window use $CATALINA_HOME/bin/catalina.sh start to stop tomcat use $CATALINA_HOME/bin/catalina.sh stop It works fine so you don't need to wait for ending the tomcat process. Bye Thanh -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Donnerstag, 14. Februar 2002 16:02 To: [EMAIL PROTECTED] Subject: restarting Tomcat 4 Hi. I was wondering if anyone out there has a good way of restarting Tomcat 4...? In version 3, I used to just be able to do $TOMCAT_HOME/bin/shutdown.sh; $TOMCAT_HOME/bin/startup.sh. Now, in version 4 though, since the starting and stopping scripts seem to have been modified to be background processes, this no longer works since it won't wait for the first script to finish anymore before starting the second one. Now, my restart alias looks like this: $CATALINA_HOME/bin/shutdown.sh; sleep 40; $CATALINA_HOME/bin/startup.sh. Pretty lame, and I just arrived at the sleep value by trial and error (actually as I add more stuff in my server.xml file, I think the shutdown might even take longer, so I may need to bump this value up). Does anyone have any more elegant/exact ways of doing this? Thanks, -Jeff -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: restarting tomcat by calling runtime.exec on a .bat file (tc 3.2.4)
If you call net stop tomcat (which effectively does a System.exit), how will the Java process be around to call net start tomcat? (Answer, it won't). Randy -Original Message- From: Matt Egyhazy [mailto:[EMAIL PROTECTED]] Sent: Saturday, February 02, 2002 6:24 PM To: Tomcat Users List Subject: restarting tomcat by calling runtime.exec on a .bat file (tc 3.2.4) hi, im trying to exec a .bat file that moves files around and restarts tomcat from a servlet. it seems as though the .bat file is being run up to the point where it calls net stop tomcat net start tomcat any ideas? am i doing something wrong or is there an easier way to restart tomcat? thanks, matt -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
restarting tomcat by calling runtime.exec on a .bat file (tc 3.2.4)
hi, im trying to exec a .bat file that moves files around and restarts tomcat from a servlet. it seems as though the .bat file is being run up to the point where it calls net stop tomcat net start tomcat any ideas? am i doing something wrong or is there an easier way to restart tomcat? thanks, matt -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: how to get changes to web.xml without restarting tomcat
Hi, -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 31, 2002 6:17 PM To: [EMAIL PROTECTED] Subject: how to get changes to web.xml without restarting tomcat All, My dilemma as I understand it is this. Tomcat is run at root level, requiring restarts of both Tomcat and Apache to be performed by the system administrator. For changes to take effect in web.xml (so far as I can tell) Tomcat must be restarted. This means, bugging the system administrator to restart Tomcat and then restart Apache. Anytime an init-param changes I have to go through the sysadmin. As I recently inherited a bunch of servlets, and they have migrated from windows to Linux and from JWS to Tomcat, as you can imagine there are many changes to such parameters. Is there a way to get around this at all? Reloading class files is already transparent to the sysadmin, either through a reloadable context, or the manager application, but the web.xml changes are bringing me down. Do I have to write a custom servlet? It seems to me that Tomcat should allow for something basic like this. Yeap, I expected reloading to read and parse web.xml every time. But it doesn't. So, I have to start/stop application from manager application. Using HTMLManagerServlet its still pretty easy, just two clicks. Thanks to any who take the time to try to help. Tim - Timothy DD Martin CSC - GreenTec IV (301) 794-2815 [EMAIL PROTECTED] Anton. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]