cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Web Application Server Port

Former Member
0 Kudos

Dear all,

i want to connect to a Web Application Server using the HTTP port, but it is not working.

http://localhost:50100/

HTTPS is working without any problems.

https://localhost:50101/

I started hte HTTPS site and checked the system information, please see attached jpg.

The system overview tells me, that HTTP Port is null.

But how can i change it?

Thanks in advance for our help.

Kind regards,

Klaus

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Dear all,

attached you can find the dev_dispatcher.txt

I can not see a icmon file....

Kind reagrds,

Klaus

Former Member
0 Kudos

Check the Ports settings for AS Java dispatcher http service in configtool/Visual Administrator.

isaias_freitas
Advisor
Advisor
0 Kudos

Hello Klaus,


I can not see a icmon file....

The file name should be "dev_icm".

Regards,

Isaías

Former Member
0 Kudos

i searched through the whole instance directory and i cannot find any file dev_icm*

yakcinar
Active Contributor
0 Kudos

Hello Klaus,

ICM comes with NW 7.1 to Java systems. Foor 7.0 versions dispatcher was running the functionality of ICM.

So you cannot find dev_icm.

dev_dispatcher is the right file for dispatcher.

Nothing in dev_dispatcher file.

Can you also check log files under j2ee,  server0 folders like defaultTrace*.trc, server*.log.

Regards,

Yuksel AKCINAR

Reagan
Advisor
Advisor
0 Kudos

Is it possible to upload the profiles of the Java system?

Former Member
0 Kudos

Yes these files are available. Attatched you can find the files.It is a ZIP file, you need to rename it from txt to zip.

What i found is the following:

java.io.IOException: Unable to open connection to host "xxx:50100". The host is down or unavailable..

Really strange.. XXX is the own server name.

Reagan
Advisor
Advisor
0 Kudos

That error isn't relevant here. You might have tried to access the webpage using the http port. As it was not accessible the error got recorded in the default trace file. Again, have you set the parameters in the instance profile? If possible upload the profiles here. I can clearly see from the dispatcher trace that system was able to bind to ports 50101 for https, 50104 for p4 and 50108 for telnet. It appears to me that the profile parameters are not set up correctly. Review DEFAULT and INSTANCE profile for all ICM parameters.

yakcinar
Active Contributor
0 Kudos

Hello Klaus,

You do not get exit code 2106 but you can check below config for your instance also from the link.

https://wiki.scn.sap.com/wiki/display/ASJAVA/%28JSTTSG%29%28P4-IIOP%29P4-P003+Exit+code+-2106

If HTTPS port is configured in configuration slot 1 - this is the root cause for the problem.

You may simply add all other ports that you need. For example:

# HTTP port configuration

icm/server_port_0 = PROT=HTTP, PORT=5$(SAPSYSTEM)00, TIMEOUT=600

icm/server_port_1 = PROT=HTTPS, PORT=5$(SAPSYSTEM)01, TIMEOUT=1200

# P4 port configuration

icm/server_port_2 = PROT=P4, PORT=5$(SAPSYSTEM)04

# IIOP/Telnet port configuration

icm/server_port_3 = PROT=IIOP, PORT=5$(SAPSYSTEM)07

icm/server_port_4 = PROT=TELNET, PORT=5$(SAPSYSTEM)08, HOST=localhost

Regards,

Yuksel AKCINAR

Former Member
0 Kudos

Dear all,

attatched you can find the whole profile drectory of the JAVA instance. It is a ZIP file, you need to rename it to .ZIP.

Kind regards,

Klaus

Former Member
0 Kudos

Dear all,

Problem is solved. Thank you very much for the fantastic help.

I found the solution in the link:

(JSTTSG)(P4-IIOP)P4-P003 Exit code -2106 - SAP Netweaver Application Server Java - SCN Wiki

"You may simply add all other ports that you need"

--> Iadded all needed ports and restarted the instance and everything is fine now.

Kind regards,

Klaus

Answers (10)

Answers (10)

Former Member
0 Kudos

startup type is "always".

Kind regards,

Klaus

Former Member
0 Kudos

Dear all,

here are the settings of the http provider in the visual administrator.

Kind regards,

Klaus

Former Member
0 Kudos

Please check also Startup Mode on Additinal Tab.

Former Member
0 Kudos

Dear all,

it is a 7.01 system and ABAP and JAVA is separated.

Where can i find the JAVA ICM log?

Kind regards,

Klaus

yakcinar
Active Contributor
0 Kudos

Hello Klaus,

Check work directory of the Java instance for dev_icm, dev_disp, dev_ms files.  (drive:\usr\sap\JC3\<Instance>\work)

If you cannot find sthg attach them to this discussion.

Regards,

Yuksel AKCINAR

Reagan
Advisor
Advisor
0 Kudos

The ICM log file should be present in the work instance directory. In your case it should be

<Drive>:\usr\sap\JM3\JC01\work\dev_icm

Former Member
0 Kudos

Please check dispatcher Ports properties for http service in configtool or Visual Administrator. Also please attach dev_dispatcher log file.

isaias_freitas
Advisor
Advisor
0 Kudos

Hello Klaus,

The trace files are always located at the "work" folder of the instance (/usr/sap/JM3/J02/work).

Regards,

Isaías

Former Member
0 Kudos

Dear Yuksel AKCINAR,


thank you for your reply. I found this point only in the ABAP Instance, not in the JAVA Instance.



I cannot see the JAVA Ports there. Any other Idea what i can try?


Kind regards,

Klaus

yakcinar
Active Contributor
0 Kudos

Hello Klaus,

As you may see I sent the picture from my Java instance NW 7.4.

What is the version of your Java system?

There must be an icm node in SAP MMC.

Did you check dev_icm, dev_disp, dev_ms trace files of your Java system?

Regards,

Yuksel AKCINAR

Reagan
Advisor
Advisor
0 Kudos

You have two separate stacks. (ABAP separate and Java separate). You cannot monitor or administer the Java stack from the ABAP stack using Tx SMICM. Have you checked the ICM log of the J2EE stack to see if the HTTP service was started? If you have set the ICM profile parameters correctly then check what is happening to the port. Check using jcmon/jsmon tool for the port.

icm/server_port_&amp;lt;xx&amp;gt; - Internet Communication Manager (ICM) - SAP NetWeaver - SAP Libr...

Former Member
0 Kudos

Dear Yuksel AKCINAR,


thank you for your reply.


Now i have restarted the ICM in the ABAP Instance and the port is free now. I checked it with Netstat.


As you mentioned i added the line

icm/server_port_0 = PROT=HTTP , PORT=50100, TIMEOUT=60 , PROCTIMEOUT=600

to the instance profile of the JM3 instance by using notepad. I restarted the JAVA Instance.


Then i checked the Ports in the SAPMMC Tool Access Points as you toled, but 50100 is still not available.


I checked the ICM Parameters in the ABAP Stack using rspfpar and i got following values:

icm/server_port_0

PROT=HTTP,PORT=8000,TIMEOUT=2400, HOST=xxx, EXTBIND=1

icm/server_port_1

PROT=HTTPS,PORT=0443,TIMEOUT=2400, HOST=xxx, EXTBIND=1

icm/server_port_2

PROT=SMTP, PORT=0025,TIMEOUT=2400,HOST=xxx,EXTBIND=1

Is there in JAVA Stack a possibility to add the ICM Parameters through a web interface?

I do not understand why it will not work now.


Kind regards,

Klaus

yakcinar
Active Contributor
0 Kudos

Hello Klaus,

You can use icm monitor from SAP MMC. For administration of icm you need to sign in.

You can create a user for signin using below first link.

The others are useful for icm.

Check active services in ICM admin screen on SAP MMC.

When you login you will have chance to "Change Service, Add Service, Activate/Deactivate Service, Delete Service"

Creating Administration Users - Internet Communication Manager (ICM) - SAP NetWeaver - SAP Library

Using the Web Administration Interface - Internet Communication Manager (ICM) - SAP NetWeaver - SAP ...

Using the Command Line Programs icmon and wdispmon - Internet Communication Manager (ICM) - SAP NetW...

Regards,

Yuksel AKCINAR

Former Member
0 Kudos

Dear Yuksel AKCINAR,


thank you for your reply. Now i have added the line

icm/server_port_0 = PROT=HTTP , PORT=50100, TIMEOUT=60 , PROCTIMEOUT=600

to the instance prifile of the JM3 instance by using notepad. I restarted the JAVA Instance.


is that doing ok?


it takes no effect at the moment, but i think it is clear, because the port is already in use at the moment.

It is a production system, i will do that on Sunday and give feedback as soon as possible.


Kidn regards,

Klaus

yakcinar
Active Contributor
0 Kudos

Hello Klaus,

I was going to advise you,

1- Configure all instances (ABAP+JAVA) port parameters as  described in below link.

icm/server_port_&amp;lt;xx&amp;gt; - Internet Communication Manager (ICM) - SAP NetWeaver - SAP Libr...

2- Stop all instances

3- Then start again.

In addition;

* You can also check port usages from SAPMMC Tool Access Points tree element of each instance.

* You can restart ICM of and ABAP instances on SMICM transaction Administration menu without restarting the instance

Waiting for feedback.

Regards,

Yuksel AKCINAR

Former Member
0 Kudos

Dear Yuksel AKCINAR,

Thanks for your reply. This is the status of the CMD command:

sapcontrol -nr 01 -function GetSystemInstanceList

03.03.2016 09:49:24

GetSystemInstanceList

OK

hostname, instanceNr, httpPort, httpsPort, startPriority, features, dispstatus

XXXX, 2, 50213, 0, 1, MESSAGESERVER|ENQUE, GREEN

XXXX, 1, 50113, 0, 3, J2EE|IGS, GREEN

Here is a screenshot from the SAP MMC

JM3 is JAVA, PM1 is ABAP.

I hope it helps.

Kind regards,

Klaus

yakcinar
Active Contributor
0 Kudos

Hello Klaus,

So, if you define this parameter in instance profile of JC3 as seen below, it must work.

(not like this PORT=50200 (SAPSYSTEM) 00 , be carefull)

icm/server_port_0 = PROT=HTTP , PORT=50100, TIMEOUT=60 , PROCTIMEOUT=600


Regards,

Yuksel AKCINAR


Former Member
0 Kudos

Dear all,

thanks for your replys.

First of all i forgot to mention, that the ABAP Stack and the JAVA Stack is running on the same Server in different instances.

I checked the profiles of the JAVA instance, there are no entries depending on

icm/server_port_xx

So i think the system will use the default values.

But i found out something strange. I checked the Ports using netstat. If i shut down the JAVA Instance and only the ABAP Instance is running i get the following entries:

netstat -ano | findstr :50100

  TCP    127.0.0.1:50100        127.0.0.1:65000        ESTABLISHED     13232

  TCP    127.0.0.1:65000        127.0.0.1:50100        ESTABLISHED     9084

Then i checked the Process ID 13232 and 9084

13232 disp+work.exe

9084 icman.exe

So i think icman.exe is blocking the port 50100.

How should i solve this problem?!?

I think the best way is to change the JAVA Port to another one. But how can i do that?

I added the parameter

icm/server_port_0 = PROT=HTTP , PORT=50200 (SAPSYSTEM) 00, TIMEOUT=60 , PROCTIMEOUT=600

to the JAVA Default.PFL but it did not take any effect.

What can i do?

Thanks for you help.

Kidn regards,

Klaus

yakcinar
Active Contributor
0 Kudos

Hello Klaus,

All  instances have ICM to handle web requests. ABAP or JAVA.

Normally if you install a dual stack system instance numbers come with 00 (CI), 01 (ASCS) and 02 (JSCS).

If you install ABAP and JAVA stack as different systems instances come with ABAP instances are 00 (PAS) , 01 (ASCS), Java instances are 02 (PAS) ,03 (JSCS).

I see that your instance number is 01.

Is your system dual stack? Or seperate ABAP and Java systems (SIDs)?

What are your instance numbers? Can you send SAPMC screenshot?

Or can you send the output of below command running on cmd with sidadm user.

sapcontrol -nr 01 -function GetSystemInstanceList

You should also define the parameter on instance profile not in default.

Regards,

Yuksel AKCINAR

Reagan
Advisor
Advisor
0 Kudos

In the screenshot it shows HTTP port as "null". Check if the icm parameter for HTTP is set in the profile or not.

yakcinar
Active Contributor
0 Kudos

Hello,

Check icm/server_port_XX  parameter.

You can define them in proofile parameters as described in below link.

icm/server_port_&amp;lt;xx&amp;gt; - Internet Communication Manager (ICM) - SAP NetWeaver - SAP Libr...

Default Values AS Java

icm/server_port_0 = PROT=HTTP , PORT=5$ (SAPSYSTEM) 00, TIMEOUT=60 , PROCTIMEOUT=600

icm/server_port_1 = PROT=P4 , PORT=5$ (SAPSYSTEM) 04

icm/server_port_2 = PROT=IIOP, PORT=5$(SAPSYSTEM)07

icm/server_port_3 = PROT=TELNET , PORT=5$ (SAPSYSTEM) 08, HOST=localhost

Regards,

Yuksel AKCINAR