Page 1 of 1

OxygenXML 17.1 and DITA-OT 2.4.4

Posted: Tue Jan 30, 2018 1:31 am
by XMLinator
Hi,

I have been unsuccessful in locating information that will help me understand if I should be able to get DITA-OT 2.4.4 working with OxygenXML 17.1.

I have downloaded the 2.4.4 package and added to my Oxygen directory structure, and have set the Preferences > DITA version to Custom and pointed to the folder. After doing this, I ran the integrator on a few 2.4.4 transformation plugins and it failed.

I am unsure if the issue is coming from 17.1 support for 2.4.4, or if there may be an issue with the custom plugins, so think I should start by asking:

Is DITA-OT 2.4.4 supported with OxygenXML 17.1? If yes, are there any other steps I'd need to do to bring anything else up to date?

For reference, I think the relevant part of the error I got when running the integrator is:

".../Downloads/oxygen/frameworks/dita/dita-ot-2.4.4/integrator.xml:43: java.lang.NoClassDefFoundError: com/google/common/collect/ImmutableSet"

Thanks in advance for any insight.

Re: OxygenXML 17.1 and DITA-OT 2.4.4

Posted: Tue Jan 30, 2018 9:24 am
by Radu
Hi,

Oxygen 17.1 was not tested with DITA OT 2.4.4 (because probably DITA OT 2.4.4 did not exist back then). So its default transformation scenarios (and integrator scenario) may not work by default but they can be made to work.
If you right click the "Run DITA OT Integrator" scenario and duplicate it, it has a "Libraries" button which you can press and you should add an extra library reference to ${configured.ditaot.dir.url}/lib/guava-19.0.jar.
You may possibly have similar problems running transformation scenarios, you can again duplicate the transformation scenario and in the "Advanced" tab click the "Libraries" button and feed more libraries to it.

Regards,
Radu

Re: OxygenXML 17.1 and DITA-OT 2.4.4

Posted: Tue Jan 30, 2018 3:55 pm
by XMLinator
Thanks Radu!

I did have to take some additional small hoop jumps to get it working, but your advice sent me on the correct path. In addition to the additional library reference you mentioned, I also had to drop the bundled commons-io jar files into the 2.4.4 custom directory, even though that directory had commons-io 2.5 included. I assume that may due to some setting I could not find relating to the commons-io package, but I could be wrong. I did also associate those libraries with the new transformations, but I'm not convinced that was required (took that step prior to adding the bundled commons-io to the 2.4.4 structure).

In any case, it seems to be working, so thank you very much. Thankfully, I plan to upgrade to 19 in the near future, and I don't think this issue will exist there.

Re: OxygenXML 17.1 and DITA-OT 2.4.4

Posted: Wed Jan 31, 2018 8:58 am
by Radu
Hi,

Basically whatever library is in the libraries list will be used when the DITA OT ANT process is started. So probably you did need to copy your old commons-io library but to refer to the new one in the libraries list.
Of course Oxygen 19.1 will not have this problem anymore.

Regards,
Radu