Custom ArrayList serialization
- by rayman
Hi,
i was trying to serialize an ArrayList which contacins custom objects.
I`am serializing it in a servlet(server side), and deserialize at the client side.
(using ObjectOutputStream,ObjectInputStream)
it worked fine, when I work with ArrayList< String
but when i tried it with ArrayList< MyObject i couldnt get any results in the client side, this is the exception:
java.lang.ClassNotFoundException: web.MyObject
*ofcourse that i have done this: MyObject implements Serializable ...
MyObject contains only String fields in it.
what have I done worng?
Thanks,
ray.