i using following code in a method of my class
//**
DocumentBuilderFactory builderFactory = DocumentBuilderFactory.newInstance();
DocumentBuilder builder = null;
builder = builderFactory.newDocumentBuilder(); // Create the parser
Document doc = builder.parse(f);
// ... add sum new node to doc
FileOutputStream fo=new FileOutputStream("c:/1.txt");
((XmlDocument)doc).write(fo);
//**
above code work successfully in development but when i call this method in jboss in my web project throw following exception in last line of my
method
java.lang.ClassCastException
what is the matter?
please help me. i need it very...