Page 1 of 1

Webhelp Responsive - ant build error

Posted: Mon May 20, 2019 11:42 pm
by bloodnok
I can build Webhelp Responsive from OxygenXML Editor and with the dita command. But when I try running it from a simulation of our Jenkins engine, I get the following fatal error:

Code: Select all

[templatetask] Implementation of JAXB-API has not been found on module path or classpath.
Any hints on what I'm overlooking?

Re: Webhelp Responsive - ant build error

Posted: Tue May 21, 2019 8:25 am
by Radu
Hi,

You did not integrate all the requited plugins in the DITA OT you are using with Jenkins, for example there is a plugin called "com.oxygenxml.common" which is probably missing on your side.
You can get all necessary plugins in a zip from here:

https://www.oxygenxml.com/xml_webhelp/d ... bhelp.html

You must also buy a separate WebHelp license for running the publishing from the command line:
https://www.oxygenxml.com/xml_webhelp/b ... bhelp.html
If you want a trial license key to test things out you can contact us (support@oxygenxml.com) and we can generate one for you.

If things will still not work for you please also try to use on the server side Java 1.8 for publishing instead of the newer Java version that you are using right now. I also encountered some problems using a newer version of Java to publish and we'll investigate this more on our side.

Regards,
Radu

Re: Webhelp Responsive - ant build error

Posted: Tue May 21, 2019 8:59 pm
by bloodnok
Hi Radu,

I apparently have all the required plugins in my dita-ot-3.2.1 directory

Code: Select all

macgrif:dita-documentation$ ls tools/dita-ot-3.2.1/plugins/
com.oxygenxml.common
com.oxygenxml.highlight
com.oxygenxml.html.custom
com.oxygenxml.media
com.oxygenxml.pdf.css
com.oxygenxml.webhelp.classic
com.oxygenxml.webhelp.common
com.oxygenxml.webhelp.responsive
...
and I appear to have a working trial licence.
As previously stated, I can successfully build my ditamap using the dita command after installing WebHelp as documented on your site. Also, I'm mimicking Jenkins, using a bash script that was derived (years ago) from the Ant scripts provided with the DITA OT.

But apparently I've overlooked something because my build is failing to find a needed jar file.

Thanks

Re: Webhelp Responsive - ant build error

Posted: Wed May 22, 2019 7:52 am
by Radu
Hi,

What version of the WebHelp plugins are you using?
The "com.oxygenxml.common/lib" folder should have by default 3 libraries with the pattern "jaxb-*.jar". Also the "com.oxygenxml.common/plugin.xml" should refer to those libraries.
Also can you try to run the publishing using Java 1.8?

Regards,
Radu

Re: Webhelp Responsive - ant build error

Posted: Thu May 23, 2019 10:47 pm
by bloodnok
Hi Radu,

We're running oxygen-webhelp-dot-3.x.zip with dita-ot-3.2.1.zip. The three jaxb-*.jar files are where they're supposed to be.

I tried Java 1.8 and a bit got further. This time my build expired at whr-dita-inner-topics with a net.sf.saxon.s9api.SaxonApiException ...

Meanwhile, my ditamap builds just fine with tools/dita-ot-3.2.1/bin/dita using java version "11.0.1" 2018-10-16 LTS. It would appear my Ant build is not pulling in the correct plugins but I don't see where I'm going wrong.

Re: Webhelp Responsive - ant build error

Posted: Fri May 24, 2019 10:23 am
by Radu
Hi,

The "dita" command is the recommended way to run the DITA OT publishing because it loads the necessary libraries in the proper way.
I would suggest you call the "dita" executable directly from the ANT build file if you want to keep your existing ANT scripts, there is a section "Call the dita command from an Ant build" containing a small example here:

https://www.dita-ot.org/dev/topics/migr ... -dita.html

Regards,
Radu