Webhelp Responsive - ant build error

bloodnok
Posts: 36
Joined: Mon Jun 27, 2011 10:51 pm

Webhelp Responsive - ant build error

Post by bloodnok » Mon May 20, 2019 11:42 pm

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: 6343
Joined: Fri Jul 09, 2004 5:18 pm

Re: Webhelp Responsive - ant build error

Post by Radu » Tue May 21, 2019 8:25 am

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: 36
Joined: Mon Jun 27, 2011 10:51 pm

Re: Webhelp Responsive - ant build error

Post by bloodnok » Tue May 21, 2019 8:59 pm

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: 6343
Joined: Fri Jul 09, 2004 5:18 pm

Re: Webhelp Responsive - ant build error

Post by Radu » Wed May 22, 2019 7:52 am

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: 36
Joined: Mon Jun 27, 2011 10:51 pm

Re: Webhelp Responsive - ant build error

Post by bloodnok » Thu May 23, 2019 10:47 pm

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: 6343
Joined: Fri Jul 09, 2004 5:18 pm

Re: Webhelp Responsive - ant build error

Post by Radu » Fri May 24, 2019 10:23 am

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