Oxygen 14 with OT 1.5.6M5

Milestone M5 of the OT changes from Ant 1.7 to Ant 1.8 and no longer uses the Xerces bundled with Ant. This breaks running the Toolkit from within Oxygen because the right Xerces library isn't found: /Applications/oxygen/frameworks/dita/DITA-OT/plugins/org.dita.base/build_pre process.xml:27: java.lang.NoSuchMethodError: org.apache.xerces.impl.xs.SubstitutionGroupHandler.<init>(Lorg/apache/xerces /impl/xs/XSGrammarBucket;)V at org.apache.xerces.impl.xs.XMLSchemaValidatorXerces.<init>(Unknown Source) Is there a way to locally update the classpath Oxygen uses in order to pick up the right Xerces jar? Note that I've simply replace the as-installed DITA-OT distribution with the 1.5.6M5 distribution swapping it into the directory DITA-OT. Cheers, E. -- Eliot Kimber Senior Solutions Architect, RSI Content Solutions "Bringing Strategy, Content, and Technology Together" Main: 512.554.9368 www.rsicms.com www.rsuitecms.com Book: DITA For Practitioners, from XML Press, http://xmlpress.net/publications/dita/practitioners-1/

Hi Eliot, Actually I noticed the same thing a week ago. Basically Oxygen also comes with Xerces (an older version than the one bundled with the DITA OT though). If you edit the transformation scenario, in the "Advanced" tab there is a "Libraries" button. You should then uncheck the "Allow Oxygen to add...." checkbox. Then you have two possibilities: 1) In order for the publishing to work with Oxygen's Xerces library, move the entry "${oxygenHome}/lib/xercesImpl.jar" so that it is in front of the entry "${dita.dir.url}/lib/dost.jar". I have not found the exact reason but this seems to make the transformation work again with Oxygen's Xerces. This modification will be available out of the box with Oxygen 14. 2) Use the newer Xerces. Add the newer Xerces jar to the list and promote it to be the first one in the list. It needs to be located before the Oxygen libraries because they contain patches which most probably are not compatible with the new Xerces library. Regards, Radu Radu Coravu <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com On 6/16/2012 4:23 PM, Eliot Kimber wrote:
Milestone M5 of the OT changes from Ant 1.7 to Ant 1.8 and no longer uses the Xerces bundled with Ant.
This breaks running the Toolkit from within Oxygen because the right Xerces library isn't found:
/Applications/oxygen/frameworks/dita/DITA-OT/plugins/org.dita.base/build_pre process.xml:27: java.lang.NoSuchMethodError: org.apache.xerces.impl.xs.SubstitutionGroupHandler.<init>(Lorg/apache/xerces /impl/xs/XSGrammarBucket;)V at org.apache.xerces.impl.xs.XMLSchemaValidatorXerces.<init>(Unknown Source)
Is there a way to locally update the classpath Oxygen uses in order to pick up the right Xerces jar?
Note that I've simply replace the as-installed DITA-OT distribution with the 1.5.6M5 distribution swapping it into the directory DITA-OT.
Cheers,
E.
participants (2)
-
Eliot Kimber
-
Oxygen XML Editor Support