tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David" ...@arrayone.com>
Subject Re: auto-run updated classes
Date Fri, 01 Feb 2008 15:03:40 GMT
Where is the context element located (which xml file)?
Thanks
David Schwartz
ds@arrayone.com

-----Original Message-----
From: Christopher Schultz <chris@christopherschultz.net>

Date: Fri, 01 Feb 2008 09:42:27 
To:Tomcat Users List <users@tomcat.apache.org>
Subject: Re: auto-run updated classes


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Chuck,

Caldarale, Charles R wrote:
|> From: David Schwartz [mailto:ds@arrayone.com]
|> Subject: auto-run updated classes
|>
|> What is the setting/config to automatically run updated classes
|> (without having to restart Tomcat each time I compile a .java file)?
|
| Modified .jsp files can be reprocessed immediately by setting the
| appropriate attributes for the JspServlet in conf/web.xml file.  For
| modified .class files (or .jar files), you need to restart the webapp.

You do have another option: Set reloadable="true" in your <Context>
element, which has the effect of adding <WatchedElement> configuration
for all JAR files in WEB-INF/lib and .class files in WEB-INF/classes.

In this case, Tomcat will restart when any .class file (that has already
been loaded, mind you) or JAR file is updated.

http://tomcat.apache.org/tomcat-6.0-doc/config/context.html

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkejL9MACgkQ9CaO5/Lv0PCJ/QCgn8f0vNrJbup8hq9op744A6/g
yX0AnRWXDQ4ejQ8vzMhCw2U4p2A22j2v
=YoRX
-----END PGP SIGNATURE-----

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

Mime
View raw message