SAP Knowledge Base Article - Preview

2123469 - EJBAccessException error in Message Security Handling

Symptom

You have configured Web Services Security(for signature and encryption) in the receiver XI communication channel and in Integration Server the following error is thrown in Call Adapter step:

<SAP:Category>XIServer</SAP:Category>
<SAP:Code area="SECURITY">SECURITY_APPLY_ERROR</SAP:Code>
<SAP:P1>Sign and Encrypt Message</SAP:P1>
<SAP:P2/>
<SAP:P3/>
<SAP:P4/>
<SAP:AdditionalText>Communication error javax.ejb.EJBAccessException: ASJ.ejb.005045 (Failed in component: sap.com/tc~sec~wssec~app, BC-JAS-SEC) ASJ.ejb.003001 Principal: <username> (authentication method: password), policyContextID: sap.com/t </SAP:AdditionalText>
<SAP:Stack>Error during message security handling in outbound channel: Security profile 'Sign and Encrypt Message' </SAP:Stack>

The default trace shows this error:

process()
[EXCEPTION]
com.sap.engine.interfaces.webservices.runtime.RuntimeProcessException: javax.ejb.EJBAccessException: ASJ.ejb.005045 (Failed in component: sap.com/tc~sec~wssec~app, BC-JAS-SEC) ASJ.ejb.003001 Principal: <username> (authentication method: password), policyContextID: sap.com/tc~sec~wssec~app*wssprocess.jar, permission.name: WSSProcessorBean, permission.actions: apply,Remote,com.sap.security.core.ws.wss.SOAPWithAttachmentData,byte[],int
at com.sap.engine.services.ejb3.webservice.impl.DefaultImplementationContainer.invokeMethod(DefaultImplementationContainer.java:213)
...
Caused by: javax.ejb.EJBAccessException: ASJ.ejb.005045 (Failed in component: sap.com/tc~sec~wssec~app, BC-JAS-SEC) ASJ.ejb.003001 Principal: <username> (authentication method: password), policyContextID: sap.com/tc~sec~wssec~app*wssprocess.jar, permission.name: WSSProcessorBean, permission.actions: apply,Remote,com.sap.security.core.ws.wss.SOAPWithAttachmentData,byte[],int
at com.sap.engine.services.ejb3.runtime.impl.Interceptors_SecurityCheck.invoke(Interceptors_SecurityCheck.java:22)
at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:179)
at com.sap.engine.services.ejb3.runtime.impl.Interceptors_ExceptionTracer.invoke(Interceptors_ExceptionTracer.java:17)
at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:179)
at com.sap.engine.services.ejb3.runtime.impl.DefaultInvocationChainsManager.startChain(DefaultInvocationChainsManager.java:138)
at com.sap.engine.services.ejb3.webservice.impl.DefaultImplementationContainer.invokeMethod(DefaultImplementationContainer.java:204)
... 47 more


Read more...

Environment

  • SAP NetWeaver 7.0
  • SAP enhancement package 1 for SAP NetWeaver 7.0
  • SAP enhancement package 2 for SAP NetWeaver 7.0
  • SAP enhancement package 3 for SAP NetWeaver 7.0
  • SAP NetWeaver Process Integration 7.1
  • SAP enhancement package 1 for SAP NetWeaver Process Integration 7.1
  • SAP NetWeaver 7.3
  • SAP enhancement package 1 for SAP NetWeaver 7.3
  • SAP NetWeaver 7.4
  • SAP NetWeaver 7.5

Product

SAP NetWeaver 2004 ; SAP NetWeaver 7.0 ; SAP NetWeaver 7.3 ; SAP NetWeaver 7.4 ; SAP NetWeaver 7.5 ; SAP NetWeaver Process Integration 7.1 ; SAP enhancement package 1 for SAP NetWeaver 7.0 ; SAP enhancement package 1 for SAP NetWeaver 7.3 ; SAP enhancement package 1 for SAP NetWeaver Process Integration 7.1 ; SAP enhancement package 2 for SAP NetWeaver 7.0 ; SAP enhancement package 3 for SAP NetWeaver 7.0

Keywords

Web Services Security, signature, encryption, EJBAccessException, Principal, Service Users, RuntimeProcessException, Process Integration 7.0, PI 7.0, PI 7.01, PI 7.02, Process Integration 7.10, PI 7.10, Process Integration 7.11, PI 7.11, Process Integration 7.30, PI 7.30, Process Integration 7.31, PI 7.31, Process Orchestration 7.4, PI 7.4, PO 7.4, Process Orchestration 7.5, PI 7.5, PO 7.5, XI, AEX , KBA , BC-XI-IS , Integration Server , BC-JAS-SEC , Security, User Management , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.