Originally posted by Parameswaran Thangavel:
Clearly it says the class is not in the class path.
Well, no, it doesn't say that. It says you have created an org.jdom.output.XMLOutputter object (successfully) and you are trying to call some setTrimAllWhite method of that object, but the class does not actually have such a method.
And when I look at the documentation for JDOM 1.0, there is no such method in the XMLOutputter class. In fact it doesn't exist in any class in JDOM 1.0. So if your code compiles correctly you must be compiling against some other version of JDOM. Make sure you include the jar file containing that version in your web application. Or, preferably, update your code to work with JDOM 1.0.