struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig R. McClanahan" <>
Subject Re: Server Reloading classes
Date Sat, 14 Apr 2001 03:18:37 GMT

On Tue, 10 Apr 2001 wrote:

> Hi everyone.
> After a very frustrating time trying to get Tomcat reloading to work, and trying
> to do so with v4, I finally discovered that it is only version 4.0 b1 (and not
> b2 or b3) in which this DOES work (see
> Can be downloaded from:
> Thought some others out there might find this useful.
> Dave

There is one and only one place that you can put your classes and have
them trigger automatic reloading -- in the WEB-INF/classes directory of
your web application.  Placing them anywhere else will *not* trigger
reloading.  You also have to set up a <Context> entry for this application
that includes reloadable="true" in its attributes.

However, you do have another option with Tomcat 4 -- use the manager
appliation to trigger reloading manually.  The first thing you have to do
is create a user in the "conf/tomcat-users.xml" file that is assigned the
role "manager" (because the manager application is protected by a security
constraint).  Now, if you want to reload your application mounted on
context path "/myapp", simply open a new browser window and go to


and answer the username/password questions (the first time).  This will
reload your application unconditionally, so it's quite useful when you
changed something like your application resources file, rather than
recompiling a class.

If you still have problems with reloading in Tomcat, you should report a
bug to the bug tracking system

under product category "Tomcat 4".


View raw message