Let me say in advance I know my question is vague. I am mainly looking for hints or a push in the right direction.
I am trying to troubleshoot a problem with integrating the docx4j jar into an external web application. The application runs on java 1.6, and uses several (older) versions of some of docx4j dependency jars (jaxb, iText, xalan, etcetera). The docx4j jar works fine from Eclipse. So the problem is definitely the web application environment.
So with that in mind, can anyone explain and/or suggest possible causes of the exception below? As I am not very familiar with jaxb, any thoughts would be greatly appreciated.
-Leigh
- Code: Select all
javax.xml.bind.JAXBException: "org.docx4j.wml" doesnt contain ObjectFactory.class or jaxb.index
at com.sun.xml.internal.bind.v2.ContextFactory.createContext(ContextFactory.java:147)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:133)
at javax.xml.bind.ContextFinder.find(ContextFinder.java:299)
at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:372)
at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:337)
at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:244)
at org.docx4j.jaxb.Context.<clinit>(Context.java:39)
at org.docx4j.openpackaging.parts.JaxbXmlPart.<init>(JaxbXmlPart.java:71)
at org.docx4j.openpackaging.parts.relationships.RelationshipsPart.<init>(RelationshipsPart.java:160)
at org.docx4j.openpackaging.io.LoadFromZipNG.getRelationshipsPartFromZip(LoadFromZipNG.java:265)
at org.docx4j.openpackaging.io.LoadFromZipNG.process(LoadFromZipNG.java:215)
at org.docx4j.openpackaging.io.LoadFromZipNG.get(LoadFromZipNG.java:180)
at org.docx4j.openpackaging.packages.WordprocessingMLPackage.load(WordprocessingMLPackage.java:163)