JAX-WS and openJDK 11

The public knowledge pool and discussion forum of the OWS community. Do not post confidential information here!
plamas
Posts: 1
Joined: 28 Feb 2024, 23:02

JAX-WS and openJDK 11

Post 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?

Janak Mulani
Posts: 746
Joined: 24 Mar 2020, 13:37

Re: JAX-WS and openJDK 11

Post 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.

Post Reply