Hello,
I'm getting this error while running docx4j 2.8.1
- Code: Select all
Exception in thread "main" java.lang.NoSuchMethodError: org.apache.log4j.Logger.getAllAppenders()Ljava/util/Enumeration;
at org.docx4j.utils.Log4jConfigurator.isConfigured(Log4jConfigurator.java:60)
at org.docx4j.utils.Log4jConfigurator.configure(Log4jConfigurator.java:33)
at org.docx4j.jaxb.Context.<clinit>(Context.java:51)
at org.docx4j.openpackaging.parts.JaxbXmlPart.<init>(JaxbXmlPart.java:79)
at org.docx4j.openpackaging.parts.JaxbXmlPartXPathAware.<init>(JaxbXmlPartXPathAware.java:64)
at org.docx4j.openpackaging.parts.WordprocessingML.DocumentPart.<init>(DocumentPart.java:157)
at org.docx4j.openpackaging.parts.WordprocessingML.MainDocumentPart.<init>(MainDocumentPart.java:76)
at org.docx4j.openpackaging.packages.WordprocessingMLPackage.createPackage(WordprocessingMLPackage.java:432)
at org.docx4j.openpackaging.packages.WordprocessingMLPackage.createPackage(WordprocessingMLPackage.java:421)
at com.ms.equityppp.sem.pm.scimitar.DocxHelper.main(DocxHelper.java:193)
I do have log4j in my class path. Does anyone know what's going on?