We recently upgraded from Java 8 to openjdk16. And our webservice clients failed with below error.
Failed to execute goal org.jvnet.jax-ws-commons:jaxws-maven-plugin:2.3:wsimport (MyWebServiceClient) on project com.myproject: Execution MyWebServiceClient of goal org.jvnet.jax-ws-commons:jaxws-maven-plugin:2.3:wsimport failed: start 0, end -1, length 0 -> [Help 1]
And the fix was to change the plugin for ws-import.
Before we had
<groupId>org.jvnet.jax-ws-commons</groupId>
<artifactId>jaxws-maven-plugin</artifactId>
<version>2.3</version>
And we changed it to
<groupId>org.codehaus.mojo</groupId>
<artifactId>jaxws-maven-plugin</artifactId>
<version>2.6</version>
The above change fixed the build and we did builds happily ever after 🙂