Despite that I have defined the related dependencies as I have added below, getting the java.lang.ClassNotFoundException: com.sun.xml.internal.ws.spi.ProviderImpl
I've got the same problem upgrading to Java 11 from Java 8.
The problem was change of behavior in ForkJoinPool, which classloader is as of jdk9 system classloader, not the main thread classloader, it can produce hard to solve ClassNotFound exceptions.
It's better explained in this answer https://stackoverflow.com/a/59444016/878015