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

后端 未结 5 1362
青春惊慌失措
青春惊慌失措 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:38

    Seems like the class com.sun.xml.internal.ws.spi.ProviderImpl is not available in jdk-9

    jshell> Class.forName("com.sun.xml.internal.ws.spi.ProviderImpl")
    |  java.lang.ClassNotFoundException thrown: com.sun.xml.internal.ws.spi.ProviderImpl
    |        at URLClassLoader.findClass (URLClassLoader.java:466)
    |        at DefaultLoaderDelegate$RemoteClassLoader.findClass (DefaultLoaderDelegate.java:66)
    |        at ClassLoader.loadClass (ClassLoader.java:543)
    |        at ClassLoader.loadClass (ClassLoader.java:476)
    |        at Class.forName0 (Native Method)
    |        at Class.forName (Class.java:292)
    |        at (#1:1)
    

    which is available in jdk-8, I wonder if you can use jdk-8 if possible might solve the issue.

提交回复
热议问题