Like Sean said, it's not about session replication. Maybe I articulated it badly in my post about "Exception during server-side state saving", where I wrote: "I believe servlet spec 2.3 requires that a container is able to serialize the session for persistence. In Tomcat, you can configure a session.PersistentManager to not try to store the session on disk by setting its attribute "saveOnRestart" to false. The attribute by default is true, which causes the whole problem."
So, to make it more clear, turn it off in your app context definition: <Context path="/yourAPP" docBase="/docBase"> <Manager className="org.apache.catalina.session.PersistentManager" saveOnRestart="false"/> </Context> You get an error in your log: "No Store configured, persistence disabled", but no exceptions. Kalle ________________________________ From: Rico Wiese [mailto:[EMAIL PROTECTED] Sent: Friday, January 14, 2005 4:38 AM To: myfaces-user@incubator.apache.org Subject: session replication Hi, I don't need the session replication. Is there any setup for tomcat to turn off the session replication. I get this error when I use state_saving_method = server in web.xml. Any help? Thanks! 09:20:07 [ 10] ERROR - e.catalina.session.ManagerBase - IOException while loading persisted sessions: java.io.WriteAbortedExc eption: writing aborted; java.io.NotSerializableException: javax.faces.application.StateManager$SerializedView java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: javax.faces.application.StateManager$SerializedView at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1278) at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1603) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1271) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324) at org.apache.catalina.session.StandardSession.readObject(StandardSession.j ava:1338) at org.apache.catalina.session.StandardSession.readObjectData(StandardSessi on.java:882) at org.apache.catalina.session.StandardManager.doLoad(StandardManager.java: 416) at org.apache.catalina.session.StandardManager$PrivilegedDoLoad.run(Standar dManager.java:76) at java.security.AccessController.doPrivileged(Native Method) at org.apache.catalina.session.StandardManager.load(StandardManager.java:33 0) at org.apache.catalina.session.StandardManager.start(StandardManager.java:6 57) at org.apache.catalina.core.ContainerBase.setManager(ContainerBase.java:499 ) at org.apache.catalina.startup.ContextConfig.managerConfig(ContextConfig.ja va:315) at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:635) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.j ava:216) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu pport.java:119) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4268 ) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.ja va:823) at org.apache.catalina.core.ContainerBase.access$000(ContainerBase.java:121 ) at org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(ContainerB ase.java:143) at java.security.AccessController.doPrivileged(Native Method) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:805) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595) at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeploy er.java:277) at org.apache.catalina.core.StandardHost.install(StandardHost.java:832) at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:613) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:431) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:964) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:34 9) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu pport.java:119) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1091) at org.apache.catalina.core.StandardHost.start(StandardHost.java:789) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478) at org.apache.catalina.core.StandardService.start(StandardService.java:476) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2298) at org.apache.catalina.startup.Catalina.start(Catalina.java:556) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:284) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:422) Caused by: java.io.NotSerializableException: javax.faces.application.StateManager$SerializedView at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1054) at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1224) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1050) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278) at org.apache.catalina.session.StandardSession.writeObject(StandardSession. java:1411) at org.apache.catalina.session.StandardSession.writeObjectData(StandardSess ion.java:899) at org.apache.catalina.session.StandardManager.doUnload(StandardManager.jav a:539) at org.apache.catalina.session.StandardManager$PrivilegedDoUnload.run(Stand ardManager.java:88) at java.security.AccessController.doPrivileged(Native Method) at org.apache.catalina.session.StandardManager.unload(StandardManager.java: 474) at org.apache.catalina.session.StandardManager.stop(StandardManager.java:68 7) at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4474) at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:95 2) at org.apache.catalina.core.StandardHostDeployer.remove(StandardHostDeploye r.java:670) at org.apache.catalina.core.StandardHost.remove(StandardHost.java:946) at org.apache.catalina.startup.HostConfig.undeployApps(HostConfig.java:1009 ) at org.apache.catalina.startup.HostConfig.stop(HostConfig.java:986) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:35 1) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu pport.java:119) at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1123) at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1135) at org.apache.catalina.core.StandardEngine.stop(StandardEngine.java:483) at org.apache.catalina.core.StandardService.stop(StandardService.java:538) at org.apache.catalina.core.StandardServer.stop(StandardServer.java:2332) at org.apache.catalina.startup.Catalina.stop(Catalina.java:605) at org.apache.catalina.startup.Catalina.start(Catalina.java:580) ... 6 more 09:20:07 [ 20] ERROR - e.catalina.session.ManagerBase - Exception loading sessions from persistent storage java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: javax.faces.application.StateManager$SerializedView at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1278) at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1603) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1271) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324) at org.apache.catalina.session.StandardSession.readObject(StandardSession.j ava:1338) at org.apache.catalina.session.StandardSession.readObjectData(StandardSessi on.java:882) at org.apache.catalina.session.StandardManager.doLoad(StandardManager.java: 416) at org.apache.catalina.session.StandardManager$PrivilegedDoLoad.run(Standar dManager.java:76) at java.security.AccessController.doPrivileged(Native Method) at org.apache.catalina.session.StandardManager.load(StandardManager.java:33 0) at org.apache.catalina.session.StandardManager.start(StandardManager.java:6 57) at org.apache.catalina.core.ContainerBase.setManager(ContainerBase.java:499 ) at org.apache.catalina.startup.ContextConfig.managerConfig(ContextConfig.ja va:315) at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:635) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.j ava:216) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu pport.java:119) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4268 ) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.ja va:823) at org.apache.catalina.core.ContainerBase.access$000(ContainerBase.java:121 ) at org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(ContainerB ase.java:143) at java.security.AccessController.doPrivileged(Native Method) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:805) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595) at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeploy er.java:277) at org.apache.catalina.core.StandardHost.install(StandardHost.java:832) at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:613) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:431) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:964) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:34 9) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu pport.java:119) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1091) at org.apache.catalina.core.StandardHost.start(StandardHost.java:789) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478) at org.apache.catalina.core.StandardService.start(StandardService.java:476) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2298) at org.apache.catalina.startup.Catalina.start(Catalina.java:556) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:284) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:422) Caused by: java.io.NotSerializableException: javax.faces.application.StateManager$SerializedView at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1054) at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1224) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1050) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278) at org.apache.catalina.session.StandardSession.writeObject(StandardSession. java:1411) at org.apache.catalina.session.StandardSession.writeObjectData(StandardSess ion.java:899) at org.apache.catalina.session.StandardManager.doUnload(StandardManager.jav a:539) at org.apache.catalina.session.StandardManager$PrivilegedDoUnload.run(Stand ardManager.java:88) at java.security.AccessController.doPrivileged(Native Method) at org.apache.catalina.session.StandardManager.unload(StandardManager.java: 474) at org.apache.catalina.session.StandardManager.stop(StandardManager.java:68 7) at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4474) at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:95 2) at org.apache.catalina.core.StandardHostDeployer.remove(StandardHostDeploye r.java:670) at org.apache.catalina.core.StandardHost.remove(StandardHost.java:946) at org.apache.catalina.startup.HostConfig.undeployApps(HostConfig.java:1009 ) at org.apache.catalina.startup.HostConfig.stop(HostConfig.java:986) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:35 1) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu pport.java:119) at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1123) at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1135) at org.apache.catalina.core.StandardEngine.stop(StandardEngine.java:483) at org.apache.catalina.core.StandardService.stop(StandardService.java:538) at org.apache.catalina.core.StandardServer.stop(StandardServer.java:2332) at org.apache.catalina.startup.Catalina.stop(Catalina.java:605) at org.apache.catalina.startup.Catalina.start(Catalina.java:580) ... 6 more