apiref specialization

micalup
Posts: 1
Joined: Fri Jun 22, 2012 6:59 pm

apiref specialization

Post by micalup » Fri Jun 22, 2012 7:24 pm

Hi Radu,

I install the apiref & javaapiref specializations:
  • I add the apiref & javaapiref folder to the plugins directory (C:\Program Files (x86)\Oxygen XML Editor 13\frameworks\dita\DITA-OT\plugins
  • I add the generic & java DTD's. to the catalog-dita.xml

I open the generic API sample in <oXygen/> editor and try a simple transformation scenario (DITA xHTML), but I have the transformations problems, and the Build failed.

Any sugestions :?:

Executing:
"c:\program files (x86)\oxygen xml editor 13\jre/bin/java" -Xmx384m -classpath "C:\Program Files (x86)\Oxygen XML Editor 13/tools/ant/lib/ant-launcher.jar" "-Dant.home=C:\Program Files (x86)\Oxygen XML Editor 13/tools/ant" org.apache.tools.ant.launch.Launcher -lib "C:\Program Files (x86)\Oxygen XML Editor 13\classes" -lib "C:\Program Files (x86)\Oxygen XML Editor 13\lib\oxygen.jar" -lib "C:\Program Files (x86)\Oxygen XML Editor 13\lib\oxygenAuthor.jar" -lib "C:\Program Files (x86)\Oxygen XML Editor 13\lib\oxygenDeveloper.jar" -lib "C:\Program Files (x86)\Oxygen XML Editor 13\lib\oxygenEclipse.jar" -lib "C:\Program Files (x86)\Oxygen XML Editor 13\lib\oxygenAuthorEclipse.jar" -lib "C:\Program Files (x86)\Oxygen XML Editor 13\lib\oxygenDeveloperEclipse.jar" -lib "C:\Program Files (x86)\Oxygen XML Editor 13\lib\resolver.jar" -lib "C:\Program Files (x86)\Oxygen XML Editor 13\frameworks\dita\DITA-OT" -lib "C:\Program Files (x86)\Oxygen XML Editor 13\lib\commons-io-1.3.1.jar" -lib "C:\Program Files (x86)\Oxygen XML Editor 13\lib\commons-logging-1.0.4.jar" -lib "C:\Program Files (x86)\Oxygen XML Editor 13\lib\log4j.jar" -lib "C:\Program Files (x86)\Oxygen XML Editor 13\frameworks\dita\DITA-OT\lib\dost-patches.jar" -lib "C:\Program Files (x86)\Oxygen XML Editor 13\frameworks\dita\DITA-OT\lib" -lib "C:\Program Files (x86)\Oxygen XML Editor 13\frameworks\dita\DITA-OT\lib\dost.jar" -lib "C:\Program Files (x86)\Oxygen XML Editor 13\frameworks\dita\DITA-OT\lib\commons-codec-1.4.jar" -lib "C:\Program Files (x86)\Oxygen XML Editor 13\lib\xercesImpl.jar" -lib "C:\Program Files (x86)\Oxygen XML Editor 13\lib\saxon9ee.jar" -lib "C:\Program Files (x86)\Oxygen XML Editor 13\lib\saxon.jar" -lib "C:\Program Files (x86)\Oxygen XML Editor 13\lib\xmlgraphics-commons-1.4.jar" -lib "C:\Program Files (x86)\Oxygen XML Editor 13\lib\fop.jar" -lib "C:\Program Files (x86)\Oxygen XML Editor 13\lib\batik-all-1.7.jar" -lib "C:\Program Files (x86)\Oxygen XML Editor 13\lib\xml-apis-xpath.jar" -lib "C:\Program Files (x86)\Oxygen XML Editor 13\lib\xml-apis-ext.jar" -lib "C:\Program Files (x86)\Oxygen XML Editor 13\lib\avalon-framework-4.2.0.jar" -lib "C:\Program Files (x86)\Oxygen XML Editor 13\lib\jcip-annotations.jar" -lib "C:\Program Files (x86)\Oxygen XML Editor 13\lib\jeuclid-core.jar" -lib "C:\Program Files (x86)\Oxygen XML Editor 13\lib\jeuclid-fop.jar" -lib "C:\Program Files (x86)\Oxygen XML Editor 13\lib\jh.jar" -lib "C:\Program Files (x86)\Oxygen XML Editor 13\frameworks\dita\DITA-OT\lib\jsearch.jar" -lib "C:\Program Files (x86)\Oxygen XML Editor 13\frameworks\dita\DITA-OT\plugins\webhelp\lib\lucene-analyzers-3.0.0.jar" -lib "C:\Program Files (x86)\Oxygen XML Editor 13\frameworks\dita\DITA-OT\plugins\webhelp\lib\lucene-core-3.0.0.jar" -lib "C:\Program Files (x86)\Oxygen XML Editor 13\frameworks\dita\DITA-OT\plugins\webhelp\lib\nw-cms.jar" -f "C:\Program Files (x86)\Oxygen XML Editor 13\frameworks/dita/DITA-OT/build.xml" "-Dtranstype=xhtml" "-Ddita.dir=C:\Program Files (x86)\Oxygen XML Editor 13\frameworks/dita/DITA-OT" "-Dargs.input=C:\DITA\DITA-OT1.5.3\plugins\apiref\sample\apiPackage1.ditamap" "-Ddita.temp.dir=C:\DITA\DITA-OT1.5.3\plugins\apiref\sample/temp" "-Dbasedir=C:\DITA\DITA-OT1.5.3\plugins\apiref\sample" "-Doutput.dir=C:\DITA\DITA-OT1.5.3\plugins\apiref\sample/out" "-DbaseJVMArgLine=-Xmx384m"

Buildfile: C:\Program Files (x86)\Oxygen XML Editor 13\frameworks\dita\DITA-OT\build.xml

BUILD FAILED
java.lang.NoSuchMethodError: org.apache.xerces.util.URI.<init>(Ljava/lang/String;Z)V
at org.apache.xerces.impl.XMLEntityManager.expandSystemIdStrictOff(Unknown Source)
at org.apache.xerces.impl.XMLEntityManager.expandSystemId(Unknown Source)
at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.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.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:307)
at org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:178)
at org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.java:82)
at org.apache.tools.ant.Main.runBuild(Main.java:793)
at org.apache.tools.ant.Main.startAnt(Main.java:217)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)

Total time: 0 seconds
java.lang.NoSuchMethodError: org.apache.xerces.util.URI.<init>(Ljava/lang/String;Z)V
at org.apache.xerces.impl.XMLEntityManager.expandSystemIdStrictOff(Unknown Source)
at org.apache.xerces.impl.XMLEntityManager.expandSystemId(Unknown Source)
at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.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.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:307)
at org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:178)
at org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.java:82)
at org.apache.tools.ant.Main.runBuild(Main.java:793)
at org.apache.tools.ant.Main.startAnt(Main.java:217)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
org.apache.xerces.util.URI.<init>(Ljava/lang/String;Z)V

The process finished with exit code: 1


micalup

Radu
Posts: 6398
Joined: Fri Jul 09, 2004 5:18 pm

Re: apiref specialization

Post by Radu » Mon Jun 25, 2012 12:16 pm

Hi,

So the first step (which you've already done) would have been to:

Download the apiref plugin from:
http://sourceforge.net/projects/dita-ot ... %20apiref/

and the javaapiref plugin from:
http://sourceforge.net/projects/dita-ot ... avaapiref/

and adding them as plugins in the folder C:/Program Files (x86)/Oxygen XML Editor 13/frameworks/dita/DITA-OT/plugins/.

The second step (which is common to any plugin installed in the DITA OT) would have been to run the DITA OT integrator ANT task and thus install the plugins in the DITA OT. So you should not have made any manual modifications in the "catalog-dita.xml", the installation does this + other modifications in the build files and processing stylesheets.

If you look in the Oxygen Transformation Scenarios View it contains a predefined scenario called Run DITA OT Integrator.
You can try to run it.

After running the integrator scenario on my side I manager to publish to XHTML (using a default transformation scenario) one of the javaapi samples so the integration seemed successful.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com

pablojvarela
Posts: 9
Joined: Thu Jul 12, 2012 7:41 pm

Re: apiref specialization

Post by pablojvarela » Tue Jul 17, 2012 9:22 pm

Hi Radu,
I have installed the apiRef OT plugin, apparently. Specializations work and the catalogs were adjusted by the OT Integrator.

However, after reading OxygenXML's documentation on transformation scenarios, I could not get around how to create a Transformation scenario that uses my own XSL extensions to the DITA Map XHTML stylesheets.

I have created a DITA OT plugin which is a specialization of topic types from apiRef plugin. I included in the plugin's catalog my XSL references as well as topic types. But how do I create a (global) scenario that enforces those extensions?

Thanks for your help.

Radu
Posts: 6398
Joined: Fri Jul 09, 2004 5:18 pm

Re: apiref specialization

Post by Radu » Wed Jul 18, 2012 8:55 am

Hi Pablo,

First the plugin needs to be created using the available extension points:

http://dita-ot.sourceforge.net/1.6.1/de ... rview.html

Then it needs to be installed:

http://dita-ot.sourceforge.net/1.6.1/de ... lling.html

Basically after you copy a plugin to the "plugins" folder, the next step is to run the DITA OT Integrator.

The integrator should integrate the plugin in the DITA OT.
For example if you have a catalog extension, in the main "catalog-dita.xml" catalog file a reference to that custom catalog is made.
The same if you have XSLT extensions, in some stylesheets from the DITA OT your custom stylesheets will be imported.

In order to see what the integrator does, you could copy the original version of the DITA OT to a separate directory. Then after running the integrator, compare using our Compare directories utility the modified and the original DITA OT.

As an example for a plugin which adds both catalog and XSLT extensions you could take a look at our MathML specialization plugin (available in Oxygen 14.1 in the bundled DITA OT):

OXYGEN_INSTALL_DIR/frameworks/dita/DITA-OT/plugins/mathml/
I have created a DITA OT plugin which is a specialization of topic types from apiRef plugin. I included in the plugin's catalog my XSL references as well as topic types. But how do I create a (global) scenario that enforces those extensions?
Basically the transformation scenario from Oxygen executes an ANT process over the DITA Open Toolkit build files.
If your plugin just contributes custom XSLT to the original XHTML transformation, then running a typical XHTML transformation over your DITA Map should be enough (the integrator step should have already added links between the stylesheets).

If your plugin contributes another transformation type you will have to edit an XHTML transformation scenario and in the Parameters list add a parameter called transtype with your custom value.
You have to do this because Oxygen does not auto detect new transformation types from the build files.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com

pablojvarela
Posts: 9
Joined: Thu Jul 12, 2012 7:41 pm

Re: apiref specialization

Post by pablojvarela » Wed Jul 18, 2012 5:15 pm

Radu, I set the configuration you suggested. I am under SVN so I can see my extensions were added to catalogs and dita2xhtml.xsl.

However, I cannot get to try it out since I get

Code: Select all

Oxygen XML Editor 14\frameworks\dita\DITA-OT\build_preprocess.xml:38: java.lang.NoClassDefFoundError: org/apache/xerces/xni/grammars/XMLGrammarPool
error.

I downloaded Xerces2 Java and set my classpath to know xercesImpl.jar and xml-apis.jar, as suggested by this thread http://tech.groups.yahoo.com/group/dita ... sage/19440.

Can you help me avoid this problem? My OxygenXML Editor version is 14.0 and I did not have this problem using version 13.

Radu
Posts: 6398
Joined: Fri Jul 09, 2004 5:18 pm

Re: apiref specialization

Post by Radu » Wed Jul 18, 2012 5:26 pm

Hi Pablo,

Are you using the DITA OT bundled with 14.0 or have you installed DITA OT 1.6 in a separate location?

This probably is related to the libraries Oxygen uses to start the DITA OT ANT process.

If you edit the transformation scenario, in the Advanced tab there is a Libraries button.
By default Oxygen adds a bunch of libraries for the ANT process.
Among those libraries is the Xerces library which by default comes from the Oxygen "lib" folder and not from the DITA OT.
Did you make any modifications to the libraries list there?
Sending me at support@oxygenxml.com the entire output received in the DITA Transformation console would help identify the problem.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com

pablojvarela
Posts: 9
Joined: Thu Jul 12, 2012 7:41 pm

Re: apiref specialization

Post by pablojvarela » Wed Jul 18, 2012 5:38 pm

Thanks, Radu.
I am using the DITA-OT that came with Oxygen 13. I made some (working) modifications to it so I intend to reuse it.

I did not make any changes to the transformation scenario's advanced options.

Just now I noticed that the DITA Map XHTML transformation scenario does not fail. It only failes with the "XMLGrammarPool" error when running the run-ant.xml Ant project that came with the apiRef specialization.

Here's the output of the transformation console.

Code: Select all

Executing:
"c:\oxygen xml editor 14\jre/bin/java" -Xmx256m -classpath "C:\Oxygen XML Editor 14/tools/ant/lib/ant-launcher.jar" "-Dant.home=C:\Oxygen XML Editor 14/tools/ant" org.apache.tools.ant.launch.Launcher -f "run-ant.xml"

Buildfile: C:\Oxygen XML Editor 14\frameworks\dita\DITA-OT\plugins\com.intel.restapiref\run-ant.xml

use-init.envhhcdir:

use-init.hhcdir:

use-init:

restApiRefSample2xhtml:

restApiRef2xhtml:

start-process:

init-logger:

init-URIResolver:

use-init.envhhcdir:

use-init.hhcdir:

use-init:

output-version:
[echo] Version: DITA Open Toolkit 1.5.3

check-arg:
[mkdir] Created dir: C:\Oxygen XML Editor 14\frameworks\dita\DITA-OT\temp\temp20120718110359449
[echo] *****************************************************************
[echo] * basedir = C:\Oxygen XML Editor 14\frameworks\dita\DITA-OT
[echo] * dita.dir = C:\Oxygen XML Editor 14\frameworks\dita\DITA-OT
[echo] * input = C:\Oxygen XML Editor 14\frameworks\dita\DITA-OT\plugins\com.intel.restapiref\sample\SampleRestApiRef.ditamap
[echo] * transtype = xhtml
[echo] * tempdir = C:\Oxygen XML Editor 14\frameworks\dita\DITA-OT\temp\temp20120718110359449
[echo] * outputdir = C:\Oxygen XML Editor 14\frameworks\dita\DITA-OT\plugins\com.intel.restapiref\out\sample
[echo] * extname = .dita
[echo] * clean.temp = true
[echo] * clean.output = false
[echo] * xslt.parser = XALAN
[echo] *****************************************************************
[echo] #Ant properties
[echo] #Wed Jul 18 11:04:00 ART 2012
[echo] args.css.file.temp=${args.css}
[echo] args.css.real=${args.css}
[echo] args.grammar.cache=yes
[echo] args.hide.parent.link=yes
[echo] args.input=C\:\\Oxygen XML Editor 14\\frameworks\\dita\\DITA-OT\\plugins\\com.intel.restapiref\\sample\\SampleRestApiRef.ditamap
[echo] args.logdir=C\:\\Oxygen XML Editor 14\\frameworks\\dita\\DITA-OT\\plugins\\com.intel.restapiref\\out\\sample
[echo] args.message.file=C\:\\Oxygen XML Editor 14\\frameworks\\dita\\DITA-OT\\resource\\messages.xml
[echo] args.odt.img.embed=yes
[echo] args.odt.include.rellinks=none
[echo] args.xml.systemid.set=yes
[echo] dita.dir=C\:\\Oxygen XML Editor 14\\frameworks\\dita\\DITA-OT
[echo] dita.empty=
[echo] dita.ext=.dita
[echo] dita.extname=.dita
[echo] dita.input.filename=SampleRestApiRef.ditamap
[echo] dita.map.filename.root=SampleRestApiRef
[echo] dita.plugin.com.ibm.book.dir=C\:\\Oxygen XML Editor 14\\frameworks\\dita\\DITA-OT\\demo\\book
[echo] dita.plugin.com.ibm.elementref.dir=C\:\\Oxygen XML Editor 14\\frameworks\\dita\\DITA-OT\\demo\\elementref
[echo] dita.plugin.com.ibm.enote.dir=C\:\\Oxygen XML Editor 14\\frameworks\\dita\\DITA-OT\\demo\\enote
[echo] dita.plugin.com.ibm.faq.dir=C\:\\Oxygen XML Editor 14\\frameworks\\dita\\DITA-OT\\demo\\faq
[echo] dita.plugin.com.intel.restapiref.dir=C\:\\Oxygen XML Editor 14\\frameworks\\dita\\DITA-OT\\plugins\\com.intel.restapiref
[echo] dita.plugin.com.oxygenxml.dita-ot.plugin.webhelp.dir=C\:\\Oxygen XML Editor 14\\frameworks\\dita\\DITA-OT\\plugins\\webhelp
[echo] dita.plugin.com.sophos.tocjs.dir=C\:\\Oxygen XML Editor 14\\frameworks\\dita\\DITA-OT\\demo\\tocjs
[echo] dita.plugin.net.sourceforge.dita4publishers.common.mapdriven.dir=C\:\\Oxygen XML Editor 14\\frameworks\\dita\\DITA-OT\\plugins\\net.sourceforge.dita4publishers.common.mapdriven
[echo] dita.plugin.net.sourceforge.dita4publishers.common.xslt.dir=C\:\\Oxygen XML Editor 14\\frameworks\\dita\\DITA-OT\\plugins\\net.sourceforge.dita4publishers.common.xslt
[echo] dita.plugin.net.sourceforge.dita4publishers.epub.dir=C\:\\Oxygen XML Editor 14\\frameworks\\dita\\DITA-OT\\plugins\\net.sourceforge.dita4publishers.epub
[echo] dita.plugin.org.dita.base.dir=C\:\\Oxygen XML Editor 14\\frameworks\\dita\\DITA-OT\\plugins\\org.dita.base
[echo] dita.plugin.org.dita.docbook.dir=C\:\\Oxygen XML Editor 14\\frameworks\\dita\\DITA-OT\\plugins\\org.dita.docbook
[echo] dita.plugin.org.dita.eclipsecontent.dir=C\:\\Oxygen XML Editor 14\\frameworks\\dita\\DITA-OT\\plugins\\org.dita.eclipsecontent
[echo] dita.plugin.org.dita.eclipsehelp.dir=C\:\\Oxygen XML Editor 14\\frameworks\\dita\\DITA-OT\\plugins\\org.dita.eclipsehelp
[echo] dita.plugin.org.dita.htmlhelp.dir=C\:\\Oxygen XML Editor 14\\frameworks\\dita\\DITA-OT\\plugins\\org.dita.htmlhelp
[echo] dita.plugin.org.dita.javahelp.dir=C\:\\Oxygen XML Editor 14\\frameworks\\dita\\DITA-OT\\plugins\\org.dita.javahelp
[echo] dita.plugin.org.dita.legacypdf.dir=C\:\\Oxygen XML Editor 14\\frameworks\\dita\\DITA-OT\\demo\\legacypdf
[echo] dita.plugin.org.dita.odt.dir=C\:\\Oxygen XML Editor 14\\frameworks\\dita\\DITA-OT\\plugins\\org.dita.odt
[echo] dita.plugin.org.dita.pdf.dir=C\:\\Oxygen XML Editor 14\\frameworks\\dita\\DITA-OT\\plugins\\org.dita.pdf
[echo] dita.plugin.org.dita.pdf2.dir=C\:\\Oxygen XML Editor 14\\frameworks\\dita\\DITA-OT\\demo\\fo
[echo] dita.plugin.org.dita.specialization.apiref.dir=C\:\\Oxygen XML Editor 14\\frameworks\\dita\\DITA-OT\\plugins\\apiref
[echo] dita.plugin.org.dita.specialization.dita11.dir=C\:\\Oxygen XML Editor 14\\frameworks\\dita\\DITA-OT\\demo\\dita11
[echo] dita.plugin.org.dita.specialization.dita132.dir=C\:\\Oxygen XML Editor 14\\frameworks\\dita\\DITA-OT\\demo\\dita132
[echo] dita.plugin.org.dita.specialization.eclipsemap.dir=C\:\\Oxygen XML Editor 14\\frameworks\\dita\\DITA-OT\\demo\\eclipsemap
[echo] dita.plugin.org.dita.specialization.h2d.dir=C\:\\Oxygen XML Editor 14\\frameworks\\dita\\DITA-OT\\demo\\h2d
[echo] dita.plugin.org.dita.specialization.javaapiref.dir=C\:\\Oxygen XML Editor 14\\frameworks\\dita\\DITA-OT\\plugins\\javaapiref
[echo] dita.plugin.org.dita.troff.dir=C\:\\Oxygen XML Editor 14\\frameworks\\dita\\DITA-OT\\plugins\\org.dita.troff
[echo] dita.plugin.org.dita.wordrtf.dir=C\:\\Oxygen XML Editor 14\\frameworks\\dita\\DITA-OT\\plugins\\org.dita.wordrtf
[echo] dita.plugin.org.dita.xhtml.dir=C\:\\Oxygen XML Editor 14\\frameworks\\dita\\DITA-OT\\plugins\\org.dita.xhtml
[echo] dita.preprocess.reloadstylesheet=false
[echo] dita.resource.dir=C\:\\Oxygen XML Editor 14\\frameworks\\dita\\DITA-OT\\resource
[echo] dita.script.dir=C\:\\Oxygen XML Editor 14\\frameworks\\dita\\DITA-OT\\xsl
[echo] dita.temp.dir=C\:\\Oxygen XML Editor 14\\frameworks\\dita\\DITA-OT\\temp\\temp20120718110359449
[echo] dita.topic.filename.root=SampleRestApiRef.ditamap
[echo] dita.xhtml.reloadstylesheet=false
[echo] *****************************************************************
[echo] * Using Xerces in Sun JDK 1.5
[echo] *****************************************************************

output-deprecated-msg:

output-css-warn-message:

output-msg:

build-init:

start-preprocess:

gen-list-flag-check:

gen-list-without-flagging:
[pipeline] Failed to read supported image extensions from configuration, using defaults.

BUILD FAILED
C:\Oxygen XML Editor 14\frameworks\dita\DITA-OT\plugins\com.intel.restapiref\run-ant.xml:18: The following error occurred while executing this line:
C:\Oxygen XML Editor 14\frameworks\dita\DITA-OT\plugins\com.intel.restapiref\build.xml:11: The following error occurred while executing this line:
C:\Oxygen XML Editor 14\frameworks\dita\DITA-OT\build_preprocess.xml:38: java.lang.NoClassDefFoundError: org/apache/xerces/xni/grammars/XMLGrammarPool
at org.dita.dost.module.GenMapAndTopicListModule.execute(GenMapAndTopicListModule.java:269)
at org.dita.dost.pipeline.PipelineFacade.execute(PipelineFacade.java:56)
at org.dita.dost.invoker.ExtensibleAntInvoker.execute(ExtensibleAntInvoker.java:213)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
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:390)
at org.apache.tools.ant.Target.performTasks(Target.java:411)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442)
at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
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:390)
at org.apache.tools.ant.Target.performTasks(Target.java:411)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442)
at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
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:390)
at org.apache.tools.ant.Target.performTasks(Target.java:411)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
at org.apache.tools.ant.Main.runBuild(Main.java:809)
at org.apache.tools.ant.Main.startAnt(Main.java:217)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
Caused by: java.lang.ClassNotFoundException: org.apache.xerces.xni.grammars.XMLGrammarPool
at org.apache.tools.ant.AntClassLoader.findClassInComponents(AntClassLoader.java:1361)
at org.apache.tools.ant.AntClassLoader.findClass(AntClassLoader.java:1311)
at org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader.java:1064)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 45 more

Total time: 2 seconds

The process finished with exit code: 1

pablojvarela
Posts: 9
Joined: Thu Jul 12, 2012 7:41 pm

Re: apiref specialization

Post by pablojvarela » Thu Jul 19, 2012 12:16 am

Hey Radu.
I copied the references to libraries from the working DITA Map XTHML scenario into a duplicate of the Ant Transformation scenario, which I used to run apiRef's run-ant.xml file. I got past the "XMLGrammarPool" error, but got a NullPointerException further ahead.

This is my transformation console log:

Code: Select all

Executing:
"c:\oxygen xml editor 14\jre/bin/java" -Xmx256m -classpath "C:\Oxygen XML Editor 14/tools/ant/lib/ant-launcher.jar" "-Dant.home=C:\Oxygen XML Editor 14/tools/ant" org.apache.tools.ant.launch.Launcher -lib "C:\Oxygen XML Editor 14\classes" -lib "C:\Oxygen XML Editor 14\lib\oxygen.jar" -lib "C:\Oxygen XML Editor 14\lib\oxygenAuthor.jar" -lib "C:\Oxygen XML Editor 14\lib\oxygenDeveloper.jar" -lib "C:\Oxygen XML Editor 14\lib\oxygenEclipse.jar" -lib "C:\Oxygen XML Editor 14\lib\oxygenAuthorEclipse.jar" -lib "C:\Oxygen XML Editor 14\lib\oxygenDeveloperEclipse.jar" -lib "C:\Oxygen XML Editor 14\lib\resolver.jar" -lib "C:\Oxygen XML Editor 14\lib\xercesImpl.jar" -lib "C:\Oxygen XML Editor 14\frameworks\dita\DITA-OT\plugins\com.intel.restapiref\${dita.dir.url}" -lib "C:\Oxygen XML Editor 14\lib\commons-io-1.3.1.jar" -lib "C:\Oxygen XML Editor 14\lib\commons-logging-1.0.4.jar" -lib "C:\Oxygen XML Editor 14\lib\log4j.jar" -lib "C:\Oxygen XML Editor 14\frameworks\dita\DITA-OT\plugins\com.intel.restapiref\${dita.dir.url}\lib\dost-patches.jar" -lib "C:\Oxygen XML Editor 14\frameworks\dita\DITA-OT\plugins\com.intel.restapiref\${dita.dir.url}\lib" -lib "C:\Oxygen XML Editor 14\frameworks\dita\DITA-OT\plugins\com.intel.restapiref\${dita.dir.url}\lib\dost.jar" -lib "C:\Oxygen XML Editor 14\frameworks\dita\DITA-OT\plugins\com.intel.restapiref\${dita.dir.url}\lib\commons-codec-1.4.jar" -lib "C:\Oxygen XML Editor 14\lib\jing.jar" -lib "C:\Oxygen XML Editor 14\lib\saxon9ee.jar" -lib "C:\Oxygen XML Editor 14\lib\saxon.jar" -lib "C:\Oxygen XML Editor 14\lib\xmlgraphics-commons-1.4.jar" -lib "C:\Oxygen XML Editor 14\lib\fop.jar" -lib "C:\Oxygen XML Editor 14\lib\batik-all-1.7.jar" -lib "C:\Oxygen XML Editor 14\lib\xml-apis-ext.jar" -lib "C:\Oxygen XML Editor 14\lib\avalon-framework-4.2.0.jar" -lib "C:\Oxygen XML Editor 14\lib\jeuclid-core.jar" -lib "C:\Oxygen XML Editor 14\lib\jeuclid-fop.jar" -lib "C:\Oxygen XML Editor 14\lib\jh.jar" -lib "C:\Oxygen XML Editor 14\frameworks\dita\DITA-OT\plugins\com.intel.restapiref\${dita.dir.url}\lib\jsearch.jar" -lib "C:\Oxygen XML Editor 14\frameworks\dita\DITA-OT\plugins\com.intel.restapiref\${dita.dir.url}\plugins\com.oxygenxml.webhelp\lib\lucene-analyzers-3.0.0.jar" -lib "C:\Oxygen XML Editor 14\frameworks\dita\DITA-OT\plugins\com.intel.restapiref\${dita.dir.url}\plugins\com.oxygenxml.webhelp\lib\lucene-core-3.0.0.jar" -lib "C:\Oxygen XML Editor 14\frameworks\dita\DITA-OT\plugins\com.intel.restapiref\${dita.dir.url}\plugins\com.oxygenxml.webhelp\lib\nw-cms.jar" -f "run-ant.xml"

Buildfile: C:\Oxygen XML Editor 14\frameworks\dita\DITA-OT\plugins\com.intel.restapiref\run-ant.xml

use-init.envhhcdir:

use-init.hhcdir:

use-init:

restApiRefSample2xhtml:

restApiRef2xhtml:

start-process:

init-logger:

init-URIResolver:

use-init.envhhcdir:

use-init.hhcdir:

use-init:

output-version:
[echo] Version: DITA Open Toolkit 1.5.3

check-arg:
[mkdir] Created dir: C:\Oxygen XML Editor 14\frameworks\dita\DITA-OT\temp\temp20120718175858059
[echo] *****************************************************************
[echo] * basedir = C:\Oxygen XML Editor 14\frameworks\dita\DITA-OT
[echo] * dita.dir = C:\Oxygen XML Editor 14\frameworks\dita\DITA-OT
[echo] * input = C:\Oxygen XML Editor 14\frameworks\dita\DITA-OT\plugins\com.intel.restapiref\sample\SampleRestApiRef.ditamap
[echo] * transtype = xhtml
[echo] * tempdir = C:\Oxygen XML Editor 14\frameworks\dita\DITA-OT\temp\temp20120718175858059
[echo] * outputdir = C:\Oxygen XML Editor 14\frameworks\dita\DITA-OT\plugins\com.intel.restapiref\out\sample
[echo] * extname = .dita
[echo] * clean.temp = true
[echo] * clean.output = false
[echo] * xslt.parser = SAXON
[echo] *****************************************************************
[echo] #Ant properties
[echo] #Wed Jul 18 17:58:59 ART 2012
[echo] args.css.file.temp=${args.css}
[echo] args.css.real=${args.css}
[echo] args.grammar.cache=yes
[echo] args.hide.parent.link=yes
[echo] args.input=C\:\\Oxygen XML Editor 14\\frameworks\\dita\\DITA-OT\\plugins\\com.intel.restapiref\\sample\\SampleRestApiRef.ditamap
[echo] args.logdir=C\:\\Oxygen XML Editor 14\\frameworks\\dita\\DITA-OT\\plugins\\com.intel.restapiref\\out\\sample
[echo] args.message.file=C\:\\Oxygen XML Editor 14\\frameworks\\dita\\DITA-OT\\resource\\messages.xml
[echo] args.odt.img.embed=yes
[echo] args.odt.include.rellinks=none
[echo] args.xml.systemid.set=yes
[echo] dita.dir=C\:\\Oxygen XML Editor 14\\frameworks\\dita\\DITA-OT
[echo] dita.empty=
[echo] dita.ext=.dita
[echo] dita.extname=.dita
[echo] dita.input.filename=SampleRestApiRef.ditamap
[echo] dita.map.filename.root=SampleRestApiRef
[echo] dita.plugin.com.ibm.book.dir=C\:\\Oxygen XML Editor 14\\frameworks\\dita\\DITA-OT\\demo\\book
[echo] dita.plugin.com.ibm.elementref.dir=C\:\\Oxygen XML Editor 14\\frameworks\\dita\\DITA-OT\\demo\\elementref
[echo] dita.plugin.com.ibm.enote.dir=C\:\\Oxygen XML Editor 14\\frameworks\\dita\\DITA-OT\\demo\\enote
[echo] dita.plugin.com.ibm.faq.dir=C\:\\Oxygen XML Editor 14\\frameworks\\dita\\DITA-OT\\demo\\faq
[echo] dita.plugin.com.intel.restapiref.dir=C\:\\Oxygen XML Editor 14\\frameworks\\dita\\DITA-OT\\plugins\\com.intel.restapiref
[echo] dita.plugin.com.oxygenxml.dita-ot.plugin.webhelp.dir=C\:\\Oxygen XML Editor 14\\frameworks\\dita\\DITA-OT\\plugins\\webhelp
[echo] dita.plugin.com.sophos.tocjs.dir=C\:\\Oxygen XML Editor 14\\frameworks\\dita\\DITA-OT\\demo\\tocjs
[echo] dita.plugin.net.sourceforge.dita4publishers.common.mapdriven.dir=C\:\\Oxygen XML Editor 14\\frameworks\\dita\\DITA-OT\\plugins\\net.sourceforge.dita4publishers.common.mapdriven
[echo] dita.plugin.net.sourceforge.dita4publishers.common.xslt.dir=C\:\\Oxygen XML Editor 14\\frameworks\\dita\\DITA-OT\\plugins\\net.sourceforge.dita4publishers.common.xslt
[echo] dita.plugin.net.sourceforge.dita4publishers.epub.dir=C\:\\Oxygen XML Editor 14\\frameworks\\dita\\DITA-OT\\plugins\\net.sourceforge.dita4publishers.epub
[echo] dita.plugin.org.dita.base.dir=C\:\\Oxygen XML Editor 14\\frameworks\\dita\\DITA-OT\\plugins\\org.dita.base
[echo] dita.plugin.org.dita.docbook.dir=C\:\\Oxygen XML Editor 14\\frameworks\\dita\\DITA-OT\\plugins\\org.dita.docbook
[echo] dita.plugin.org.dita.eclipsecontent.dir=C\:\\Oxygen XML Editor 14\\frameworks\\dita\\DITA-OT\\plugins\\org.dita.eclipsecontent
[echo] dita.plugin.org.dita.eclipsehelp.dir=C\:\\Oxygen XML Editor 14\\frameworks\\dita\\DITA-OT\\plugins\\org.dita.eclipsehelp
[echo] dita.plugin.org.dita.htmlhelp.dir=C\:\\Oxygen XML Editor 14\\frameworks\\dita\\DITA-OT\\plugins\\org.dita.htmlhelp
[echo] dita.plugin.org.dita.javahelp.dir=C\:\\Oxygen XML Editor 14\\frameworks\\dita\\DITA-OT\\plugins\\org.dita.javahelp
[echo] dita.plugin.org.dita.legacypdf.dir=C\:\\Oxygen XML Editor 14\\frameworks\\dita\\DITA-OT\\demo\\legacypdf
[echo] dita.plugin.org.dita.odt.dir=C\:\\Oxygen XML Editor 14\\frameworks\\dita\\DITA-OT\\plugins\\org.dita.odt
[echo] dita.plugin.org.dita.pdf.dir=C\:\\Oxygen XML Editor 14\\frameworks\\dita\\DITA-OT\\plugins\\org.dita.pdf
[echo] dita.plugin.org.dita.pdf2.dir=C\:\\Oxygen XML Editor 14\\frameworks\\dita\\DITA-OT\\demo\\fo
[echo] dita.plugin.org.dita.specialization.apiref.dir=C\:\\Oxygen XML Editor 14\\frameworks\\dita\\DITA-OT\\plugins\\apiref
[echo] dita.plugin.org.dita.specialization.dita11.dir=C\:\\Oxygen XML Editor 14\\frameworks\\dita\\DITA-OT\\demo\\dita11
[echo] dita.plugin.org.dita.specialization.dita132.dir=C\:\\Oxygen XML Editor 14\\frameworks\\dita\\DITA-OT\\demo\\dita132
[echo] dita.plugin.org.dita.specialization.eclipsemap.dir=C\:\\Oxygen XML Editor 14\\frameworks\\dita\\DITA-OT\\demo\\eclipsemap
[echo] dita.plugin.org.dita.specialization.h2d.dir=C\:\\Oxygen XML Editor 14\\frameworks\\dita\\DITA-OT\\demo\\h2d
[echo] dita.plugin.org.dita.specialization.javaapiref.dir=C\:\\Oxygen XML Editor 14\\frameworks\\dita\\DITA-OT\\plugins\\javaapiref
[echo] dita.plugin.org.dita.troff.dir=C\:\\Oxygen XML Editor 14\\frameworks\\dita\\DITA-OT\\plugins\\org.dita.troff
[echo] dita.plugin.org.dita.wordrtf.dir=C\:\\Oxygen XML Editor 14\\frameworks\\dita\\DITA-OT\\plugins\\org.dita.wordrtf
[echo] dita.plugin.org.dita.xhtml.dir=C\:\\Oxygen XML Editor 14\\frameworks\\dita\\DITA-OT\\plugins\\org.dita.xhtml
[echo] dita.preprocess.reloadstylesheet=false
[echo] dita.resource.dir=C\:\\Oxygen XML Editor 14\\frameworks\\dita\\DITA-OT\\resource
[echo] dita.script.dir=C\:\\Oxygen XML Editor 14\\frameworks\\dita\\DITA-OT\\xsl
[echo] dita.temp.dir=C\:\\Oxygen XML Editor 14\\frameworks\\dita\\DITA-OT\\temp\\temp20120718175858059
[echo] dita.topic.filename.root=SampleRestApiRef.ditamap
[echo] dita.xhtml.reloadstylesheet=false
[echo] *****************************************************************
[echo] * Using Xerces
[echo] *****************************************************************

output-deprecated-msg:

output-css-warn-message:

output-msg:

build-init:

start-preprocess:

gen-list-flag-check:

gen-list-without-flagging:
[pipeline] Failed to read supported image extensions from configuration, using defaults.
[pipeline] Failed to read print transtypes from configuration, using defaults.
[pipeline] Using Xerces grammar pool for DTD and schema caching.
[pipeline] Jul 18, 2012 5:59:01 PM java.util.prefs.WindowsPreferences <init>
[pipeline] WARNING: Could not open/create prefs root node Software\JavaSoft\Prefs at root 0x80000002. Windows RegCreateKeyEx(...) returned error code 5.

gen-list-with-flagging:

gen-list:

debug-filter-flag-check:

debug:
[pipeline] java.lang.NullPointerException
[pipeline] Exception doing debug and filter module processing:
[pipeline] java.lang.NullPointerException
[pipeline] at org.dita.dost.reader.ListReader.setList(ListReader.java:70)
[pipeline] at org.dita.dost.reader.ListReader.read(ListReader.java:61)
[pipeline] at org.dita.dost.module.DebugAndFilterModule.execute(DebugAndFilterModule.java:229)
[pipeline] at org.dita.dost.pipeline.PipelineFacade.execute(PipelineFacade.java:56)
[pipeline] at org.dita.dost.invoker.ExtensibleAntInvoker.execute(ExtensibleAntInvoker.java:213)
[pipeline] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
[pipeline] at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
[pipeline] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
[pipeline] at java.lang.reflect.Method.invoke(Unknown Source)
[pipeline] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
[pipeline] at org.apache.tools.ant.Task.perform(Task.java:348)
[pipeline] at org.apache.tools.ant.Target.execute(Target.java:390)
[pipeline] at org.apache.tools.ant.Target.performTasks(Target.java:411)
[pipeline] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
[pipeline] at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
[pipeline] at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
[pipeline] at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442)
[pipeline] at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
[pipeline] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
[pipeline] at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
[pipeline] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
[pipeline] at java.lang.reflect.Method.invoke(Unknown Source)
[pipeline] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
[pipeline] at org.apache.tools.ant.Task.perform(Task.java:348)
[pipeline] at org.apache.tools.ant.Target.execute(Target.java:390)
[pipeline] at org.apache.tools.ant.Target.performTasks(Target.java:411)
[pipeline] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
[pipeline] at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
[pipeline] at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
[pipeline] at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442)
[pipeline] at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
[pipeline] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
[pipeline] at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
[pipeline] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
[pipeline] at java.lang.reflect.Method.invoke(Unknown Source)
[pipeline] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
[pipeline] at org.apache.tools.ant.Task.perform(Task.java:348)
[pipeline] at org.apache.tools.ant.Target.execute(Target.java:390)
[pipeline] at org.apache.tools.ant.Target.performTasks(Target.java:411)
[pipeline] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
[pipeline] at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
[pipeline] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
[pipeline] at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
[pipeline] at org.apache.tools.ant.Main.runBuild(Main.java:809)
[pipeline] at org.apache.tools.ant.Main.startAnt(Main.java:217)
[pipeline] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
[pipeline] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)

debug-and-filter:

debug-filter:

copy-image-check:

copy-image:

copy-html-check:

copy-html:

copy-flag-check:

copy-flag:

copy-subsidiary-check:

copy-subsidiary:

copy-generated-files:
[copy] Copying 2 files to C:\Oxygen XML Editor 14\frameworks\dita\DITA-OT\plugins\com.intel.restapiref\out\sample

copy-files:

conrefpush-check:

conrefpush:

conref-check:

conref:

move-meta-entries-check:

move-meta-entries:

BUILD FAILED
C:\Oxygen XML Editor 14\frameworks\dita\DITA-OT\plugins\com.intel.restapiref\run-ant.xml:18: The following error occurred while executing this line:
C:\Oxygen XML Editor 14\frameworks\dita\DITA-OT\plugins\com.intel.restapiref\build.xml:11: The following error occurred while executing this line:
C:\Oxygen XML Editor 14\frameworks\dita\DITA-OT\build_preprocess.xml:174: java.lang.NullPointerException
at java.util.Properties$LineReader.readLine(Unknown Source)
at java.util.Properties.load0(Unknown Source)
at java.util.Properties.load(Unknown Source)
at org.dita.dost.util.ListUtils.getDitaList(ListUtils.java:55)
at org.dita.dost.module.MoveMetaModule.execute(MoveMetaModule.java:84)
at org.dita.dost.pipeline.PipelineFacade.execute(PipelineFacade.java:56)
at org.dita.dost.invoker.ExtensibleAntInvoker.execute(ExtensibleAntInvoker.java:213)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
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:390)
at org.apache.tools.ant.Target.performTasks(Target.java:411)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442)
at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
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:390)
at org.apache.tools.ant.Target.performTasks(Target.java:411)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442)
at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
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:390)
at org.apache.tools.ant.Target.performTasks(Target.java:411)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
at org.apache.tools.ant.Main.runBuild(Main.java:809)
at org.apache.tools.ant.Main.startAnt(Main.java:217)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)

Total time: 4 seconds

The process finished with exit code: 1
I really would want to make an Ant project build just as the DITA Map XHTML scenario because I need to deploy DITA in an integration server, which will not run *my* licensed version of Oxygen to produce XHTML automatically. Is there other way to do this? Is there an "export scenario" feature in Oxygen Editor? Or do you recommend I keep trying configurations until I get fully working Ant project?

Radu
Posts: 6398
Joined: Fri Jul 09, 2004 5:18 pm

Re: apiref specialization

Post by Radu » Thu Jul 19, 2012 12:00 pm

Hi Pablo,

It's very hard for me to follow all your modifications.
For example you are the DITA OT bundled with Oxygen 14 but the reported DITA version in the console is 1.3. This means that you have replace the bundled DITA OT with an older one, right?

You also have problems in the libraries which are sent to the DITA OT ANT process.
For example a lot of the JAR libraries sent to the DITA OT process are like this:

-lib "C:\Oxygen XML Editor 14\frameworks\dita\DITA-OT\plugins\com.intel.restapiref\${dita.dir.url}"

So you seem to have prepended the path to your plugin in about all library entries.
This is wrong, the ${dita.dir.url} is an editor variable which gets expanded to the absolute location where the DITA OT is installed.

This means that a lot of the passed libraries and paths are not found anymore on disk.

Please try to edit the Libraries list in the transformation scenario and correct these problems.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com

Post Reply