Symptom
Deployment from the central CMS/NWDI transport system to a target AS Java system fails. The failure occurs after a security note application, security hardening, SP upgrade, or reconfiguration of the NWDI/CMS server (the system initiating the deployment).
The CMS Log Viewer shows:
com.sap.cms.util.exception.CMSUnexpectedException: The user '<USER>' could not be connected to the specified host '<HOST>' and port '<PORT>'.
The defaultTrace or SDM deploy log on the NWDI/CMS server contains the full exception chain:
com.sap.cms.util.exception.CMSUnexpectedException: The user '<USER>' could not be connected to the specified host '<HOST>' and port '<PORT>'.
at com.sap.cms.util.logging.CmsLogger.cmsalert(CmsLogger.java:468)
...
at com.sap.cms.tcs.beans.TCSDeployServlet$Deployer.run(TCSDeployServlet.java:2795)
Caused by: com.sap.sdm.apiimpl.remote.client.APIAuthenticationException: The user '<USER>' could not be connected to the specified host '<HOST>' and port '<PORT>'.
at com.sap.sdm.apiimpl.remote.client.P4APIClientSessionImpl.initClient(P4APIClientSessionImpl.java:140)
...
Caused by: com.sap.engine.services.dc.api.ConnectionException: [ERROR CODE DPL.DCAPI.1144] Could not establish connection to AS Java on [P4://<HOST>:<PORT>]. Obtaining InitialContext is forbidden due to not allowed host or ports in naming configuration property: AllowedJndiRemoteHosts. Application name is sap.com/tc~SL~CMS~TCSEar. Check if the host and port specified are correct and AS Java is up and running.
at com.sap.engine.services.dc.api.session.impl.SessionImpl.parseNamingException(SessionImpl.java:336)
...
Caused by: javax.naming.NamingException: Obtaining InitialContext is forbidden due to not allowed host or ports in naming configuration property: AllowedJndiRemoteHosts. Application name is sap.com/tc~SL~CMS~TCSEar.
at com.sap.engine.services.jndi.ContextFactoryHelper.validateAllowedHostToPort(ContextFactoryHelper.java:79)
...
at com.sap.engine.services.dc.api.session.impl.SessionImpl.getContext(SessionImpl.java:215)
Note: Despite the error message mentioning authentication, this is NOT an authentication or network connectivity failure. The P4 port is reachable and the deploy user credentials are correct. The connection is blocked at the JNDI naming layer before authentication takes place.
Read more...
Environment
- SAP NetWeaver Development Infrastructure (NWDI) with CMS (Change Management Service) using the TCS/Deployer servlet (`sap.com/tc~SL~CMS~TCSEar`)
- CMS transport track with deployment to source system, consolidation system, or delivery system configured
- NWDI/CMS server recently patched, upgraded, or security-hardened
Scope: This KBA applies to CMS only — identifiable by the application name `sap.com/tc~SL~CMS~TCSEar` in the exception and by the use of the TCS/Deployer servlet. It does not apply to CM Services (SAP NetWeaver Change Management Services with DI/Deployer servlet and CTS+ as configuration authority).
Product
Keywords
NWDI, CTS+, CMS, deployment failure, P4, P4S, JNDI, AllowedJndiRemoteHosts, InitialContext forbidden, DPL.DCAPI.1144, naming exception, Java System Properties, NWA, deploy controller, NetWeaver 7.5 , KBA , BC-CTS-CMS , Change Management Service , 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.
SAP Knowledge Base Article - Preview