Hi 

I am trying to replicate my sessions via clustering with tomcat5 behind a
apache. The problem is that i get this exception when i try to add a string
to a session.

code:
String name= request.getParameter("name");
session.setAttribute("name", name);

exception:

java.lang.IllegalArgumentException: Value for attribute instance is not
serializable.
        
org.apache.catalina.cluster.session.ReplicatedSession.setAttribute(Replicate
dSession.java:153)
        
org.apache.catalina.session.StandardSessionFacade.setAttribute(StandardSessi
onFacade.java:176)
        org.apache.jsp.addition_jsp._jspService(addition_jsp.java:86)
        org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
        
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3
11)
        
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
        org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:856)

But i works if the code is
session.setAttribute("name", "Myname");

Any ideas?

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to