Summary
The Service Administrator fails to work if the Web server uses a port other than 80 to serve content.
Procedure
Two suggested work-arounds are shown below, both of which require changes to the logincheck.jsp file. This file may be located in two places depending on the servlet engine being used:
If not using Tomcat, then look in the <ArcIMS Installation Directory>/Administrator/esriadmin folder.
If using Tomcat, it should be in the <Tomcat Installation Directory>/webapps/esriadmin directory.
- Method 1 for working around this issue is to replace this line:
Code:
String site = request.getParameter("host");
with this line:
Code:
String site = "yourcomputer";
where yourcomputer is the name of the computer on which the ArcIMS Application Server runs.
This method is simpler, but problems may arise if the server name changes at a later date. - Method 2 for working around this issue is to implement Java code that truncates the ":<port number>" directive from the host name. This can be done by replacing this code:
Code:
String site = request.getParameter("host");
with this code:
Code:
String tempsite = request.getParameter("host");
int pos = tempsite.lastIndexOf(":");
String site = tempsite.substring(0,pos);