WAS6创建集群时配置HTTP会话内存到内存复制的勾选 与会话保存对象必须序列化
错误消息:
[Servlet Error]-
[Attributewith name manageUser is not java.io.Serializable. All attributes stored insession must be Serializable when web module is marked as distributable]:
com.ibm.ws.webcontainer.webapp.WebAppErrorReport:Attribute with name manageUser is not java.io.Serializable. All attributesstored in session must be Serializable when web module is marked asdistributable。
atcom.ibm.ws.webcontainer.webapp.WebAppDispatcherContext.sendError(WebAppDispatcherContext.java:554)
atcom.ibm.ws.webcontainer.srt.SRTServletResponse.sendError(SRTServletResponse.java:1004)
atjavax.servlet.http.HttpServletResponseWrapper.sendError(HttpServletResponseWrapper.java:152)
如果在新建集群的时候 有这个选项:
配置 HTTP 会话内存到内存复制.—此项配置被勾选。
如图:
那么如果在SESSION中setAttribute(),如果放的值为一个对象,必须要把对象实例化。否则WAS将会报错:
又是一个无眠之夜~坑爹啊