I am a new tomcat user (ver 3.2.1) on RedHat 7.0. I put a test servlet in
the webapps/examples/WEB-INF/classes directory and it ran fine. But when I
modifiy the .java file and recompile it with javac, I cannot get the
modified version to display in the browser. I'm pretty sure it is not a
cache problem in my browser. I even deleted the .class file and the old
result still displayed. I can get the changes to appear by shutting down
and starting up tomcat. But I cannot figure out how to get the old class
out of tomcat's cache (short of shutting it down). I've read most of the
included documentation and it talks a lot about being able to reload a
changed class, but no matter where I've tried to put the servlet class in
the directory structure, or what I add to the XML files, I can't get it to
reload. What is the trick to it? How does tomcat detect whether the class
file has been modified - does it check the file date each time it is called?
Do I need to be using some tool other than a text editor and the javac
compiler for the servlet class?
Any help will be appreciated. Thanks.
-Gary Lundquest