You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Douglas McCarroll <do...@brightworks.com> on 2001/07/23 18:02:11 UTC

What does "IMPORTANT: Do not modify the generated servlets" log message indicate?

Hi,

I'm getting a message that I should check my log file when I start Tomcat,
and when I look it tells me "IMPORTANT: Do not modify the generated
servlets".

I'm very new to Tomcat, so I may be flailing around here, but, I was under
the impression that if one recompiled one's servlet code Tomcat would simply
reload the servlet on the next request. The above message seems to imply
that I shouldn't count on this.

Perhaps I haven't set the servlet as reloadable - I've tried to accomplish
this by setting my server.xml's Server:ContextManager:Context's reloadable
attribute to true (for the servlet in question) - but the above message
suggests that there is _something_ that I don't understand.

TIA for any light that you can shed.

Douglas McCarroll


RE: What does "IMPORTANT: Do not modify the generated servlets" log message indicate?

Posted by Douglas McCarroll <do...@brightworks.com>.
Thanks, Matt & Dmitri, for the responses.

> -----Original Message-----
> From: Matt Read [mailto:mread@dircon.co.uk]
> Sent: Monday, July 23, 2001 8:50 PM
> To: tomcat-user@jakarta.apache.org
> Subject: Re: What does "IMPORTANT: Do not modify the generated servlets"
> log message indicate?
>
>
> Both those messages (tomcat startup and jasper.log) will appear regardless
> of whether you've got any problems with any part of your system. They're
> just for your information really. Your assumption about
> recompiling servlets
> is correct if you leave the "reloadable" attribute for the context as it's
> default of true. Note that Tomcat often doesn't reload if you're only
> recompiling classes used by your servlets though...
>
> Matt.
>
> ----- Original Message -----
> From: "Douglas McCarroll" <do...@brightworks.com>
> To: "tomcat-user List" <to...@jakarta.apache.org>
> Sent: 23 July 2001 17:02
> Subject: What does "IMPORTANT: Do not modify the generated servlets" log
> message indicate?
>
>
> > Hi,
> >
> > I'm getting a message that I should check my log file when I
> start Tomcat,
> > and when I look it tells me "IMPORTANT: Do not modify the generated
> > servlets".
> >
> > I'm very new to Tomcat, so I may be flailing around here, but,
> I was under
> > the impression that if one recompiled one's servlet code Tomcat would
> simply
> > reload the servlet on the next request. The above message seems to imply
> > that I shouldn't count on this.
> >
> > Perhaps I haven't set the servlet as reloadable - I've tried to
> accomplish
> > this by setting my server.xml's Server:ContextManager:Context's
> reloadable
> > attribute to true (for the servlet in question) - but the above message
> > suggests that there is _something_ that I don't understand.
> >
> > TIA for any light that you can shed.
> >
> > Douglas McCarroll
> >
>
>


Re: What does "IMPORTANT: Do not modify the generated servlets" log message indicate?

Posted by Matt Read <mr...@dircon.co.uk>.
Both those messages (tomcat startup and jasper.log) will appear regardless
of whether you've got any problems with any part of your system. They're
just for your information really. Your assumption about recompiling servlets
is correct if you leave the "reloadable" attribute for the context as it's
default of true. Note that Tomcat often doesn't reload if you're only
recompiling classes used by your servlets though...

Matt.

----- Original Message -----
From: "Douglas McCarroll" <do...@brightworks.com>
To: "tomcat-user List" <to...@jakarta.apache.org>
Sent: 23 July 2001 17:02
Subject: What does "IMPORTANT: Do not modify the generated servlets" log
message indicate?


> Hi,
>
> I'm getting a message that I should check my log file when I start Tomcat,
> and when I look it tells me "IMPORTANT: Do not modify the generated
> servlets".
>
> I'm very new to Tomcat, so I may be flailing around here, but, I was under
> the impression that if one recompiled one's servlet code Tomcat would
simply
> reload the servlet on the next request. The above message seems to imply
> that I shouldn't count on this.
>
> Perhaps I haven't set the servlet as reloadable - I've tried to accomplish
> this by setting my server.xml's Server:ContextManager:Context's reloadable
> attribute to true (for the servlet in question) - but the above message
> suggests that there is _something_ that I don't understand.
>
> TIA for any light that you can shed.
>
> Douglas McCarroll
>


Re: What does "IMPORTANT: Do not modify the generated servlets" log message indicate?

Posted by Dmitri Colebatch <di...@bigpond.net.au>.
By "generated servlets" Tomcat is referring to the servlets that it builds
JSPs into.  Remember that JSPs are compiled into servlets.  When it does
this, it leaves the source in $TOMCAT_HOME/work - what this message is
saying is dont bother changing that source, nothing will happen.


cheesr
dim

On Mon, 23 Jul 2001, Douglas McCarroll wrote:

> Hi,
> 
> I'm getting a message that I should check my log file when I start Tomcat,
> and when I look it tells me "IMPORTANT: Do not modify the generated
> servlets".
> 
> I'm very new to Tomcat, so I may be flailing around here, but, I was under
> the impression that if one recompiled one's servlet code Tomcat would simply
> reload the servlet on the next request. The above message seems to imply
> that I shouldn't count on this.
> 
> Perhaps I haven't set the servlet as reloadable - I've tried to accomplish
> this by setting my server.xml's Server:ContextManager:Context's reloadable
> attribute to true (for the servlet in question) - but the above message
> suggests that there is _something_ that I don't understand.
> 
> TIA for any light that you can shed.
> 
> Douglas McCarroll
> 
>