BingAds / BingAds-Java-SDK

Other
42 stars 47 forks source link

java.lang.NoClassDefFoundError: javax/xml/ws/AsyncHandler when using SDK with Java 11 #148

Closed nkdanta1 closed 1 year ago

nkdanta1 commented 1 year ago

Issue Summary I am trying to use the Bing Ads Java SDK in my Java 11 project, but I'm getting a NoClassDefFoundError with the message javax/xml/ws/AsyncHandler. This is preventing me from using the SDK.

Steps to Reproduce

  1. Include the Bing Ads Java SDK in a Java 11 project.
        <dependency>
                    <groupId>com.microsoft.bingads</groupId>
                    <artifactId>microsoft.bingads</artifactId>
                    <version>13.0.13</version>
        </dependency>
  2. Attempt to run code that uses the SDK.
  3. Observe the NoClassDefFoundError with the message javax/xml/ws/AsyncHandler.
qitia commented 1 year ago

I am afraind you need include additinal dependencies

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

This has been removed from Java11

nkdanta1 commented 1 year ago

Thank you for your response. I understand that the javax.xml.ws dependency has been removed from Java 11. Can you suggest an alternative solution that I can use in Java 11?

qitia commented 1 year ago

I meant you can still use that, but just include above dependency. We are working on vNext, and it will be ship soon. in which we will switch to jakarta.

qitia commented 1 year ago

v13.0.16.1 was released June/07. Please refer to example for dependeices.