0 Replies Latest reply on Nov 6, 2004 2:16 AM by mehdi mehdi_979

    help me please

    mehdi mehdi_979 Newbie

      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...