org.docx4j.openpackaging.exceptions.Docx4JException: Problem saving part /_rels/.relsorg.docx4j.convert.out.flatOpcXml.FlatOpcXmlCreator.createRawXmlPart(FlatOpcXmlCreator.java:492)
org.docx4j.convert.out.flatOpcXml.FlatOpcXmlCreator.saveRawXmlPart(FlatOpcXmlCreator.java:249)
org.docx4j.convert.out.flatOpcXml.FlatOpcXmlCreator.populate(FlatOpcXmlCreator.java:140)
org.docx4j.openpackaging.packages.WordprocessingMLPackage.transform(WordprocessingMLPackage.java:231)
org.docx4j.openpackaging.packages.WordprocessingMLPackage.filter(WordprocessingMLPackage.java:294)
org.docx4j.model.datastorage.migration.VariablePrepare.prepare(VariablePrepare.java:111)
org.docx4j.model.datastorage.migration.VariablePrepare.prepare(VariablePrepare.java:78)
java.lang.RuntimeException: javax.xml.bind.JAXBException: JAXB: Can't instantiate JAXB Reference Implementation
- with linked exception: [java.lang.ClassNotFoundException: org.docx4j.jaxb.ri.NamespacePrefixMapper]org.docx4j.XmlUtils.marshaltoString(XmlUtils.java:901)
org.docx4j.openpackaging.parts.JaxbXmlPart.variableReplace(JaxbXmlPart.java:297)
both exceptions are thrown when using
VariablePrepare and
VariableReplaceI am using a maven project and using dependencies, my current classpath has ECLIPSE_HOME and M2_REPO