- Issue:
We are trying to update CXF to 4 version from 3.5.This we are doing alongwith Java 17 and Tomcat10. We faced many issues as part of the upgrade but now we are stuck with below error.
- Error
Caused by: jakarta.xml.ws.WebServiceException: Error while searching for service [jakarta.xml.ws.spi.Provider]
2023-10-11T06:50:30.500977690Z: [ERROR] at jakarta.xml.ws.spi.FactoryFinder$1.createException(FactoryFinder.java:31)
Caused by: java.util.ServiceConfigurationError: jakarta.xml.ws.spi.Provider: org.apache.cxf.jaxws.spi.ProviderImpl Unable to get public no-arg constructor
.
.
.
2023-10-11T06:50:30.501332500Z: [ERROR]
Caused by: java.lang.NoClassDefFoundError: jakarta/xml/bind/JAXBException
- Solutions tried till now
We have a stub jar created with CXF4 as well and also we are using jakartaee 9 version jars as part of javax pkg to jakarta pkgs. Not sure what is causing below issue.
If someone has any idea on this please help us.
For this solution we did not find any solution provided on Google as well, so unable to move ahead with this.