Webhelp Responsive - ant build error

Post here questions and problems related to editing and publishing DITA content.
bloodnok
Posts: 54
Joined: Mon Jun 27, 2011 10:51 pm

Webhelp Responsive - ant build error

Post 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?
Radu
Posts: 9018
Joined: Fri Jul 09, 2004 5:18 pm

Re: Webhelp Responsive - ant build error

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
bloodnok
Posts: 54
Joined: Mon Jun 27, 2011 10:51 pm

Re: Webhelp Responsive - ant build error

Post 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
Radu
Posts: 9018
Joined: Fri Jul 09, 2004 5:18 pm

Re: Webhelp Responsive - ant build error

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
bloodnok
Posts: 54
Joined: Mon Jun 27, 2011 10:51 pm

Re: Webhelp Responsive - ant build error

Post 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.
Radu
Posts: 9018
Joined: Fri Jul 09, 2004 5:18 pm

Re: Webhelp Responsive - ant build error

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply