tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Rees" <dr...@ebetinc.com>
Subject RE: java.lang.ClassCastException
Date Thu, 07 Dec 2000 17:03:49 GMT
>
> A new classloader will be used to load the new servlet. That classloader
> will be used within that servlet, and two different classloaders' versions
> of the same class count as different classes in the JVM. Thus the object
> in the session has the old classloader, whereas the thing trying to use
> it is using the new classloader.
>
> Just starting a new session each time you upload your servlet should cure
> the problem.

I was having this same exact problem earlier this week.  The suggestion then
was to restart Tomcat.  I will see if opening a new browser lets this work.

Thanks for the tip,
-Dave


Mime
View raw message