JDK 11:java.lang.NoClassDefFoundErrorが:javaxの/ XML / WS /ハンドラ/石鹸/ SOAPHandler

パティ:

私たちは、サードパーティのAPIがエラーで失敗している呼び出すために石鹸を使用して、JDK 8私たちのプロジェクトの一部から11をOpenJDKのために移行されます。

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>

動作しませんでした。私は代替案のアイデアを得ることが?

デヴィッド・コンラッド:

インクルードjaxws-apiあなたの依存関係に:

<dependency>
    <groupId>javax.xml.ws</groupId>
    <artifactId>jaxws-api</artifactId>
    <version>2.3.1</version>
</dependency>

おすすめ

転載: http://43.154.161.224:23101/article/api/json?id=172819&siteId=1