org.jboss.ws.extensions.security.exception.FailedCheckException: Required elements for encryption and or signing are not all present
Issue
- The request (signed and encrypted) works well but the response (only signed) gives the following error:
11:44:04,733 ERROR [WSSecurityDispatcher] Internal error occured handling inbound message:
org.jboss.ws.extensions.security.exception.FailedCheckException: Required elements for encryption and or signing are not all present.
at org.jboss.ws.extensions.security.operation.RequireTargetableOperation.process(RequireTargetableOperation.java:96)
at org.jboss.ws.extensions.security.SecurityDecoder.verify(SecurityDecoder.java:180)
at org.jboss.ws.extensions.security.WSSecurityDispatcher.decodeHeader(WSSecurityDispatcher.java:140)
at org.jboss.ws.extensions.security.WSSecurityDispatcher.decodeMessage(WSSecurityDispatcher.java:101)
at org.jboss.ws.extensions.security.jaxws.WSSecurityHandler.handleInboundSecurity(WSSecurityHandler.java:81)
at org.jboss.ws.extensions.security.jaxws.WSSecurityHandlerClient.handleInbound(WSSecurityHandlerClient.java:38)
at org.jboss.wsf.common.handler.GenericHandler.handleMessage(GenericHandler.java:53)
at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(HandlerChainExecutor.java:305)
at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(HandlerChainExecutor.java:142)
at org.jboss.ws.core.jaxws.client.ClientImpl.callResponseHandlerChain(ClientImpl.java:153)
at org.jboss.ws.core.CommonClient.invoke(CommonClient.java:388)
at org.jboss.ws.core.jaxws.client.ClientImpl.invoke(ClientImpl.java:231)
at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:171)
at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:157)
at com.sun.proxy.$Proxy18.createInvoice(Unknown Source)
at com.example.MyClass.createDocument(MyClass.java:123)
Environment
- Red Hat JBoss Enterprise Application Platform
- 5.1.0
- JBossWS - Native
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.