After the update from spring boot 2.7. to version 3 the strange error occurred, that no qualifying bean of type 'jakarta.xml.ws.WebServiceContext' is available. I followed the migration steps (javax to jakarta) and compiling the project works fine, but it cannot be started. The SOAP request needs the WebServiceContext because I need to extract some information from the header/body. Is there any way to inject the WebServiceContext? It was working fine in Spring Version 2.7
I already eliminated third-party libs that included older Spring versions so that an older version does not interfere with the functionality of Spring. I also looked at several discussions like this but none of them was helpful. As recommended, I tried to inject the WebServiceContext with a setter with the same result.
@jakarta.jws.WebService
public class MyEndpoint {
...
private WebServiceContext context;
@Resource
public void setContext(WebServiceContext context) {
this.context = context;
}
...