When reading a normal docx with just a few paragraphs, tables, header + footer and two images, I get an error:
- Code: Select all
ERROR: XmlUtils: javax.xml.transform.TransformerFactoryConfigurationError: Provider org.apache.xalan.processor.TransformerFactoryImpl not found (XmlUtils.java, line 131)
However, the file parses fine, but what is this dependency about? If I do add xalan-2.7.1.jar I can read the file without errors occuring, but the save method throws a no class found exception:
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/xml/serializer/TreeWalker
at org.apache.xalan.processor.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:823)
at org.docx4j.model.datastorage.CustomXmlDataStorageImpl.writeDocument(CustomXmlDataStorageImpl.java:84) ...