Manoj's advice is good.  I just thought I'd elaborate on this:

"Also, tomcat looks for the entry 'reloadable' in its context entries.  If set to 
true, it will automatically reload any classes that are changed."

Often I don't bother defining context entries - it's convenient enough for me to just 
let Tomcat deploy whatever it finds in the "/webapps/" directory.  If you're doing 
things that way, then you won't be able to find any context entries in which to add 
the "reloadable" attribute.  In that case you have to add a <DefaultContext> element 
(inside <Host>) like so:

<DefaultContext reloadable="true"/>

It's described here:
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/defaultcontext.html

As far as I can tell all "reloadable" is really good for is changes to the classpath - 
so new Jars, classes and properties files inside WEB-INF/classes.

In addition:

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5497:

"Tomcat pays no attention at all to changes in files included by the <%@ include 
%> directive (it doesn't matter what your browser is).  If you want the JSP page 
to be recompiled, you must modify the timestamp of the JSP page itself."

        - Craig McClanahan, 2001-12-19


Here are two ways to force a complete recompile of every jsp:
        1. "touch" every jsp (the unix utility that changes the datestamp on files).
        2. or delete all subdirectories inside /Tomcat/work/* and restart Tomcat.
        

Julius Davies
Programmer
Credit Union Central of British Columbia
604-730-6385
[EMAIL PROTECTED]


> -----Original Message-----
> From: koktsing [mailto:[EMAIL PROTECTED]]
> Sent: Monday, August 26, 2002 10:25 PM
> To: [EMAIL PROTECTED]
> Subject: problem: cannot autorecompile jsp
> 
> 
> Hai,
> 
> I faced some trouble in using tomcat, hope you can solve the 
> problem for
> me.
> below are some of the main points:
> -I installed Tomcat4.1.9 beta on linux server
> -Develop in windows enviroment by using samba
> -But i got problem like this: No changes from the browser when i edit
> the jsp file in windows but instance change when i edit the jsp file
> using vi. I tried to log this into to tomcat bug database [11963]
> before, Andrew Conrad had give me some advise.
> -Andrew Conrad told me that it should my samba problem, but nothing to
> do with tomcat. so i ask him may i know how tomcat check the file is
> modified or not and he told me i can try to send email to this address
> -I also suddenyl think off that it should not be the samba 
> problem. This
> is because i have another Miva  web engine running in the same server,
> but all the development works were done without problem.
> 
> May anyone help me on this?
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: 
> <mailto:[EMAIL PROTECTED]>
> 
> 

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

Reply via email to