It appears docx4j.2.5.0 is compatible with Grails (v1.3.5) but docx4j.2.6.0 is not. marshaling to a string fails when I change the Grails conf/BuildConfig to use 2.6.0. JAXB makes me dizzy with all its "features" so I was hoping someone can assist. I switched to jdk 1.6 to simplify JAXB situation but still can't get around this error.
Document wmlDocumentEl = (org.docx4j.wml.Document) documentPart.getJaxbElement();
String xml = XmlUtils.marshaltoString(wmlDocumentEl, true);
JAXB: RI not present. Trying Java 6 implementation. ...