Page 1 of 1

weblogic 12.1 exception Couldn't get [Content_Types].xml

PostPosted: Fri May 02, 2014 8:00 am
by pani
Hi,

We need help. We are puzzled. We are using docx4j to add data into a docx document.
This use-case doesn't involve docx to PDF conversion.

When we tested the solution on Windows with JDK1.7 32 bit, it worked fine from Eclipse.
When we deployed on Linux with JDK 1.7 64 bit and running inside Weblogic, it throws the following exception.
We saw this on docx4j-3.0.1.jar. We downloaded docx4j-3.1.0.jar. We are still seeing the same issue.

org.docx4j.openpackaging.exceptions.Docx4JException: Couldn't get [Content_Types].xml from ZipFile
at org.docx4j.openpackaging.io3.Load3.get(Load3.java:134)
at org.docx4j.openpackaging.packages.OpcPackage.load(OpcPackage.java:459)
at org.docx4j.openpackaging.packages.OpcPackage.load(OpcPackage.java:376)
at org.docx4j.openpackaging.packages.OpcPackage.load(OpcPackage.java:267)
at org.docx4j.openpackaging.packages.OpcPackage.load(OpcPackage.java:247)
at org.docx4j.openpackaging.packages.WordprocessingMLPackage.load(WordprocessingMLPackage.java:162)

The actual docx file opens fine and doesn't seem to be corrupted. Wondering where to look.
Any clues will be helpful. Appreciate your help.

Thanks,
Pani

Re: getting this exception (Couldn't get [Content_Types].xml

PostPosted: Fri May 02, 2014 1:20 pm
by jason
This is a weblogic deployment question (and will eventually be moved to

What version of Weblogic?

One possibility would be to try using MOXy instead of Oracle's JAXB.

Re: getting this exception (Couldn't get [Content_Types].xml

PostPosted: Fri May 02, 2014 1:38 pm
by pani
Our weblogic version is wlserver_12.1. If I were to use MOXy, how would I use?

Re: getting this exception (Couldn't get [Content_Types].xml

PostPosted: Mon May 05, 2014 12:57 pm
by jason
pani wrote: If I were to use MOXy, how would I use?


Not sure whether you mean Oracle WebLogic Server 12c Release 1 (12.1.1). Either way, see http://docs.oracle.com/cd/E24329_01/web ... _types.htm which says:

WebLogic Server provides two data binding and JAXB providers:

EclipseLink MOXy, the default in this release of WebLogic Server, is a fully compliant JAXB implementation.
:
No configuration is required to use the EclipseLink MOXy providers.

Glassfish RI JAXB, which is the default Glassfish JAXB implementation, and was the default JAXB offering in WebLogic Server in previous releases. The Glassfish RI JAXB proprietary features will not work with EclipseLink MOXy. If desired, you can enable the Glassfish RI JAXB data binding and JAXB providers at the server or application level. For more information, see "Using the Glassfish RI JAXB Data Binding and JAXB Providers".


Otherwise, Google is your friend and see:

docx-java-f6/moxy-t1242.html#p5598