Start of Content Area

Background documentation Deploy Tool Connection Problems Locate the document in its SAP Library structure

Problem Description

Application deployment or any connection to the Web AS using the Deploy Tool fails with one of the following error messages:

     ERROR: Cannot connect to Host [host] with Username [username] Check your Login info:

This is the exception:

com.sap.engine.services.jndi.persistent.exceptions.NamingException: Exception while trying to get InitialContext.

     ERROR: Cannot connect to Host [host] with Username [username] Check your Login info:

This is the exception:

com.sap.engine.services.jndi.persistent.exceptions.NoPermissionException: Exception during getInitialContext operation. Wrong security principles/credentials.

Scenario Type:

Error analysis

NetWeaver Component:

J2EE

Validity:

SAP Web AS >= 6.30

Decision Roadmap

Prerequisites

-

Main Tools

Deploy Tool

Execution

First you may use the connect option from the menu or the toolbar button This graphic is explained in the accompanying text of the Deploy Tool to test the connection.

This graphic is explained in the accompanying text

If the connect button changes to this button This graphic is explained in the accompanying text, a connection has been established to the server. If the connection fails, see below.

Analysis

Case 1
Noticing the problem in the Deploy Tool:

This graphic is explained in the accompanying text

Possible reasons:

     Incorrect host and/or port

Solution:

Check the host and port in the Deploy Tool:

...

                            a.      Select the Deployer tab.

                            b.      Open the Deploy menu.

                            c.      Select Properties.

This graphic is explained in the accompanying text

     Network problems

Solution:

If the server is on a remote computer type in your browser:
http://host:<host>:50000 or telnet <host> 50008

This graphic is explained in the accompanying text

     Different versions of the Deploy Tool and the J2EE Engine

Solution:

Make sure that the versions of Deploy Tool and the J2EE Engine are the same.

In <Deploy Tool directory>\lib there is a file SapJ2eeEngineDeploy.jar. In this file there is a META-INF/manifest.mf file. Inside this file there is a property AppServer-Change-List: xxxxx where xxxxx are numbers and they must be the same as the first numbers on the server patch level. The patch level of the server can be checked via telnet:

telnet host 50008 command version.

This graphic is explained in the accompanying text

Case 2
Noticing the problem in the Deploy Tool:

This graphic is explained in the accompanying text

Possible reasons:

Wrong user name and/or password

Solution:

Check your user name and password in the Deploy Tool.

       1.      Select the Deployer tab.

       2.      Open the Deploy menu.

       3.      Select Properties.

This graphic is explained in the accompanying text

End of Content Area