Did you restart the container after deployment? Mark
-----Original Message----- From: David Hyne [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 09, 2002 11:32 PM I have a javax.servlet.ServletContextListener. When it initializes, I put data objects (which implements java.io.Serializable) into the ServletContext. public void contextInitialized(ServletContextEvent sce) { MyData myData = new MyData(); myData.load(); ServletContext context = sce.getServletContext(); context.setAttribute( "data-key", myData ); } So with this code, data goes into servletcontext gets populated and verified. Everything is fine. Say, there is a change I need to make to MyData.java and I recompiled MyData and redeployed the MyData.class. Once I have done this, I tried to reload the previous page I saw just now or any other page. I got this nasty java.io.NotSerializableException error. My ServetContextListener has log4j object. java.io.NotSerializableException: org.apache.log4j.Category at java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:1148) ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
