可序列化错误Spring + Weblogic Cluster

时间:2012-06-12 20:33:39

标签: spring cluster-computing weblogic11g

我在集群,Spring 3和JSF Mojarra中有一个Weblogic 11g的应用程序。 有:JavaBean(Serializable),ManagedBeans(Serializable for view / session),Service,DAO。

我收到了错误:

**All session objects should be serializable to replicate. 
Check the objects in your  session. Failed to replicate non-serializable object. 
java.rmi.MarshalException: failed to marshal update(Lweblogic.cluster.replication.ROID;ILjava.io.Serializable;Ljava.lang.Object;); nested exception is:
    java.io.NotSerializableException: com.emp.service.impl.DemandaServiceImpl$$EnhancerByCGLIB$$4fae7872

是否有必要成为可序列化的服务层?我不想进行会话并复制它。

Spring正在运行:

<listener>
    <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>

我的applicationContext.xml中的每个Spring Bean都会自动出现在HttpServletRequest,ServletContext或HttpSession中吗?

如果是,那么避免服务层序列化的解决方案是什么?

0 个答案:

没有答案