Hi,
I've created a simple demo application for variable replacement inside of docx documents using docx4j and everything worked just fine (java 8, running locally, created in IntelliJ idea).
Unfortunately, I need this app to run on Wildfly 11 server and Liferay, and so far haven't succeeded.
Caused by: org.docx4j.openpackaging.exceptions.Docx4JException: Couldn't get [Content_Types].xml from ZipFile
at org.docx4j.openpackaging.io3.Load3.get(Load3.java:148)
at org.docx4j.openpackaging.packages.OpcPackage.load(OpcPackage.java:561)
at org.docx4j.openpackaging.packages.OpcPackage.load(OpcPackage.java:410)
at org.docx4j.openpackaging.packages.OpcPackage.load(OpcPackage.java:376)
at org.docx4j.openpackaging.packages.OpcPackage.load(OpcPackage.java:341)
at org.docx4j.openpackaging.packages.WordprocessingMLPackage.load(WordprocessingMLPackage.java:180)
at cz.sonet.service.DocxService.getTemplate(DocxService.java:47)
at cz.sonet.portlet.LiferayDocxController.generateDocx(LiferayDocxController.java:123)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at ...