Getting java.lang.ClassNotFoundException: com.sun.xml.internal.ws.spi.ProviderImpl despite the dependencies are defined

后端 未结 5 1321
青春惊慌失措
青春惊慌失措 2021-01-07 19:22

Despite that I have defined the related dependencies as I have added below, getting the java.lang.ClassNotFoundException: com.sun.xml.internal.ws.spi.ProviderImpl

5条回答
  •  借酒劲吻你
    2021-01-07 19:29

    Today in the era of Jakarta, I needed the following two dependencies:

            
                jakarta.xml.ws
                jakarta.xml.ws-api
                2.3.3
            
    
            
                com.sun.xml.ws
                jaxws-rt
                2.3.3
            
    

    One thing I find quite weird is that the second dependency is not from Jakarta, I thought all of these implementations were migrated. It works, but I'd appreciate if someone could comment on that.

提交回复
热议问题