Re: Runtime debugging - and Painfull Tomcat restarts
Thanks Laurie. --- Laurie Harper [EMAIL PROTECTED] wrote: As far as I know, Tomcat only supports fully reloading the whole app. You might want to ask on the Tomcat list to be sure, though. L. Mon Cab wrote: Thanks Laurie. That helps a lot. I read about the context.xml file, but couldnt find an example file, and wasn't sure what to write in it. After poking around in the conf directory, I was also confused as to where I would find the host element. do you know if its possible to specify which parts of the app are reloaded, or will Tomcat, just reload the whole app ? --- Laurie Harper [EMAIL PROTECTED] wrote: There's various options for where you can define a context. From the top of the page I liked to before: -- In addition to nesting Context elements inside a Host element, you can also store them: * in the individual $CATALINA_HOME/conf/context.xml file: the Context element information will be loaded by all webapps * in the individual $CATALINA_HOME/conf/[enginename]/[hostname]/context.xml.default file: the Context element information will be loaded by all webapps of that host * in individual files (with a .xml extension) in the $CATALINA_HOME/conf/[enginename]/[hostname]/ directory * if the previous file was not found for this application, in individual file at /META-INF/context.xml inside the application files -- So, for example, you can create a file /META-INF/context.xml in your webapp with something like the following in it: -- Context path=/myapp debug=0 privileged=true reloadable=true /Context -- L. Mon Cab wrote: Laurie Paul Thanks for your help on this one. Is there any way that this could be configured to just reload the specific classes that were changed, rather than reloading the whole app? Also, I read the link you gave to set context reloadable to true, but couldn't quite see which file I would set that in. Would that be in web.xml? --- Mon Cab [EMAIL PROTECTED] wrote: Is there any way to avoid having to restart Tomcat every time a class is recompiled in a webapp. I am debugging a webapp at the moment, and everytime I recompile my Action class I am having to wait 1 minute for Tomcat to restart. __ Yahoo! FareChase: Search multiple travel sites in one click. http://farechase.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Start your day with Yahoo! - Make it your home page! http://www.yahoo.com/r/hs - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Yahoo! FareChase: Search multiple travel sites in one click. http://farechase.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Runtime debugging - and Painfull Tomcat restarts
Laurie Paul Thanks for your help on this one. Is there any way that this could be configured to just reload the specific classes that were changed, rather than reloading the whole app? Also, I read the link you gave to set context reloadable to true, but couldn't quite see which file I would set that in. Would that be in web.xml? --- Mon Cab [EMAIL PROTECTED] wrote: Is there any way to avoid having to restart Tomcat every time a class is recompiled in a webapp. I am debugging a webapp at the moment, and everytime I recompile my Action class I am having to wait 1 minute for Tomcat to restart. __ Yahoo! FareChase: Search multiple travel sites in one click. http://farechase.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Start your day with Yahoo! - Make it your home page! http://www.yahoo.com/r/hs - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Runtime debugging - and Painfull Tomcat restarts
There's various options for where you can define a context. From the top of the page I liked to before: -- In addition to nesting Context elements inside a Host element, you can also store them: * in the individual $CATALINA_HOME/conf/context.xml file: the Context element information will be loaded by all webapps * in the individual $CATALINA_HOME/conf/[enginename]/[hostname]/context.xml.default file: the Context element information will be loaded by all webapps of that host * in individual files (with a .xml extension) in the $CATALINA_HOME/conf/[enginename]/[hostname]/ directory * if the previous file was not found for this application, in individual file at /META-INF/context.xml inside the application files -- So, for example, you can create a file /META-INF/context.xml in your webapp with something like the following in it: -- Context path=/myapp debug=0 privileged=true reloadable=true /Context -- L. Mon Cab wrote: Laurie Paul Thanks for your help on this one. Is there any way that this could be configured to just reload the specific classes that were changed, rather than reloading the whole app? Also, I read the link you gave to set context reloadable to true, but couldn't quite see which file I would set that in. Would that be in web.xml? --- Mon Cab [EMAIL PROTECTED] wrote: Is there any way to avoid having to restart Tomcat every time a class is recompiled in a webapp. I am debugging a webapp at the moment, and everytime I recompile my Action class I am having to wait 1 minute for Tomcat to restart. __ Yahoo! FareChase: Search multiple travel sites in one click. http://farechase.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Start your day with Yahoo! - Make it your home page! http://www.yahoo.com/r/hs - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Runtime debugging - and Painfull Tomcat restarts
Thanks Laurie. That helps a lot. I read about the context.xml file, but couldnt find an example file, and wasn't sure what to write in it. After poking around in the conf directory, I was also confused as to where I would find the host element. do you know if its possible to specify which parts of the app are reloaded, or will Tomcat, just reload the whole app ? --- Laurie Harper [EMAIL PROTECTED] wrote: There's various options for where you can define a context. From the top of the page I liked to before: -- In addition to nesting Context elements inside a Host element, you can also store them: * in the individual $CATALINA_HOME/conf/context.xml file: the Context element information will be loaded by all webapps * in the individual $CATALINA_HOME/conf/[enginename]/[hostname]/context.xml.default file: the Context element information will be loaded by all webapps of that host * in individual files (with a .xml extension) in the $CATALINA_HOME/conf/[enginename]/[hostname]/ directory * if the previous file was not found for this application, in individual file at /META-INF/context.xml inside the application files -- So, for example, you can create a file /META-INF/context.xml in your webapp with something like the following in it: -- Context path=/myapp debug=0 privileged=true reloadable=true /Context -- L. Mon Cab wrote: Laurie Paul Thanks for your help on this one. Is there any way that this could be configured to just reload the specific classes that were changed, rather than reloading the whole app? Also, I read the link you gave to set context reloadable to true, but couldn't quite see which file I would set that in. Would that be in web.xml? --- Mon Cab [EMAIL PROTECTED] wrote: Is there any way to avoid having to restart Tomcat every time a class is recompiled in a webapp. I am debugging a webapp at the moment, and everytime I recompile my Action class I am having to wait 1 minute for Tomcat to restart. __ Yahoo! FareChase: Search multiple travel sites in one click. http://farechase.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Start your day with Yahoo! - Make it your home page! http://www.yahoo.com/r/hs - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Runtime debugging - and Painfull Tomcat restarts
As far as I know, Tomcat only supports fully reloading the whole app. You might want to ask on the Tomcat list to be sure, though. L. Mon Cab wrote: Thanks Laurie. That helps a lot. I read about the context.xml file, but couldnt find an example file, and wasn't sure what to write in it. After poking around in the conf directory, I was also confused as to where I would find the host element. do you know if its possible to specify which parts of the app are reloaded, or will Tomcat, just reload the whole app ? --- Laurie Harper [EMAIL PROTECTED] wrote: There's various options for where you can define a context. From the top of the page I liked to before: -- In addition to nesting Context elements inside a Host element, you can also store them: * in the individual $CATALINA_HOME/conf/context.xml file: the Context element information will be loaded by all webapps * in the individual $CATALINA_HOME/conf/[enginename]/[hostname]/context.xml.default file: the Context element information will be loaded by all webapps of that host * in individual files (with a .xml extension) in the $CATALINA_HOME/conf/[enginename]/[hostname]/ directory * if the previous file was not found for this application, in individual file at /META-INF/context.xml inside the application files -- So, for example, you can create a file /META-INF/context.xml in your webapp with something like the following in it: -- Context path=/myapp debug=0 privileged=true reloadable=true /Context -- L. Mon Cab wrote: Laurie Paul Thanks for your help on this one. Is there any way that this could be configured to just reload the specific classes that were changed, rather than reloading the whole app? Also, I read the link you gave to set context reloadable to true, but couldn't quite see which file I would set that in. Would that be in web.xml? --- Mon Cab [EMAIL PROTECTED] wrote: Is there any way to avoid having to restart Tomcat every time a class is recompiled in a webapp. I am debugging a webapp at the moment, and everytime I recompile my Action class I am having to wait 1 minute for Tomcat to restart. __ Yahoo! FareChase: Search multiple travel sites in one click. http://farechase.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Start your day with Yahoo! - Make it your home page! http://www.yahoo.com/r/hs - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Runtime debugging - and Painfull Tomcat restarts
Is there any way to avoid having to restart Tomcat every time a class is recompiled in a webapp. I am debugging a webapp at the moment, and everytime I recompile my Action class I am having to wait 1 minute for Tomcat to restart. __ Yahoo! FareChase: Search multiple travel sites in one click. http://farechase.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Runtime debugging - and Painfull Tomcat restarts
Mon Cab wrote: Is there any way to avoid having to restart Tomcat every time a class is recompiled in a webapp. I am debugging a webapp at the moment, and everytime I recompile my Action class I am having to wait 1 minute for Tomcat to restart. You can tell Tomcat to make the context reloadable. It'll automatically redeploy your application whenever it sees a class get updated. That should be faster than shutting down and restarting the entire container. See the Tomcat documentation [1] for details -- specifically, the 'reloadable' attribute of the context configuration. L. [1] http://tomcat.apache.org/tomcat-5.5-doc/config/context.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Runtime debugging - and Painfull Tomcat restarts
Check out your context setting. Set the reloadable attribute to true. http://tomcat.apache.org/tomcat-5.0-doc/config/context.html Set to true if you want Catalina to monitor classes in /WEB-INF/classes/ and /WEB-INF/lib for changes, and automatically reload the web application if a change is detected. This feature is very useful during application development, but it requires significant runtime overhead and is not recommended for use on deployed production applications. That's why the default setting for this attribute is false. You can use the Manager web application, however, to trigger reloads of deployed applications on demand. Just don't be too quick. You usually need about 5 seconds between saves for it catch the file change. If you are too quick, it won't pick it up. --- Mon Cab [EMAIL PROTECTED] wrote: Is there any way to avoid having to restart Tomcat every time a class is recompiled in a webapp. I am debugging a webapp at the moment, and everytime I recompile my Action class I am having to wait 1 minute for Tomcat to restart. __ Yahoo! FareChase: Search multiple travel sites in one click. http://farechase.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Yahoo! FareChase: Search multiple travel sites in one click. http://farechase.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]