I tried to get this working today with no success. I downloaded the subversion trunk tip, made it with maven, and used it in my project. It dies actually trying to load the ML document. Any of them I tried. Even trying to load the Invoice.docx, I get the following:
13.09.2010 14:40:35 *INFO * LoadFromZipNG:
For Relationship Id=rId2 Source is /word/document.xml, Target is ../customXml/item2.xml, type: http://schemas.openxmlformats.org/offic ... /customXml (LoadFromZipNG.java, line 336)
13.09.2010 14:40:35 *DEBUG* LoadFromZipNG: resolved uri: customXml/item2.xml (LoadFromZipNG.java, line 498)
13.09.2010 14:40:35 *INFO * ContentTypeManager: Looking at extension 'xml (ContentTypeManager.java, line 250)
13.09.2010 14:40:35 *INFO * ContentTypeManager: Found content type 'application/xml' for /customXml/item2.xml (ContentTypeManager.java, line 254)
13.09.2010 14:40:35 *ERROR* ResourceUtils: Couldn't get resource: org/docx4j/model/datastorage/bind.xslt (ResourceUtils.java, line 36)
Exception in thread "main" java.lang.ExceptionInInitializerError
at org.docx4j.openpackaging.contenttype.ContentTypeManager.newPartForContentType(ContentTypeManager.java:290)
at org.docx4j.openpackaging.contenttype.ContentTypeManager.getPart(ContentTypeManager.java:256)
at org.docx4j.openpackaging.io.LoadFromZipNG.getRawPart(LoadFromZipNG.java:505)
at org.docx4j.openpackaging.io.LoadFromZipNG.getPart(LoadFromZipNG.java:414)
at org.docx4j.openpackaging.io.LoadFromZipNG.addPartsFromRelationships(LoadFromZipNG.java:344)
at org.docx4j.openpackaging.io.LoadFromZipNG.getPart(LoadFromZipNG.java:436)
at org.docx4j.openpackaging.io.LoadFromZipNG.addPartsFromRelationships(LoadFromZipNG.java:344)
at org.docx4j.openpackaging.io.LoadFromZipNG.process(LoadFromZipNG.java:229)
at org.docx4j.openpackaging.io.LoadFromZipNG.get(LoadFromZipNG.java:182)
at org.docx4j.openpackaging.packages.OpcPackage.load(OpcPackage.java:188)
at org.docx4j.openpackaging.packages.WordprocessingMLPackage.load(WordprocessingMLPackage.java:167)
at CustomXmlBinding.main(CustomXmlBinding.java:156)
Caused by: java.lang.NullPointerException
at org.docx4j.utils.ResourceUtils.getResource(ResourceUtils.java:41)
at org.docx4j.openpackaging.parts.CustomXmlDataStoragePart.<clinit>(CustomXmlDataStoragePart.java:135)
... 12 more
Any ideas? I compiled with Java 1.6_21
I got the same error more or less when I tried to use my template i have been working on with the nested stuff. Invoice.docx was just standard like you have it in the repository.