You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Durham David Cntr 805CSS/SCBE <da...@scott.af.mil> on 2001/12/12 20:48:19 UTC
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?
David Durham
Programmer Analyst, NCI Information Systems
805th AMC / SCBE
(618) 256 - 5264
--
To unsubscribe: <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>
Re: class cast exception
Posted by "Craig R. McClanahan" <cr...@apache.org>.
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 <da...@scott.af.mil>
> Reply-To: Tomcat Users List <to...@jakarta.apache.org>
> To: tomcat-user@jakarta.apache.org
> 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: <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>