REST Gateway connector for AppWorks 23.1
Unable to generate the JSON for SOAP services using REST Gateway 3.0.1.cap
In the REST Gateway documentation it supports only upto Java 11, but currently using Java 17 in AW 23.1
Getting below error
<faultcode xmlns:ns0="http://schemas.xmlsoap.org/soap/envelope/">ns0:Server</faultcode>
<faultstring xml:lang="en-US">superclass access check failed: class nu.xom.JDK15XML1_0Parser (in unnamed module @0x5fc618f5) cannot access class com.sun.org.apache.xerces.internal.parsers.SAXParser (in module java.xml) because module java.xml does not export com.sun.org.apache.xerces.internal.parsers to unnamed module @0x5fc618f5</faultstring>
<faultactor>http://schemas.cordys.com/RESTMapping</faultactor>
<detail>
<cordys:FaultDetails xmlns:cordys="http://schemas.cordys.com/General/1.0/">
<cordys:LocalizableMessage>
<cordys:MessageCode>Cordys.WSAppServer.Messages.wsAppsDefaultError</cordys:MessageCode>
<cordys:Insertion>superclass access check failed: class nu.xom.JDK15XML1_0Parser (in unnamed module @0x5fc618f5) cannot access class com.sun.org.apache.xerces.internal.parsers.SAXParser (in module java.xml) because module java.xml does not export com.sun.org.apache.xerces.internal.parsers to unnamed module @0x5fc618f5</cordys:Insertion>
</cordys:LocalizableMessage>
</cordys:FaultDetails>
<cordys:FaultRelatedException xmlns:cordys="http://schemas.cordys.com/General/1.0/">
<![CDATA[java.lang.IllegalAccessError: superclass access check failed: class nu.xom.JDK15XML1_0Parser (in unnamed module @0x5fc618f5) cannot access class com.sun.org.apache.xerces.internal.parsers.SAXParser (in module java.xml) because module java.xml does not export com.sun.org.apache.xerces.internal.parsers to unnamed module @0x5fc618f5
0
Comments
-
Have a look at this post for your solution; I got the exact same error…Search for "JDK15XML1_0Parser":
//Antal
0 -
HI @Antal Bos TP ,
Have tried already, it doesn't work for Java 17.0 -
I just did a double check on my local VM where my post is based on and I run also Java 17:
java --version openjdk 17.0.6 2023-01-17 LTS
OpenJDK Runtime Environment (Red_Hat-17.0.6.0.10-3.el8_7) (build 17.0.6+10-LTS)
OpenJDK 64-Bit Server VM (Red_Hat-17.0.6.0.10-3.el8_7) (build 17.0.6+10-LTS, mixed mode, sharing)This is my TomEE with the same Java version:
See if you have other differences on your side.
//Antal0