Using Wss4jSecurityInterceptor throws a WRONG_DOCUMENT_ERR: A node is used in a different document than the one that created it

前端 未结 3 1042
悲&欢浪女
悲&欢浪女 2021-01-05 11:30

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

相关标签:
3条回答
  • 2021-01-05 11:32

    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>
    
    0 讨论(0)
  • 2021-01-05 11:38

    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:

    0 讨论(0)
  • 2021-01-05 11:52

    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>
    
    0 讨论(0)
提交回复
热议问题