(JSTTSG)(Deploy)Problems-P96
Category:Authentication problem
Category:Cannot start deployment
Problem
Cannot authenticate the user, thus cannot get initial context.
Keywords
Cannot authenticate the user
Cannot get initial context
Symptoms
Deployment fails due to following error: .
"BaseLoginException. Cannot get initial context. Reason: Cannot authenticate the user."
Solution
1. Make sure you have typed correct user name and password.
2. Make sure the user you are using has appropriate rights. The users that belong to the administrators group have the required rights.
3. The deploy operations require you to log on to AS Java with users that have the appropriate security actions assigned to their roles.
Activities
To perform deploy operations, you need to log to AS Java with a user that has the following permissions:
1. every user needs to have dc_action and auth.all.all actions to be able to read deployment related information
2. if you want to perform online deployment operations, the user needs in addition the deploy_action and auth.all.all
3. if you want to perform offline deployment operations, the user needs in addition the dc_offline_action action and auth.all.all
Sample logs
Exception occurred during the 'deploy' operation. Cause:com.sap.engine.services.dc.api.AuthenticationException: BaseLoginException.Cannot get initial context. Reason: Cannot authenticate the user. Exception: com.sap.ide.eclipse.deployer.api.AuthenticationException: com.sap.engine.services.dc.api.AuthenticationException: BaseLoginException.Cannot get initial context. Reason: Cannot authenticate the user. at com.sap.ide.eclipse.deployer.dc.DCClientImpl.(DCClientImpl.java:47) at com.sap.ide.eclipse.deployer.dc.DCClientFactoryImpl.createClient(DCClientFactoryImpl.java:80) at com.sap.ide.eclipse.deployer.DeployerPlugin.getClient(DeployerPlugin.java:181) at com.sap.ide.eclipse.j2ee.engine.deploy.view.util.UIUtils.getClient(UIUtils.java:238) at com.sap.ide.eclipse.j2ee.engine.deploy.view.deploy.action.DeployAction$DeployActionJob.run(DeployAction.java:173) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:76) Caused by: com.sap.engine.services.dc.api.AuthenticationException: BaseLoginException.Cannot get initial context. Reason: Cannot authenticate the user.