Thank you very much, Frank... I had to create the following class... ---------------------------------------------------------------------------- --------- import java.io.Serializable; import java.util.ResourceBundle;
import javax.servlet.jsp.jstl.fmt.LocalizationContext; public class PlcLocalizationContext extends LocalizationContext implements Serializable { public PlcLocalizationContext(ResourceBundle bundle) { super(bundle); } } ---------------------------------------------------------------------------- ------------- ...and "lie" to Tomcat. It's ok for us now! ;-) PS> But I think that this change will cause many problems to Tomcat Users...maybe this check should be a server.xml option. -----Mensagem original----- De: Will Hartung [mailto:[EMAIL PROTECTED] Enviada em: quarta-feira, 27 de abril de 2005 15:48 Para: Tomcat Users List; [EMAIL PROTECTED]; Paulo Alvim Cc: Tomcat Users List Assunto: Re: RES: Nervous about Sessions ... > From: "Frank W. Zammetti" <[EMAIL PROTECTED]> > Sent: Wednesday, April 27, 2005 10:59 AM > Hi Paul, > > No, I don't know of any changes... I'm actually wondering if this is a > restriction the latest servlet spec places on objects in session... I > tend to doubt Tomcat would be imposing such a restriction unless the > spec indicated such a restriction... I myself might learn something > here! :) Does anyone reading this know a definitive answer? Conceptually, I guess someone could have changed the session to require serialization. Perhaps they did this to handle the new "cluster/failover" aware sessions. Tomcat has different session managers. A simple one that happily consumes heap until you run out, a more sophisticated version that funnels old sessions to disk and reloads them on demand, and then the failover aware sessions. But, even the generic base version would try to persist session between restarts. Finally, if you're having issues, you can always wrap you non-serialized items into a class that IS serializable, and either simply lie (so that if it actually TRIES to serialize it, it will fail and throw an exception), or mark the fields as transient so they won't serialize. There's also the option of digging deep into the Tomcat source code and just "fixing" it and remove that limitation, but that's rather drastic. Regards, Will Hartung ([EMAIL PROTECTED]) --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]