<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>"Those who cast the votes decide nothing. Those who count the<BR>votes decide<BR>everything." <BR> -Joseph Stalin<HR></BLOCKQUOTE>
Originally posted by Frank Carver:
Tomcat attempts to reload changed classes, but is reputedly not very good at it. A lot of Tomcat users habitually restart the server when things change. I find Resin from http://www.caucho.com to be much more predictable at this, so you may want to consider traying alternatives.
Detection of changes is usually dependent on whether the directories containing the class files are in the "dynamic" part of the classpath which is examined by the server, and also dependent on timestamp differences between class files and source files.
Also, I would like to know what is the effect of the timestamp difference between the class files and source files.
Associate Instructor - Hofstra University
Amazon Top 750 reviewer - Blog - Unresolved References - Book Review Blog
Originally posted by Sean MacLean:
Servlet Not Refreshing .... ummmmm ... try a twist of lemon. That alway's perks up a glass of iced tea
Sorry, I couldn't resist. I'll go now.
Sean
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>"Those who cast the votes decide nothing. Those who count the<BR>votes decide<BR>everything." <BR> -Joseph Stalin<HR></BLOCKQUOTE>
Originally posted by Frank Carver:
OK, maybe in Tomcat the source file timestamp is not important, but Resin (with which I am most familiar) will compile new source files and autoreload the changed classfile as one operation. A few times I have been expecting this to happen but it has been prevented because I was deploying the source file via a shared file system from a machine with a slightly different clock time.
Resin is free for development and non-profit use, or $500 per machine for commercial deployment. Well worth it in my opinion. It's open source and the free support is good, but if you register the software you also get the email "ear" of the developers.
Originally posted by Frank Carver:
Essentially the process is simple. Download the latest stable executable from http://www.caucho.com and follow the instructions on the site. Is there anything in particular you want to set it up to do?
Originally posted by Frank Carver:
The supplied installation of Resin will both compile and reload classes by default, or reload them if the class file is newer than the loaded version. Are you having problems making it work?
Originally posted by Frank Carver:
I'm a little puzzled why youneed to compile them elsewhere then move the files to the default (doc) web-app used by Resin. Is there a particular reason why you can't put both your source and class files in doc/web-inf/classes directory so it can see what's happening? Or, failing that, compile the files directly into doc/web-inf/classes using your manual compiler or IDE. Both of these approaches have worked for me.
If there is still a problem, please let us know which particular Resin version you are using, and any changes you have made to resin.conf, and I'll check out what it should be doing.