jakartaee / jax-ws-api

JAX-WS API (Eclipse Project for JAX-WS)
BSD 3-Clause "New" or "Revised" License
46 stars 24 forks source link

class com.sun.xml.ws.spi.ProviderImpl cannot be cast to class jakarta.xml.ws.spi.Provider #226

Open hariraogotit opened 3 months ago

hariraogotit commented 3 months ago

Team,

Very similar to https://github.com/jakartaee/jax-ws-api/issues/90

I am getting class com.sun.xml.ws.spi.ProviderImpl cannot be cast to class jakarta.xml.ws.spi.Provider

I am using Java 21. Spring boot 3.3 Gradle 8.7

My deps include

implementation group: 'com.sun.xml.ws', name: 'jaxws-rt', version: '2.3.1'

image

Kindly advise on the combination of jars to be used?

I have spent couple of days on this issue now.

Any leads are much appreciated.

Some debug screenshots

image image

ThiarllesMaster commented 2 months ago

Hi @hariraogotit could you fix this problem? How did fixed if you fixed!

hariraogotit commented 2 months ago

@ThiarllesMaster - I got it working by adding implementation 'com.sun.xml.ws:rt:4.0.1'

Specifically https://stackoverflow.com/a/78487339/4068218 post helped me.