jdk9 に移行してから、実行時に次のエラーが発生します。
java.lang.NoClassDefFoundError: javax/xml/ws/Service
コンパイル エラーは発生しませんが、実行時エラーのみが発生します。モジュール情報は次のとおりです。
module CXFPExGenCaller {
requires java.xml;
requires java.logging;
requires java.xml.bind;
requires java.xml.ws;
exports ......;
}
また、pom.xml には次の依存関係が含まれています。
<dependency>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
<version>2.2.12-b141001.1542</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-core</artifactId>
<version>2.2.11</version>
<scope>test</scope>
</dependency>
さまざまな構成を試しても、最終結果は依然としてこの厄介なエラーです! 誰かがここで何が起こっているのか考えていますか?