Greetings,
The attached patch fixes a bug in the tomcat 3.3.1 
org.apache.tomcat.modules.SimpleSessionStore class .  In the original, 
an attempt is made to cast a java.lang.String into an 
org.apache.tomcat.core.ServerSession (line 124) which causes a 
ClassCastException.

Angus Cameron


--- SimpleSessionStore.java.orig        Fri Mar 22 18:53:11 2002
+++ SimpleSessionStore.java     Tue Apr  2 12:07:58 2002
@@ -121,7 +121,7 @@
        // remove all non-serializable objects from session
        Enumeration sessionEnum=sM.getSessionIds();
        while( sessionEnum.hasMoreElements() ) {
-           ServerSession session = (ServerSession)sessionEnum.nextElement();
+           ServerSession session = sM.findSession( (String)sessionEnum.nextElement() 
+);
 
            ClassLoader oldLoader=(ClassLoader)ctx.getContainer().
                getNote("oldLoader");

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to