I have a class called XMLtoXML.java and this is one of it\'s methods...
import org.dom4j.Document; import org.dom4j.Element; import org.dom4
The stacktrace clearly states that other org.dom4j classes are present and being used. So it seems you have library version conflict.
org.dom4j
dom4j and jaxen versions should be compatible with each other.
Compare their versions with those that work well in standalone mode.