Getting java.lang.ClassNotFoundException: com.sun.xml.internal.ws.spi.ProviderImpl 尽管定义了依赖关系
2022-09-01 18:33:09
尽管如此,我已经定义了相关的依赖项,正如我在下面添加的那样,当我的应用调用Web服务时,我会得到异常。java.lang.ClassNotFoundException: com.sun.xml.internal.ws.spi.ProviderImpl
<dependency>
<groupId>javax.xml.ws</groupId>
<artifactId>jaxws-api</artifactId>
<version>2.2.10</version>
</dependency>
<dependency>
<groupId>com.sun.xml.ws</groupId>
<artifactId>jaxws-rt</artifactId>
<version>2.2.10</version>
<type>pom</type>
</dependency>
p.s. servlet 容器是 。Apache Tomcat 9.0.4
p.s. Java 版本: .9.0.1