2010/7/14 Paweł Wielgus <poulw...@gmail.com> > Hi all, > You get this error every time when tomcat tries to save someone's > session and object of class com.cart.Customer is in it. > Like Robert said, add Serializable to com.cart.Customer and the > problem will go away. > > Best greetings, > Paweł Wielgus. >
Hi, I have added the Serializable to com.cart.Customer, but now i am getting the following error, which i think is due to the reason that i am using reference of Datasource and Message Resource in the class which i believe is not serializable: IOException while loading persisted sessions: java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: org.apache.commons.dbcp.BasicDataSourcejava.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: org.apache.commons.dbcp.BasicDataSource at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1333) at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947) at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329) ..................... Pl. advice thanks abhishek