“log4j:configuration” must match “(renderer….loggerFactory)?)”
According to the error message, the DTD expects all category
elements to be ahead of the root
element. You have them the wrong way round.
Follow this order:
<renderer></renderer>
<appender></appender>
<plugin></plugin>
<logger></logger>
<category></category>
<root></root>
<loggerfactory></loggerfactory>
<categoryfactory></categoryfactory>