I’m in the process of upgrading an application from Java 8 to 11, because it 
requires Apache Wicket 9.
Application (libraries) uses Apache CXF 3.4.4

WebService classes are generated from WSDL and are based on 
jakarta.jws.WebService.
Web service client classes are instantiated with Spring using the 
org.apache.cxf.jaxws.JaxWsProxyFactoryBean class. This throws an exception:

org.springframework.beans.MethodInvocationException: Property 'serviceClass' 
threw exception; nested exception is java.lang.NoClassDefFoundError: 
javax/jws/WebService

Based on the 3.4.4 notes on Java 11 support I had expected that the 
JaxWsProxyFactoryBean class would lean on jakarta.jws.WebService instead of 
javax.jws.WebService. This does not seem to be the case given the error message.

What am I missing here? What should be my next step?

thanks for your time,
Peter

Reply via email to