【发布时间】:2018-12-05 23:19:27
【问题描述】:
我们正在从 jdk 8 迁移到 openjdk 11。我们的一些使用soap调用第三方api的项目失败并出现错误:
java.lang.NoClassDefFoundError: javax/xml/ws/handler/soap/SOAPHandler
做了一些研究后,我尝试添加依赖项:
[ 参考:
]
<dependency>
<groupId>javax.annotation</groupId>
<artifactId>javax.annotation-api</artifactId>
</dependency>
<dependency>
<groupId>xml-apis</groupId>
<artifactId>xml-apis</artifactId>
</dependency>
<dependency>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
<version>2.3.1</version>
</dependency>
<dependency>
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-core</artifactId>
<version>2.3.0.1</version>
</dependency>
<dependency>
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-impl</artifactId>
<version>2.3.1</version>
</dependency>
<dependency>
<groupId>javax.xml.soap</groupId>
<artifactId>javax.xml.soap-api</artifactId>
<version>1.3.5</version>
</dependency>
没有用。我可以对替代方案有所了解吗?
【问题讨论】:
标签: java