Page 1 of 1

Webhelp build fail in oXygen 19

Posted: Tue Apr 25, 2017 1:26 pm
by jwilkes
This problem seems to be similar to that in another question for DocBook, but the solution there has not worked.

I've got oXygen plugin 19 for eclipse. I'm trying to generate Webhelp output for DITA. This used to work, but has broken in the recent upgrade. I've tried swapping the lucene libraries in the plugin directory, but no joy.

I get the error message:

Code: Select all

BUILD FAILED
C:\Users\JWI\git\ng-documentation\dita-common\dita-ot\build.xml:55: The following error occurred while executing this line:
C:\Users\JWI\git\ng-documentation\dita-common\dita-ot\plugins\com.oxygenxml.webhelp\build_common.xml:277: java.lang.NoSuchMethodError: org.apache.lucene.analysis.miscellaneous.WordDelimiterFilterFactory: method <init>()V not found
at ro.sync.exml.indexer.NonCJKAnalyzer.createComponents(Unknown Source)
at org.apache.lucene.analysis.Analyzer.tokenStream(Analyzer.java:142)
at ro.sync.exml.indexer.score.ScoreKeeper.updateAllScores(Unknown Source)
at ro.sync.exml.indexer.SaxDocFileParser.characters(Unknown Source)
at ro.sync.exml.indexer.SaxDocFileParser$ParserDispatcher.characters(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.characters(Unknown Source)
at org.ditang.relaxng.defaults.RelaxNGDefaultsComponent.characters(Unknown Source)
at org.apache.xerces.impl.dtd.XMLDTDValidator.characters(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanContent(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.ditang.relaxng.defaults.RelaxDefaultsParserConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)
at ro.sync.exml.indexer.SaxDocFileParser.parseDocument(Unknown Source)
at ro.sync.exml.indexer.IndexerTask.execute(Unknown Source)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:435)
at org.apache.tools.ant.Target.performTasks(Target.java:456)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1405)
at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
at org.apache.tools.ant.Project.executeTargets(Project.java:1260)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:441)
at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:435)
at org.apache.tools.ant.Target.performTasks(Target.java:456)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1405)
at org.apache.tools.ant.Project.executeTarget(Project.java:1376)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1260)
at org.apache.tools.ant.Main.runBuild(Main.java:857)
at org.apache.tools.ant.Main.startAnt(Main.java:236)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:287)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:113)

Re: Webhelp build fail in oXygen 19

Posted: Wed Apr 26, 2017 11:58 am
by ionela
Hello,

From the stacktrace you provided it seems that you are using a custom DITA-OT. In order to investigate this please provide the following information:
- what DITA-OT version are you using?
- what is the version of the WebHelp plugin you installed? Further more, how did you install this plugin? Have you used the separate WebHelp plugin distribution from our website or did you use the WebHelp distribution bundled with the oXygen XML Editor installation?
- you stated that you swapped the Lucene libraries. What version of Lucene are you using now and where did you get the libraries from?

Regards,
Ionela

Re: Webhelp build fail in oXygen 19

Posted: Fri Apr 28, 2017 10:53 am
by jwilkes
ionela wrote:Hello,

From the stacktrace you provided it seems that you are using a custom DITA-OT.
So I am. Thanks for pointing that out - I didn't realise! I've inherited the setup here and I'm still learning what the changes are.

OK, that makes sense. The custom dita-ot is in a repository and not touched when the oXygen upgrade went through. What I have done:
  • Copy my files from the custom transforms to a safe place.
  • Replace the dita-ot directory in the repository with the new one from oXygen.
  • Put my custom transform back into the dita-ot directory.
And that seems to work. The webhelp transforms work properly again.

Thank you very much for your help. That pointer was exactly what I needed.