I am facing error as below when I am trying to implement soap service security in spring boot. I am using JDK 17.
java.lang.NoClassDefFoundError: Could not initialize class com.sun.xml.wss.impl.SecurableSoapMessage
at com.sun.xml.wss.ProcessingContext.setSOAPMessage(ProcessingContext.java:227) ~[xws-security-3.0.jar:3.0-FCS]
at com.sun.xml.wss.impl.misc.XWSSProcessor2_0Impl.createProcessingContext(XWSSProcessor2_0Impl.java:153) ~[xws-security-3.0.jar:3.0-FCS]
at org.springframework.ws.soap.security.xwss.XwsSecurityInterceptor.validateMessage(XwsSecurityInterceptor.java:162) ~[spring-ws-security-3.0.6.RELEASE.jar:na]
at org.springframework.ws.soap.security.AbstractWsSecurityInterceptor.handleRequest(AbstractWsSecurityInterceptor.java:124) ~[spring-ws-security-3.0.6.RELEASE.jar:na]
at org.springframework.ws.server.MessageDispatcher.dispatch(MessageDispatcher.java:227) ~[spring-ws-core-3.0.6.RELEASE.jar:na]
at org.springframework.ws.server.MessageDispatcher.receive(MessageDispatcher.java:176) ~[spring-ws-core-3.0.6.RELEASE.jar:na]
at org.springframework.ws.transport.support.WebServiceMessageReceiverObjectSupport.handleConnection(WebServiceMessageReceiverObjectSupport.java:89) ~[spring-ws-core-3.0.6.RELEASE.jar:na]
at org.springframework.ws.transport.http.WebServiceMessageReceiverHandlerAdapter.handle(WebServiceMessageReceiverHandlerAdapter.java:61) ~[spring-ws-core-3.0.6.RELEASE.jar:na]
at org.springframework.ws.transport.http.MessageDispatcherServlet.doService(MessageDispatcherServlet.java:293) ~[spring-ws-core-3.0.6.RELEASE.jar:na]
at org.springframework.web.servlet.Framewo
Your helps would be greatly appreciated.