Page 1 of 1

JAX-WS and openJDK 11

Posted: 18 Mar 2024, 14:35
by plamas
We are trying to run an application witch consumes some SOAP JAX-WS. We add these libraries to the resources:

<jarResource>
<groupId>jakarta.xml.ws</groupId>
<artifactId>jakarta.xml.ws-api</artifactId>
<version>3.0.1</version>
</jarResource>

<jarResource>
<groupId>javax.xml.ws</groupId>
<artifactId>jaxws-api</artifactId>
<version>2.3.1</version>
</jarResource>

<jarResource>
<groupId>com.sun.xml.ws</groupId>
<artifactId>jaxws-rt</artifactId>
<version>2.3.5</version>
</jarResource>


The application downloads all jar correctly and run correctly, but when tries to consume the WS, we are getting

java.lang.reflect.InvocationTargetException, cause: "Could not initialize class com.sun.xml.ws.api.SOAPVersion"

Has anyone tried to run a JAX-WS application? What any other lib should I need to add?

Re: JAX-WS and openJDK 11

Posted: 19 Mar 2024, 12:01
by Janak Mulani
with which version of JRE are you trying to run your Jnlp application? I have no experience or running JAX-WS app with OWS. However, if the specified jre version > 1.8 you might have to add some module vm args.