As Magnolia currently does not provide serialization of classes for HTTP clustering, persistence of HTTP sessions is disabled by default ((warning) Magnolia 5.4.8+) in the configuration of the Tomcat container which is bundled together with Magnolia. Disabling session persistence will remove the java.io.NotSerializableException warning from the logs. To disable the persistence in Tomcat bundled together with a previous version of Magnolia, please follow the instructions available at the apache.org website (https://tomcat.apache.org/tomcat-7.0-doc/config/manager.html#Disable_Session_Persistence).

Session persistence settings in other types of containers:

#trackbackRdf ($trackbackUtils.getContentIdentifier($page) $page.title $trackbackUtils.getPingUrl($page))
  • No labels

2 Comments

  1. Will Magnolia at some point support Session Persistence, i.e. implement Serializable correctly?

  2. Hi Vivian, 

    I really hope that we will have session persistence in this or that form in the observable future. The biggest blocker in the past was the presence of Guice Injectors and related objects, which are not serializable by design, in http session, . Situation is better now, http sessions only contain business objects. It is still quite a task to accomplish, but at least it does not seem impossible anymore.