tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tom Drake" <...@pobox.com>
Subject Re: TC 4.0.1: classes being cached - requires restart to update
Date Fri, 09 Nov 2001 21:17:45 GMT
It could be that the 'cached' class is stored in your Session. This would be
the case if it has session context, or you explicitly add it to the session
in a jsp or servlet. I doubt that Tomcat will try to reload a class that is
in such a state.

Tom Drake.


----- Original Message -----
From: "Remy Maucherat" <rmaucher1@home.com>
To: "Tomcat Users List" <tomcat-user@jakarta.apache.org>
Sent: Friday, November 09, 2001 12:34 PM
Subject: Re: TC 4.0.1: classes being cached - requires restart to update


| > I am using Tomcat in it's standalone mode.
| >
| > I am doing work on a class that is being imported by a jsp. I have not
| found no
| > reliable way to not have tomcat hold the contents of the class in
memory.
| I am
| > forced to restart to get tomcat to show the changes which is a big drag
on
| a
| > debug cycle.
| >
| > I have the following server.xml config flags for the context:
| >
| > debug="0"
| > reloadable="true"
| > cachingAllowed="false"
|
| Remove the cachingAllowed attribute, it won't help (it will only reduce
| performance).
|
| > despite this, changes made to an imported class never show up unless I
| stop and
| > start tomcat standalone. I have tried deleteing the class file for the
| imported
| > class file -- interestingly, it gets recompiled but the new version is
not
| the
| > one i see in use unless i restart. I have also tried trashing both the
jsp
| > servlet class file and the class file and various combinations, nothing
| > regarding the imported class seems to be effected by messing with the
| files.
| >
| > is there a config I am missing? a bug? short of this, is there a
| simpler/faster
| > workaround than restarting tomcat?
|
| It works for me (tried with the JSP dates example; modifying the helper
bean
| class causes the reloading).
|
| The bean class must be in /WEB-INF/classes.
|
| Remy
|
|
| --
| To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
| For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
| Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>
|
|
|


--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message