Class not found : com.sun.xml.wss.impl.SecurableSoapMessage

Solution In Progress - Updated -

Issue

  • We are not able to open a secured soap connection to our provider. We get the following exception every time:
Caused by: 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.secureMessage(XwsSecurityInterceptor.java:137) ~[spring-ws-security-2.2.1.RELEASE.jar:2.2.1.RELEASE]
        at org.springframework.ws.soap.security.AbstractWsSecurityInterceptor.handleRequest(AbstractWsSecurityInterceptor.java:210) ~[spring-ws-security-2.2.1.RELEASE.jar:2.2.1.RELEASE]
        at org.springframework.ws.client.core.WebServiceTemplate.doSendAndReceive(WebServiceTemplate.java:597) ~[spring-ws-core-2.2.1.RELEASE.jar:2.2.1.RELEASE]
  • We do not encounter the problem when we launch the application directly (outside JBoss).

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP) 6.x
  • Spring Boot
  • Spring Web Services
  • Spring WebServiceTemplate

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content