cancel
Showing results for 
Search instead for 
Did you mean: 

J2EE Error with localhost vs <WEB AS host name>.....

Former Member
0 Kudos

Hi,

We have installed NW 2004s ABAP+JAVA on 2003 Server.

Installation went well and all is fine.

My question is that when I go to http://<host name>:< port> then it opens a default page where you can go to NWA, User Admin, and System Information. The port here is HTTP port form Web As which is four digit (8001).

I can go to User Admin and NWA after logging using j2ee_admin user but when I choose System Information then it does not prompt me for logID. So I used http://localhost:5<inst#>00 and it works fine. Here I had to use HTTP Port for J2ee.

Why there is an inconsistency. I have checked following parameter and it seems they have correct value. The icm/host_name_full has value of the host name but the icm/host_name_full is default and it has HOST=LOCALHOST and PORT=50100. From here I decided to use localhost with five digit ports and it worked.

I checked the SMICM – Go to – HTTP App Server – Display and it is displaying the correct port, which is five digit (50100).

One of the link on sdn says that –

am going to window -- > Preferences --> SAP J2EE ENGINE

after that plz tell me how to get

1) message server host

2) message server port

3) system name

4) j2ee instance

5) SCS instance

I do not know how to get there and if it will help me. Where is this Windows menu.

Why is it like this? Ideally it should http://<host name>:<J2EE five digit port> and all links should work from this default page.

It is not happening.

Can anybody please help me out?

Regards.

SC

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

There is not any inconsistency all URL opens with http://localhost:5<inst#>00 .

Have you assigned proper roles to j2ee_admin.This is some role called BC_JSF etc you have to assign it.

http://<host name>:< port> here the port name is again 5<inst#>00.You are opening the URL locaaly or from a client machine.

Second reason is may be ur host name is not resolved by the DNS so in ur host file give the entry of hostname and IP address

Reward points if usefull

Former Member
0 Kudos

Thank you to both for a prompt and detail reply.

I will try this today.

I have awarded points.

Thank you.

Sume

Former Member
0 Kudos

Thank you.

I did not do anything and all is working fine now. I can open same link with both localhost or <host name>.

I do not why it was working earlier. Thank you.

SC

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello Sume,

First I would like to suggest you to check the meaning of the following parameters:

icm/HTTP/j2ee_0 = PREFIX=/,HOST=localhost,CONN=0-500,PORT=5$$00

http://help.sap.com/saphelp_nw2004s/helpdata/en/20/d0f83b4a91ce5ce10000000a11402f/frameset.htm

icm/server_port_0 = PROT=HTTP,PORT=80$$

http://help.sap.com/saphelp_nw2004s/helpdata/en/25/7e153a1a5b4c2de10000000a114084/frameset.htm

Basically in the instance profile with this parameters you specify the behavior of the ICM. Therefore when you set icm/server_port_0 = PROT=HTTP,PORT=8001 the ICM intercepts the request and sends it to the J2EE Engine. Your problem comes from the fact that when you send request to port 8001 it goes to the ICM and then depending from the configuration of the ICM the request migh be forwarded to the J2EE Engine. The problem with the System Information page is in the URI:

http://10.48.37.113:50100/sap/monitoring/SystemInfo

The ICM is configured to send request which start with <hostname>:<port>/sap/ to the ABAP. Therefore this particular link is not working because the request is not send to the J2EE Engine.

The HTTP ports for the J2EE Engine are configured on the dispatcher node with the Visual Admin. To configure it start the visual admin and on the left side of the screen choose Cluster - <SID> - Dispatcher – Services – HTTP Provider. There you could see the property Ports which sets the HTTP & HTTPS ports for the J2EE Engine. For example on my system the value is: (Port:50100,Type:http)(Port:50101,Type:ssl)

Regards,

Ventsi Tsachev

Technology Development Support (J2EE Engine)

SAP Labs, Palo Alto, Ca (USA)