English

How To: Install IIS 4.0/5.0 with Tomcat 4.1.29 using J2SDK 1.4.2 for ArcIMS 9.0 on Windows NT/2000/XP

Summary

Instructions provided are for the installation and configuration of IIS 4 or IIS 5 with Tomcat 4.1.29 using Java 2 SDK, version 1.4.2 for ArcIMS 9.0 on Windows NT/2000/XP.

Specific information for the installation of ArcIMS is included with the product's Install Guide.

This installation requires the following software:

A user account that has Administrator rights on the ArcIMS machine is required.

Before Beginning:

  • Familiarity with certain Windows tasks is required to install and configure ArcIMS. For details, see Common Windows tasks when installing ArcIMS.
  • For more information on the acronyms and terms used in this document, see the Glossary of terms used in ArcIMS Installation articles.
  • Review and follow steps 1 and 2 from the ArcIMS Installation Guide on the DVD. These two steps ensure that the system meets the minimum requirements and assist in planning the ArcIMS site configuration. To open the ArcIMS Installation Guide, launch the DVD menu and click 'ArcIMS Installation Guide'.

Procedure

ArcIMS 3.1, 4.0 or 4.0.1 must be uninstalled to install ArcIMS 9.0. The setup program for ArcIMS 9.0 on Windows will prompt for the removal of previously installed versions.

If ArcIMS components were distributed among several computers, it is recommended the uninstall program be manually run on each computer.

Warning:   
A supported Web server and Servlet Engine must be properly installed and configured before running the setup program for ArcIMS 9.0.
  1. Uninstall any unsupported versions of JDK/JRE, Web server and Servlet Engine.
    How To: Uninstall ArcIMS-related third-party software on Windows.
  2. Install J2SDK 1.4.2.
    1. Click J2SDK 1.4.2 to download Sun Java 2 SDK, Standard Edition, version 1.4.2.
    2. Click 'Download' in the SDK column for the Windows version.
    3. Accept the license agreement.
    4. Click the first option, Windows Offline Installation, to download j2sdk-1_4_2-windows-i586.exe.
    5. Run the program after it has finished downloading.
    6. Accept all of the installation program defaults, unless changes are required.
  3. Install IIS Web server, if it is not already installed.
    1. Click Start > Settings > Control Panel > Add/Remove Programs.
    2. Click Add/Remove Windows Components in the left panel.
    3. Check the box next to Internet Information Services (IIS) in the Windows Components screen, and click Next.
    4. Click Finish at the 'Completing the Windows Components Wizard' screen.
    5. Verify that IIS is installed by opening Internet Service Manager.
    6. Expand the directory tree under the machine name in the left panel. 'Default Web Site' should be listed; this is the Web server host used for ArcIMS.
      Note:
      Click here for additional resources on installing Microsoft's IIS Web Server.
  4. Install Tomcat 4.1.29.
    1. Download and install Tomcat 4.1.29 using the following link: Jakarta Tomcat 4.1.29 Download site
    2. Click 'jakarta-tomcat-4.1.29.exe' to download the file and save it on the local machine.
    3. Navigate to the folder where the file was downloaded and double-click 'jakarta-tomcat-4.1.29.exe'.
    4. Click OK to confirm the correct Java Development Kit.
    5. Read the License Agreement and click 'I Agree'.
    6. Check the NT Service on the Installation Options page and click Next.
    7. Type <drive>:\Tomcat4129 for the installation directory.
      Warning:   
      Do not install Tomcat under Program Files, or other paths with spaces, or problems may occur.
      
    8. Click Install.
    9. At the Test Install Setup screen, use the default settings. Enter a password for Tomcat Administration and click Next.
    10. Click Close to complete the installation.

      SET ENVIRONMENT VARIABLES:
    11. Navigate to the Windows Environment Variables. Consult Windows Help for assistance.
    12. Under System Variables, Click New. For the Variable Name, type: JAVA_HOME
      Note:
      This is case-sensitive.
      For Variable value, type the path where Java 2 SDK is installed; for example: <drive>:\j2sdk1.4.2, and click OK.
    13. Create another system environment variable called CATALINA_HOME
      Note:
      This is case-sensitive.
      For Variable value, type the path where Jakarta Tomcat 4.1.29 is installed; for example: <drive>:\Tomcat4129, and click OK.
    14. While in the System Variables panel, scroll to Path, select it and click Edit. In the Variable Value text box, append the following to the end of the text, including the leading semi-colon:
      ;%JAVA_HOME%\bin
      Note:
      Verify that old references to JAVA_HOME; for example, <drive:>\jdk1.3.1 or similar, in the path variable have been removed.
    15. Click OK twice to close the Properties window.
      Note:
      Click Here for additional resources on installing the Tomcat Servlet Engine.
  5. Configure Tomcat 4.1.29 with IIS 4/5.
    • DOWNLOAD CONFIGURATION FILES
      1. Click the following link to download the configuration files needed for IIS and Tomcat: Tomcat4129_IIS_IMS9_win.zip
      2. Extract the downloaded .zip file to a location on the harddrive.
    • INSTALL IIS REDIRECTOR FOR TOMCAT:
      1. In Windows Explorer, navigate to <drive>:\Tomcat4129\bin.
      2. Within the 'bin' folder, create a new folder and name it 'win32'.
      3. Copy the isapi_redirector.dll from the location where it was originally extracted, to the newly created win32 folder; for example <drive>:\Tomcat4129\bin\win32.
    • CONFIGURE PROPERTIES FILES:
      1. In a text editor, open the 'worker.properties' file from the temporary location.
        Note:
        Use Notepad to edit the properties files. Using other text editors for this step may cause a '404 Error, File not found' later in the installation.
      2. Verify that the 'worker.java_home' and 'worker.tomcat_home' variables have been set correctly. For example:
        worker.tomcat_home=<drive>:\Tomcat4129
        worker.java_home=<drive>:\j2sdk1.4.2
        
        Note:
        Make sure these paths accurately reflect the current set-up environment.
      3. Save and close the file.
      4. Copy both 'worker.properties' and 'uriworkermap.properties' from the temporary location and paste them into the directory: <drive>:\Tomcat4129\conf
    • MODIFY WEB.XML FILE
      1. In Windows, navigate to <drive>:\Tomcat4129\conf, and open the file 'web.xml' in a text editor.
      2. Search for the following text:
        <!-- The mapping for the invoker servlet -->
        <!--
        <servlet-mapping>
        	<servlet-name>invoker</servlet-name>
        	<url-pattern>/servlet/*</url-pattern>
        </servlet-mapping>
        -->
        
      3. Delete the comment lines '<!--' and '-->', so the code appears as shown in the example below:
        <!-- The mapping for the invoker servlet -->
        
        <servlet-mapping>
        	<servlet-name>invoker</servlet-name>
        	<url-pattern>/servlet/*</url-pattern>
        </servlet-mapping>
        
      4. Save and close the file.
    • CONFIGURE THE REGISTRY:
      Warning:   
      The instructions below include making changes to essential parts of your operating system. It is recommended that you backup your operating system and files, including the registry, before proceeding. Consult with a qualified computer systems professional, if necessary.
      
      Esri cannot guarantee results from incorrect modifications while following these instructions; therefore, use caution and proceed at your own risk.
      
      Note:
      The registry files extracted from the downloaded .zip file are intended to work with a default installation of Tomcat 4.1.29 in C:\Tomcat4129. If the drives or the installation directory was changed, open the according file in Notepad, and make the appropriate changes to reflect the current environment.
      1. Double-click on the registry file (*.reg) in the location where it was extracted to execute it.
        • For Windows NT - click WinNT_IMS90_Tomcat4129.reg
        • For Windows 2000 or XP - click Win200x_XP_IMS90_Tomcat4129.reg
      2. Click Yes, then OK. This should create the necessary registry keys for Tomcat.
    • CREATE JAKARTA VIRTUAL DIRECTORY:
      1. Open Internet Services Manager.
      2. In the left panel of the Console, under Internet Information Services, expand the contents for the '*host' machine name.
      3. Right-click 'Default Web Site' and select New > Virtual Directory. This opens the Virtual Directory wizard. Continue as follows:
        1. Click Next to continue.
        2. In the Alias box, type 'Jakarta' and click Next.
        3. For Directory, browse to: <drive>:\Tomcat4129\bin\win32, click OK, then click Next.
        4. Check the box to give the permissions: Execute, for example, ISAPI applications or CGI.
        5. Click Finish.
      4. Right-click 'Default Web Site' and select Properties. Continue as follows:
        1. In the dialog box, select the 'ISAPI Filters' tab.
        2. Click Add.
        3. In the Filter Properties dialog box, enter the Filter Name, for example, Jakarta.
        4. For the Executable, navigate to <drive>:\Tomcat4129\bin\win32\isapi_redirector.dll and click OK.
        5. Click Apply and close the Default Web Site Properties dialog box.
      5. Stop and Start IIS, ensuring that the Default Web Site is selected.
      6. Return to the ISAPI Filters tab and ensure that there is a green, upward arrow next to the Jakarta filter.
    • INTEGRATED WINDOWS AUTHENTICATION
      Warning:   
      If there is not a green arrow next to Jakarta filter, try stopping and re-starting the 'IIS Admin Service', including the WWW Publishing Service, from the Services panel. If the Jakarta filter still fails, do not proceed further. Go back and check the registry entries created in Step M.
      
      1. In IIS Manager, on the left panel of the window, navigate to Default Website > Jakarta.
      2. Right-click the Jakarta virtual directory and select properties.
      3. Select the File Security tab.
        1. Click Edit for Anonymous Access and Authentication Control.
        2. Uncheck Integrated Windows Authentication.
        3. Click OK.
        4. Click OK again.
      4. Close Internet Services Manager.
  6. Verify that the configuration of Tomcat was successful
    1. Open the Windows services panel. Select the Apache Tomcat 4.1 service from the list and start it, if not already started.
    2. Enter the following test URL into a browser.
      http://<your_machine_name>/examples/servlet/HelloWorldExample
      
      Note:
      This URL is case-sensitive.
      A page should display that says "Hello World" if the test is successful.
      Warning:   
      If this test fails, retrace the installation steps. It may be that the URL works if 'port 8080' is specified. This only indicates that the Tomcat Web server is working; the required redirect to IIS is failing. Do not proceed to install ArcIMS.
      
    3. In the Internet Services Manager, Right-click on Default Web Site, choose Properties and click on the ISAPI Filters tab. Verify that there is a green, upward arrow next to the Jakarta filter.
      Warning:   
      If there is not a green arrow next to Jakarta filter, try stopping and re-starting the 'IIS Admin Service' and 'WWW Publishing Service' from the Services panel. If the Jakarta filter still fails, do not proceed further. Go back and check the registry entries created in Step 5M.
  7. Install ArcIMS 9.0 from the installation CD. In the ArcIMS Installation Guide, see Step 3a.
  8. Run the ArcIMS Post Installation to configure ArcIMS 9.0 with IIS and Tomcat 4.1.29. In the ArcIMS Installation Guide, see Step 3b.
    Warning:   
    Stop the Tomcat service before continuing, or difficulties may arise during the Post Installation.
    
    AUTHORIZE ARCIMS
    Note:
    There are several options to authorize ArcIMS for use. Please see the Installation Guide, Step 3b for more information. The following steps cover one common option.
    1. Open a web browser and go to http://service.esri.com
    2. Click Product Registration and choose the according ArcIMS version to register the software.
    3. Enter the information requested and type the registration code in the field provided, for example ECP123456789. The registration code should have been sent in an e-mail.
      Note:
      If you did not receive a registration code for this product please contact Customer Service. Customers outside the USA should contact their ESRI International Distributor.
    4. An email will be sent with an authorization file attached, for example 123456789.ecp. Save the file in a directory on the ArcIMS machine.
    5. Launch the ArcIMS Post Installation and choose the Typical option.
    6. Choose the third option 'I have received an authorization file...' and click Next.
    7. Browse to the file received in Step D and click Next to authorize ArcIMS for use.
    8. Click Finish to exit the Software Authorization Wizard and continue with the ArcIMS Post Installation.
    CONFIGURE ARCIMS
    1. At the Web Server-Servlet Engine Configuration dialog box, select 'IIS with Tomcat 4.1.xx. Click Next.
    2. For the Servlet Engine Directory, enter the path where Tomcat was installed, for example: <drive>:\Tomcat4129
    3. Click Next.
    4. Click OK. The Web Server / Servlet engine configuration may take a few minutes to complete.
    5. Finish the Post Installation.
    6. Restart IIS and Tomcat in the Windows services panel.
  9. Verify that the ArcIMS installation was successful.
    1. Click Start > Programs > ArcGIS > ArcIMS > ArcIMS Diagnostics. The ArcIMS Diagnostics page displays.
    2. Verify the Web server protocol and Web server name are correct, including the domain and port number. The default is port 80.
    3. Test both components. The result for test 1 should be:

      IMS v9.0.0
      Build_Number=871.1714
      Version=9.0.0
      Test successful

      The result for test 2 should be:

      Version=9.0
      Build_Number=871.1957
      Test successful
      Note:
      If these tests are successful, the ArcIMS Application Server and ArcIMS Servlet Connector are configured correctly. If an error message is received, select the error number in the drop-down list and click View. The error number and a description displays. Follow the instructions in the description to fix the problem and try the Diagnostics tool again.
  10. For the final step to get ArcIMS running, refer to the ArcIMS Installation Guide, Step 5: "Configure ArcIMS".

Related Information