xmltask usage in plugins using old XPATH API
Posted: Mon Nov 28, 2022 8:50 pm
Hi,
I have recently updated to v25 with the updated JDK.
Executing:
"C:\Ixiasoft\og\client-og-6.3\data\dita-ot-2.5.4/bin/dita.bat" -v -f xhtml-client -o C:\Ixiasoft\projects\client\Hazard-and-Warning\Hazards_Warnings_and_Cautions.Export[DRM].English\content\authoring/out/xhtml-client -t C:\Ixiasoft\projects\client\Hazard-and-Warning\Hazards_Warnings_and_Cautions.Export[DRM].English\content\authoring/temp/xhtml-client -i C:\Ixiasoft\projects\client\Hazard-and-Warning\Hazards_Warnings_and_Cautions.Export[DRM].English\content\authoring\nze1529959654580.ditamap "-Dclean.temp=no"
init:
dita2xhtml-client.init:
Error: java.lang.IllegalAccessError: class com.oopsconsultancy.xmltask.jdk15.XPathAnalyser15 (in unnamed module @0x16612a51) cannot access class com.sun.org.apache.xpath.internal.XPathAPI (in module java.xml) because module java.xml does not export com.sun.org.apache.xpath.internal to unnamed module @0x16612a51
From what I can gather from Googling things I need to add the following as JVM option. I still get the error whne I add it to the JVM arguments section of the scenario. What's the best way to resolve this issue?
"--add-opens java.xml/com.sun.org.apache.xpath.internal=ALL-UNNAMED"
If I add "-Dadd-opens=java.xml/com.sun.org.apache.xpath.internal=ALL-UNNAMED" on the command line for the OT (copied from oxygen), then this works fine outside of oxygen. But I can't seem to get it too work inside oxygen via the JVM Argument in the scenario.
I have recently updated to v25 with the updated JDK.
Executing:
"C:\Ixiasoft\og\client-og-6.3\data\dita-ot-2.5.4/bin/dita.bat" -v -f xhtml-client -o C:\Ixiasoft\projects\client\Hazard-and-Warning\Hazards_Warnings_and_Cautions.Export[DRM].English\content\authoring/out/xhtml-client -t C:\Ixiasoft\projects\client\Hazard-and-Warning\Hazards_Warnings_and_Cautions.Export[DRM].English\content\authoring/temp/xhtml-client -i C:\Ixiasoft\projects\client\Hazard-and-Warning\Hazards_Warnings_and_Cautions.Export[DRM].English\content\authoring\nze1529959654580.ditamap "-Dclean.temp=no"
init:
dita2xhtml-client.init:
Error: java.lang.IllegalAccessError: class com.oopsconsultancy.xmltask.jdk15.XPathAnalyser15 (in unnamed module @0x16612a51) cannot access class com.sun.org.apache.xpath.internal.XPathAPI (in module java.xml) because module java.xml does not export com.sun.org.apache.xpath.internal to unnamed module @0x16612a51
From what I can gather from Googling things I need to add the following as JVM option. I still get the error whne I add it to the JVM arguments section of the scenario. What's the best way to resolve this issue?
"--add-opens java.xml/com.sun.org.apache.xpath.internal=ALL-UNNAMED"
If I add "-Dadd-opens=java.xml/com.sun.org.apache.xpath.internal=ALL-UNNAMED" on the command line for the OT (copied from oxygen), then this works fine outside of oxygen. But I can't seem to get it too work inside oxygen via the JVM Argument in the scenario.