This message contains a ant build.xml snippet to precompile all jsps's into a jar. If you implement this - then all your need to do is replace the jar file of precompiled JSP's (1 file) and reload the server.

http://marc.theaimsgroup.com/?l=tomcat-user&m=108999588415291&w=2


-Tim

Flisch, Alan wrote:
I hope you can help me with this...

I am trying to devise a precompiling procedure to reduce load on our production 
servers.  I am precompiling the jsps on a staging server and then copying over the 
.jsp files to the appropriate webapp directory and the .java and .class files to the 
work directory.  It works great the first time (it spots the new JSP and notices a 
newer compiled version in the work directory and loads that without any compilation), 
but it does not work when I am trying to copy over new versions of existing JSPs - it 
continues to serve the old one even though the .jsp file is new and the .class and 
.jsp files are new.  I'm not sure what it does - it seems that it must be comparing 
the modified time of the .jsp file with that of the .class file and if the class file 
is newer it does nothing even if they are both newer than the loaded class file.

Does anybody have any idea how I can prompt it to load the new class in the work 
directory to replace the existing one - is this even possible?

Any help would be much appreciated.


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to