Technology Blogs by Members
Explore a vibrant mix of technical expertise, industry insights, and tech buzz in member blogs covering SAP products, technology, and events. Get in the mix!
cancel
Showing results for 
Search instead for 
Did you mean: 
amolgupta
Active Contributor

Applies to: SAP Netweaver Web Application Server (WAS), Netweaver Development Studio (NWDS).

Summary : Whenever a developer installs a NWDS (NetWeaver Developer Studio), the NWDS has to be configured for deploying WebDynpro Applications. Many times, developers and Basis are seen fumbling with the message port number and even resorting to hit and trial to figure out the message port number. This article explains how to find the exact message port number for configuring the NWDS so that WebDynpro Java Applications can be deployed from the NWDS.

Author(s): Amol Gupta

Company: Pitney Bowes Software.

Created on:  15 May 2012

Author Bio : Amol Gupta is working with Pitney Bowes Software as an SAP Technical Consultant. He has been working on WebDynpro programming, Enterprise Portal Content Management, MDM Java API, MDM Console, MDM Data Manager and Interactive forms for WebDynpro Java.  Amol also knows core Java (SCJP) and a bit of ABAP programming.


1). Prerequisites

One needs to have a NetWeaver Developer Studio (NWDS) installed on his desktop and an installed and running Web Application Server (WAS). Some knowledge of WebDynpro application development and deployment will make the document more relevant for you.

2). Outcome

The document will help you find the correct Message Port Number and show how to configure your NetWeaver Developer Studio to Build and Deploy your WebDynpro Java Applications using the same. You can have your NetWeaver Developer Studio (NWDS) set up to deploy and run your WebDynpro java applications without any hit and trial with the Message Port Number in a single attempt, first time right.

3). Introduction

NWDS is actually Eclipse IDE with SAP plugins bundled in a single installation. The SAP plugins allow you to see your Java/J2EE/WebDynpro Java developments in various perspectives and views within NWDS. The SAP WebDynpro development environment allow a developer to create a build, create an archive and deploy their applications built using NWDS on the SAP WAS server etc.

To deploy the WebDynpro applications the SAP WAS server, Server IP/name and Message Server Port number have to be configured in the NWDS preferences.

The audiences for the document are developers who have installed NetWeaver Developer Studio (NWDS) on their desktops and Basis consultants who are usually asked Message port numbers to be configured in the NetWeaver Developer Studio (NWDS) so that applications (e.g. WebDynpro Java) can be deployed on the Web Application Server (WAS).

It is usually a pain point for new Developers and Basis guys to find out the Message Server Port number to configure correct Web Application Server (WAS) settings and start deploying and running WebDynpro Java applications. The document will help you find the correct Message Port Number and show how to configure your NetWeaver Studio to Build and Deploy your WebDynpro Java Applications using the same.

It is an interesting fact that many articles suggest you to configure your Server name/IP and Message Server Port number in the NWDS preferences but none tells you how to find out the Message Server Port number yourself or with help from your Basis team.

4). Where to enter the Web Application Server (WAS) configuration

All the configuration of the NetWeaver Developer Studio (NWDS) is done in the preferences of the NetWeaver Developer Studio (NWDS). Please have a look at the screenshot below to see how to reach the preferences in the NetWeaver Developer Studio (NWDS).

Note: NWDS -> Window -> Preferences -> SAP J2EE Engine

The first options is used if the Web Application Server (WAS) is installed and running on a remote hardware. The second option is relevant when the Web Application Server (WAS) is on the same desktop as the NetWeaver Developer Studio (NWDS).

Edit the settings and replace the default “localhost” by IP address of Web Application Server (WAS) or Web Application Server (WAS) name. The Message Server Port number is defaulted to “3601”. We will discuss how to find the right Message Server Port number in another section.

5). See the status of your Web Application Server (WAS)

Go to NWDS -> Window -> Show View -> J2EE Engine and it will show up a J2EE Engine view. As you can see in the screenshot, due to incorrect/default entries, the Server status can not be seen and an ‘N/A’ is visible.

Note: To see the SAP J2EE Engine view, go to NWDS -> Window -> Show View -> J2EE Engine

As shown in the screenshot, the status of the server (green – server is up and running, grey – server is down, N/A – incorrect server IP/name and/or incorrect message server port) shows up in the NetWeaver Developer Studio (NWDS).

6). Find the correct Message Server Port number

Log on to your Web Application Server (WAS) homepage (http://<servername/IP>:port), click on System Information which will open upa new window Look at top, left hand corner and you will see the Web Application Server (WAS) message port number.

As can be seen, the Message Server Port Number for my Web Application Server (WAS) is 3901. Note down the number for your respective installation.

Note: Log on to your Web Application Server (WAS) homepage via the URL http://<servername/IP>:<port>/index.html.

Here you can see your Message Server Port Number along with other System Information. Please note that I have omitted/whitened out some information for security reasons. Go back to step 4 and enter correct server IP/name and Message Server Port number.

Note: NWDS -> Window -> Preferences -> SAP J2EE Engine

7). Enter the appropriate server IP/name and message port number

Go back to NWDS preferences as shown in Section 3 and enter the server IP/name (“myserver” in my case) and message server port number (“3901” in my case).

Check the J2EE engine view. If you see the server in green, it means that your server is up and running and the entries that you entered in the preferences are correct.

As shown in the screenshot, the status of the server (green – server is up and running, grey – server is down) shows up in the NetWeaver Developer Studio (NWDS).

Thus you have learned how to set up and maintain your SAP WAS Server name/IP and Message Server Port number in the NWDS after finding the exact Message Server Port Number in a single attempt, first time right.

Abbreviations

IDE – Integrated Development Environment
NWDS – NetWeaver Developer Studio
WAS – Web Application Server
WD4J – WebDynpro for Java

Related Content

WebDynpro Java on SCN

WebDynpro Java on help.sap.com

Monitoring and Administration of the SAP Message Server

How to connect from NWDS TO WAS

NWDS on SDN

The Eclipse Story

Labels in this area