I created client and server and then added a class in client side for serializing purposes, then simply just went to the folder of the client in my hard drive and copy paste
If you are using oc4j to deploy the ear.
Make sure you set in the project the correct path for deploy.home=
You can fiind deploy.home in common.properties file
The oc4j needs to reload the new created class in the ear so that the server class and the client class have the same serialVersionUID