I have a problem with docx4j.
I want to modify an existant docx file.
When I launch my application on eclipse, I open my file modify it, save it and download. This works fine.
But when I deploy my application on Jonas, I can't open the file I have this error :
- Code: Select all
ERROR o.d.jaxb.NamespacePrefixMapperUtils - JAXB: neither Reference Implementation nor Java 6 implementation present? javax.xml.bind.PropertyException: property "com.sun.xml.bind.namespacePrefixMapper" must be an instance of type com.sun.xml.bind.marshaller.NamespacePrefixMapper, not org.docx4j.jaxb.NamespacePrefixMapper
at com.sun.xml.bind.v2.runtime.MarshallerImpl.setProperty(MarshallerImpl.java:511)
ERROR org.docx4j.jaxb.Context - PANIC! No suitable JAXB implementation available
ERROR org.docx4j.jaxb.Context - JAXB: neither Reference Implementation nor Java 6 implementation present? javax.xml.bind.JAXBException: JAXB: neither Reference Implementation nor Java 6 implementation present?
at org.docx4j.jaxb.NamespacePrefixMapperUtils.tryUsingRI(NamespacePrefixMapperUtils.java:91)
I don't know what to do. Can you help me please?
Jonas version : 5.2.2
Java version : 1.7.0_02
docx4j version : 3.0.1
Julie