On Wed, 12 Dec 2001, Durham David Cntr 805CSS/SCBE wrote:
> Date: Wed, 12 Dec 2001 13:48:19 -0600
> From: Durham David Cntr 805CSS/SCBE <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: class cast exception
>
> I receive a class cast exception pulling something out of a session
> after I recompile a servlet.
>
> The object I'm pulling out of the session is of a class that has not
> changed. i.e. I changed a servlet not the class of an object in the
> session. Restarting Tomcat fixes the problem. This seems like a bug to
> me, has anyone else noticed this behavior?
>
This will absolutely happen if you are using classes out of a shared
library directory instead of within the webapp, or if you are somehow
maintaining references to object instances created with the old class and
trying to use them after the reload.
>
>
> David Durham
> Programmer Analyst, NCI Information Systems
> 805th AMC / SCBE
> (618) 256 - 5264
>
Craig
--
To unsubscribe: <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>