java.lang.NoSuchMethodError:org.apache.log4j.Logger.getAllAppenders()运行docx4j时

时间:2013-07-05 16:06:07

标签: log4j docx4j

我正在用docx4j编写一个简单的程序但是正在编写

java.lang.NoSuchMethodError: org.apache.log4j.Logger.getAllAppenders()

我确实安装了log4j 1.2.15(在docx4j的依赖项中列出)。有人遇到过同样的问题吗?

1 个答案:

答案 0 :(得分:0)

我设法通过配置docx4j.properties文件来修复此问题:

# If you haven't configured log4j yourself
# docx4j will autoconfigure it. Set this to true to disable that
docx4j.Log4j.Configurator.disabled=true