JAX-WS and openJDK 11
Posted: 18 Mar 2024, 14:35
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?
<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?