Logback error when migrating a PDF2 plugin from DITA-OT 4.0.1 to 4.1.2

50 views Asked by At

I'm using oXygen XML with the DITA-OT and a custom plugin based on PDF2 to generate PDFs. I'm looking at upgrading the DITA-OT version from 4.0.1 to 4.1.2. The change in the DITA-OT which generated the error seems related to the move from log4j to Logback, but beyond that, knowing very little about Java, I don't know how to investigate.

When attempting to generate a PDF, here's the error I get:

Description: Transformation failed. C:\Apps\DITA-OT\dita-ot-4.1.2\plugins\org.dita.base\build_preprocess2.xml:89: java.lang.AbstractMethodError: Receiver class ro.sync.util.LogbackDefaultConfigurator does not define or inherit an implementation of the resolved method 'abstract ch.qos.logback.classic.spi.Configurator$ExecutionStatus configure(ch.qos.logback.classic.LoggerContext)' of interface ch.qos.logback.classic.spi.Configurator.

Here are the libraries used with dita-ot 4.0.1 : "C:\Apps\DITA-OT\dita-ot-4.0.1\lib\logback-classic-1.2.8.jar" -lib "C:\Apps\DITA-OT\dita-ot-4.0.1\lib\logback-core-1.2.8.jar" -lib "C:\Apps\DITA-OT\dita-ot-4.0.1\lib\slf4j-api-1.7.32.jar"

Here are the libraries used with dita-ot 4.1.2 : "C:\Apps\DITA-OT\dita-ot-4.1.2\lib\logback-classic-1.4.8.jar" -lib "C:\Apps\DITA-OT\dita-ot-4.1.2\lib\logback-core-1.4.8.jar" -lib "C:\Apps\DITA-OT\dita-ot-4.1.2\lib\slf4j-api-2.0.7.jar"

Do you know if I need to configure something in the DITA-OT, or if I need to check specific areas of the custom plugin? Any help is welcome.

1

There are 1 answers

0
Radu Coravu On

Updating with the solution which seems to have worked to fix this problem:

If you edit the transformation scenario you are using for publishing in Oxygen, in the "Advanced" tab there should be a checkbox named "Prefer using the "dita" command". You can check that checkbox, save the scenario and try to publish again.