Error "java.lang.NoSuchMethodError" #DITA-OT #specialization #conditional-processing #branch-filtering
@l3arn4life
Hi everyone, we’re trying to upgrade our dita-ot from 2.5.4 to the newest version. I copied our custom plugins to the new dita-ot directory and integrated them using the dita install-command. Now, even when trying to build output using the command line, I get the following error: Error: java.lang.NoSuchMethodError: 'net.sf.saxon.s9api.Processor org.dita.dost.util.XMLUtils.getProcessor()' I ran the build-command using
The project I used to test this is based on a sample project modified by Radu, it can be found here. I only added keyspaces and changed the title of the topic to include a keyspace-specific key. Many thanks,
|
|
Radu Coravu
Hi Ed, DITA OT 3.5.2 comes with a very new Saxon XSLT processor in its "lib" folder "Saxon-HE-9.9.1-4.jar". You seem to be running the publishing with an older Saxon JAR library. How exactly do you start the DITA OT from the command line? Do you use the "dita" script or have you created your own ANT
build files with your own Java classpath pointing to various JAR
libraries? Radu Radu Coravu Oxygen XML Editor On 7/16/20 11:20 AM,
schmidt.eduard@... wrote:
|
|
@l3arn4life
I use the standard procedure described here. The exact command is (I wont list the complete directories since they’re irrelevant I think):
I did not create my own ANT build files as at this stage I would’t even know where to start with such an endeavor. Best, Ed
|
|
Radu Coravu
Hi Ed, Can you give a list with all the custom plugins you installed in DITA OT 3.4.1? Also just to make sure, you did not copy the DITA OT 3.4.1
installation over the older 2.x installation, right? Because in
this way you could have ended up with older Java JAR libraries in
the updated installation. Radu Radu Coravu Oxygen XML Editor On 7/16/20 4:43 PM,
schmidt.eduard@... wrote:
|
|
@l3arn4life
Hi Radu, Thanks,
|
|
Radu Coravu
Hi Ed, If you look inside a DITA OT bundled with Oxygen, it has in the "plugins" folder a plugin named "com.oxygenxml.dost.patches". That plugin depends very much on the DITA OT version, if installed in another DITA OT version it will break the publishing. So I think you might have also copied this plugin to the DITA OT 3.5.2 installation, which would explain why the publishing did not work. We do not yet officially support DITA OT 3.5.2 with our publishing plugins, we have updated them internally but we'll officially support them in Oxygen 23 (November 2020). My advice to you if you want to use our plugins is to use our DITA OT publishing engine distribution: https://www.oxygenxml.com/publishing_engine.html It comes with DITA OT 3.4.2 with all our plugins pre-installed. https://github.com/dita-ot/dita-ot/issues/3370 it seems to be still opened so for now I do not have a workaround
for you. Radu Radu Coravu Oxygen XML Editor On 7/20/20 9:51 AM,
schmidt.eduard@... wrote:
|
|