DITA OT transform fails

Here should go questions about transforming XML with XSLT and FOP.
shudson310
Posts: 156
Joined: Sat Feb 26, 2005 12:09 am
Location: USA
Contact:

DITA OT transform fails

Post by shudson310 »

I get the following error when I try to process a DITA map with the built-in transformation scenario:

Unable to locate tools.jar. Expected to find it in c:\program files\oxygen xml editor 9.2\lib\tools.jar
Buildfile: C:\Program Files\Oxygen XML Editor 9.2\frameworks\dita\DITA-OT\build.xml

What tools .jar are we talking about? Shouldn't this be installed by default? I'm using oXygen 9.2.

Thanks!

--Scott
Scott Hudson
Staff Content Engineer
Site: docs.servicenow.com
shudson310
Posts: 156
Joined: Sat Feb 26, 2005 12:09 am
Location: USA
Contact:

Re: DITA OT transform fails

Post by shudson310 »

I manually copied tools.jar from my local java/bin dir, and that error is gone. However the transform still fails:

[xslt] Loading stylesheet C:\Program Files\Oxygen XML Editor 9.2\frameworks\dita\DITA-OT\xsl\preprocess\topicpull.xsl
[xslt] Processing file.xml to file.xml.pull
[xslt] Processing file.xml to file.xml.pull
[xslt] Processing file.xml to file.xml.pull
[xslt] Processing file.xml to file.xml.pull
[xslt] Failed to process null

BUILD FAILED
C:\Program Files\Oxygen XML Editor 9.2\frameworks\dita\DITA-OT\build.xml:55: The following error occurred while executing this line:
C:\Program Files\Oxygen XML Editor 9.2\frameworks\dita\DITA-OT\build_preprocess.xml:179: java.lang.reflect.InvocationTargetException
Scott Hudson
Staff Content Engineer
Site: docs.servicenow.com
Radu
Posts: 9057
Joined: Fri Jul 09, 2004 5:18 pm

Re: DITA OT transform fails

Post by Radu »

Dear Scott

The message that ANT cannot locate "tools.jar" in the Oxygen lib directory is a warning and the DITA transformation should work nonetheless.
Please remove the "tools.jar" from the Oxygen lib directory as it might interfere with the Oxygen libraries.
Can you try to edit the transformation scenario that you are using and in the "Advanced" tab set the value of the "Build target" text field to '-v -d' without the quotes and then run the transformation to reproduce the problem again on your side? This should enable more detailed logging in ANT. Then save the console output, zip it and send it to us http://www.oxygenxml.com/techSupport.html.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
jowen
Posts: 1
Joined: Tue Aug 19, 2008 12:12 am

Re: DITA OT transform fails

Post by jowen »

I am receiving this same error: C:\Program Files\Oxygen XML Editor 9\frameworks\dita\DITA-OT\build_preprocess.xml:179: java.lang.OutOfMemoryError: Java heap space

Can you please tell me if a resolution was found?
Jason
Radu
Posts: 9057
Joined: Fri Jul 09, 2004 5:18 pm

Re: DITA OT transform fails

Post by Radu »

Dear Jason,

This is not the same error.
You have to give more memory to the DITA ANT process.
See Example 4.6 from this link http://www.oxygenxml.com/doc/ug-oxygen/ ... a-jvm-args
for more information.
Basically, you have to edit the Oxygen DITA transformation scenario and in the "Advanced" tab, the "JVM Arguments" text field write for example "-Xmx256m" without the quotes to give 256 megabytes to the DITA ANT process. The default is 64 megabytes which is probably not enough for your transformation.


Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
ditamot
Posts: 4
Joined: Wed Sep 17, 2008 1:24 am

Re: DITA OT transform fails

Post by ditamot »

I get the same warning message when I try to process a DITA map with the built-in transformation scenario:
Unable to locate tools.jar. Expected to find it in c:\program files\oxygen xml editor 9\lib\tools.jar
The build is successful and everything looks fine, but I continue to get this message. I'm using oXygen XML Editor 9.3, build 2008072515 on Windows.

When I received this message using DITA Open Toolkit directly from the command line, I was told it was because the JDK bin directory was not in my path. Adding it silenced this warning.

Is this a DITA OT bug that I can safely ignore when I see this warning in oXygen?

Thanks,
Brent
Radu
Posts: 9057
Joined: Fri Jul 09, 2004 5:18 pm

Re: DITA OT transform fails

Post by Radu »

Hi Brent,

ANT is is many situations used to compile Java classes and it needs the tools.jar in the classpath to do that.
As the DITA Open Toolkit ANT process only runs XSLT transformations there is no need to add in the classpath "tools.jar" and the warning can safely be ignored.

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