I am upgrading my application to Java 11 and Spring boot 2.1.2 and running into following error when trying to communicate over SOAP to an external partner. It is the Wss4jS
Also can downgrade to 2.0.6 and work.
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web-services</artifactId>
<version>2.0.6.RELEASE</version>
</dependency>
Apparently there is a bug in the wss4j-ws-security-dom that spring pulls in. 2.2.0.
I updated to latest version 2.2.2 and it worked:
There is also a problem when use with new version saaj-impl (v1.4.0 or higher).
<dependency>
<groupId>com.sun.xml.messaging.saaj</groupId>
<artifactId>saaj-impl</artifactId>
<version>1.3.28</version>
</dependency>