Page 1 of 1

Docx4j 8.3.7 released for Java 8

PostPosted: Thu Jun 09, 2022 10:46 am
by jason
docx4j 8.3.7 was uploaded to Maven Central yesterday. Being in the 8.x series, minimum supported Java version is 8.0. Please note that 8.x is now a legacy branch; users are encouraged to migrate to v11.4 where active development is taking place.

8.3.7 is a recommended update for anyone using v8.3.2, v.8.3.3 or 8.3.4, since it corrects an issue preventing documents containing certain chart parts from saving.

It also brings parity with 11.4.7 (hence the .7 version number). For more details, please see https://github.com/plutext/docx4j/blob/ ... ANGELOG.md

To use docx4j 8.3.7 via Maven, just add one and only one of docx4j-JAXB-Internal, docx4j-JAXB-MOXy,
or docx4j-JAXB-ReferenceImpl to your pom. https://search.maven.org/search?q=g:org.docx4j

Otherwise, see https://www.docx4java.org/downloads.html

Re: Docx4j 8.3.7 released for Java 8

PostPosted: Thu Sep 29, 2022 8:29 pm
by mjn.bruxelles
Hello Jason,
My application is creating a word document from a xml, it is working fine in tomcat or when i run it in intellij as java application or spring boot.
When I deploy it in a Weblogic server I am having an error when saving the word document.

o.d.c.out.flatOpcXml.FlatOpcXmlCreator : Problem saving part /_rels/.rels
java.lang.RuntimeException: javax.xml.bind.JAXBException: namespacePrefixMapper is null

I attach the complete error trace.

These are my dependencies:
<dependency>
<groupId>org.docx4j</groupId>
<artifactId>docx4j-JAXB-Internal</artifactId>
<version>8.3.8</version>
</dependency>
<dependency>
<groupId>org.docx4j</groupId>
<artifactId>docx4j-ImportXHTML</artifactId>
<version>8.3.8</version>
</dependency>

Could you please take a look and help me?

Thanks
Maria