Hi Hector,
This question has been asked several times and it seems nobody wants to answer
it. I did ask similar question too a couple months ago with the same result :-(
I do not think I know the exact answer, but from my experience I see the
following.
1. classes must be in WEB-INF/classes in order to be reloaded (Tomcat doc)
2. reloading is experimental feature and there is no guarantee that clases other
than servlets will be reloaded.
3. one can see intermittent problems with class reloading in tomcat (I
personally use 3.2.1) even if condition 1 is true.
I am not sure how tomcat reloading is implemented but it seems that reloading
problems happens if the class to be reloaded keeps a reference to an existing
object. In our case it happens during some exceptions that are not properly
handled by developers (for ex, due to sql errors db connection is not returned
to a pool or not closed). Then the object is not destroyed during reloading.
Making code clean like proper releasing resorses avoids relaoding problems in
our case.
Try to look at your code and make sure your servlets close all references
properly especially when there are exceptions.
hth
*********************************************************************
* Boris Niyazov Ph: 212-854-4094 Fax: 212-854-1749 *
* Systems Manager Email: [EMAIL PROTECTED] *
* Columbia Law School URL: http://www.law.columbia.edu *
*********************************************************************
>
>
>Hi servleters:
> I've making some tests trying to resolve when and how Tomcat does
>a servlet reloading. The spec says that when a servlet container makes
>a servlet reloading, it must discard all classes previouslly loaded for its
>context. This really works for Tomcat, but it doesn't work very well, at
>least for me. For example, if I change two servlets and some utility classes,
>one of the servlets and the utility classes, are reload, but no both of the
>servlets (not every time). I'm using Tomcat 3.2.2 with mod_jk / ajp13,
>Windows NT 4.0 SP6, JDK 1.2.2_008, Apache 1.3.20. I've read the
>release notes too.
> Does anybody know where I can find some useful information about
>this topic.
> Thanks in advance.
>
>Hector Adolfo Alonso
>Consist Teleinformatica S. A.
>
>