1

I get following error when executing on jboss :

WordprocessingMLPackage template = WordprocessingMLPackage .load(new FileInputStream(new File(name)));

  • Java version: 1.7.0_25
  • JBoss version: 7.1.1.Final
  • docx4j version: 2.8.1

Error: java.lang.NoClassDefFoundError: Could not initialize class org.docx4j.jaxb.Context

I know there is already a question regarding this issue, but no answer was given and seems like the question was left behind.

leostiw
  • 1,125
  • 3
  • 12
  • 28

1 Answers1

1

Please see my new answer at Cannot use docx4j inside of JBoss 7

My test used same version of JBoss (7.1.1) but:

  • old Java (1.6.0_27)
  • newer docx4j (current nightly)

I don't think those differences should matter though.

With this config, it is safe to ignore the log message java.lang.ClassNotFoundException: com.sun.xml.internal.bind.marshaller.NamespacePrefixMapper

Community
  • 1
  • 1
JasonPlutext
  • 15,352
  • 4
  • 44
  • 84