Hi. I am developing an android application at the moment, and i'm facing a problem that i have no idea how to solve. My application communicates with a Tomcat Server, and i'm using ObjectOutputStream to send a Document object to my application from my servlet. There fore, i'm importing org.w3c.dom to my project. The problem i'm facing is, that I can't read the Document object with ObjectInputStream on my android device. I'm getting the following exception.
com.sun.org.apache.xerces.internal.dom: ClassNotFoundException
on the lines:
ObjectInputStream ois = new ObjectInputStream(conn.getInputStream());
Document doc = (Document) ois.readObject();
ois.close();
I can send and recieve any object i want without any problem, but when I try to send an object refered to the com.w3c.dom package I get this exception. Can anybody help?