tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Kolmar <>
Subject RE: Changes in Servlet not getting loaded
Date Thu, 11 May 2000 14:37:34 GMT
I have also been unable to see changes to a .class after recompilation,
even though lines like these appear in conf/server.xml:

        <Context path="" docBase="webapps/ROOT" debug="0"
reloadable="true" > 

Context for /test and /examples is basically the same.

Should Tomcat automagially reload a modified servlet?  If not, can the
reload be triggered manually? Unless I misunderstand the meaning of
'reloadable="true"', or this is the wrong file, or similar.

It should not be necessary to restart a development server, much less a
production server, in order to modify a single servlet on a site.

Mark Kolmar
Manta Media Inc.

-----Original Message-----
From: Ritesh Kumar []
Sent: Thursday, May 11, 2000 9:00 AM
Subject: Re: Changes in Servlet not getting loaded


But I have cleared all cache of browser and then closed it and then
browser. Even then this happens


BCR \\ CRAPART Bruno wrote:

> In my opinion, it is a cache problem.
> This lines might help you.
> <META HTTP-EQUIV="Pragma" CONTENT="no-cache">
> <META HTTP-EQUIV="Cache-Control" CONTENT="no-cache">
> <%
>   response.setHeader("Expires", "Mon, 26 Jul 1990 05:00:00 GMT");
> // Date in the past
>   response.setHeader("Cache-Control" ,"no-cache, must-revalidate");
> // HTTP/1.1
>   response.setHeader("Pragma", "no-cache");
> // HTTP/1.0
> %>
> -----Message d'origine-----
> De : Ritesh Kumar []
> Envoyé : jeudi 11 mai 2000 15:40
> À :
> Objet : Changes in Servlet not getting loaded
> Hi,
> When I put a fresh servlet under /webapps/example/WEB-INF/classes it
> works fine.
> But if I change .java file and compile to .class file and then try to
> use that servlet then also it picks up old .class file and not the
> updated one.
> Only when I restart tomcat and then apache, the new .class file is
> uploaded.

View raw message