Getting java.lang.ClassNotFoundException: com.sun.xml.internal.ws.spi.ProviderImpl despite the dependencies are defined

后端 未结 5 1322
青春惊慌失措
青春惊慌失措 2021-01-07 19:22

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

5条回答
  •  被撕碎了的回忆
    2021-01-07 19:37

    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

提交回复
热议问题