English

How To: Install Apache 2.0.48 with Tomcat 4.1.29 with mod_jk2 using J2SDK 1.4.2 for ArcIMS 9.0 on Windows NT/2000/XP

Summary

Instructions provided are for the installation and configuration of Apache 2.0.48 with Tomcat 4.1.29 with mod_jk2 using Java 2 SDK, v. 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 will require the following software:

A user account that has administrative privileges 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 J2DK/JRE, Web Server and Servlet Engine.
    How To: Uninstall ArcIMS-related third-party software on Windows.
  2. Install Java 2 SDK, Standard Edition Version 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 Windows Offline Installation, the first option, 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 Apache 2.0.48 Web server
    1. Click Apache Web server version 2.0.48 and download the file 'apache_2.0.48-win32-x86-no_ssl.msi'.
    2. Navigate to the folder where the file was downloaded and double-click it to run the installation.
    3. At the 'Welcome' screen, click Next.
    4. At the License Agreement screen, read and accept the terms of the license agreement. Click Next.
    5. At the 'Read This First' screen, click Next.
    6. At the 'Server Information' screen, type in the Network Domain, Server Name or computer name and the e-mail address of the administrator.
    7. Select 'for All Users, on Port 80, as a service - Recommended'. Click Next.
    8. At the Setup Type screen, select Typical and click Next.
    9. At the Destination Folder screen, click Change to specify the installation location. For example, <drive>:\Apache. Click Next.
    10. At the 'Ready to Install' screen, click Install.
    11. At the 'Installation Completed' screen, click Finish.
    12. Modify the httpd.conf file. Click Start > Programs > Apache HTTP Server 2.0.48 > Configure Apache Server > Edit the Apache httpd.conf Configuration File.
    13. Locate the line 'DirectoryIndex index.html' and add 'default.htm' and 'default.html' at the end so it reads:
      DirectoryIndex index.html index.html.var default.htm default.html
      
    14. Save the file and close the window.
    15. Verify that the installation was successful. Open a Web browser and type the computer or domain name. For example, http://machinename.

      The Apache page: "Seeing this instead of the website you expected?" should display.

      If the page does not display, check that Apache is running.
    16. Open the Services window.
    17. A service named Apache2 should be listed as started. If it isn’t, start it by clicking the triangle in the toolbar. Verify that the Apache installation is successful.
      Note:
      If the default Apache page still does not display, an error was made during one of the installation steps. Repeat the installation, or check the Apache Documentation. Additional resources on installing the Apache Web Server can be found here
  4. Install Tomcat 4.1.29 Servlet Engine
    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 Apache 2.0.48 with Tomcat 4.1.12
    1. Click the following link to download the Mod_JK2 configuration files for Apache and Tomcat: Tomcat4129_Apache2048_IMS9_win.zip
    2. Extract the contents of the zip file to a temporary location on your hard drive.
    3. Copy the mod_jk2.so file to your Apache Modules directory. For example: <drive>:\apache\apache2\modules
    4. Copy the workers2.properties file to your Apache Conf directory. For example: <drive>:\Apache\Apache2\conf
    5. Modify the httpd.conf file. Click Start > Programs > Apache HTTP Server 2.0.48 > Configure Apache Server > Edit the Apache httpd.conf Configuration File.
    6. Locate the line: #LoadModule ssl_module modules/mod_ssl.so and add the following line of code directly below it so it reads:
      #LoadModule ssl_module modules/mod_ssl.so
      LoadModule jk2_module modules/mod_jk2.so
      
    7. Save and close the file.
    8. Open the Services window.
    9. Start and stop the services in the following order:
      1. Stop Apache2
      2. Stop Apache Tomcat 4.1
      3. Start Apache Tomcat 4.1
      4. Start Apache2
    10. Enter the following into a Web browser.
      Note: This is case sensitive.
      http://<your_machine_name>/examples/servlet/HelloWorldExample
      
      A page should display that says "Hello World" if the test is successful.
      Warning:   
      Apache must run on the default port 80. If not, append the port number after the machine name in the URL. If the above test fails, recheck the installation steps for Apache and Tomcat. It may be that the URL works if users specify 'port 8080'. This only indicates that Tomcat is working. Do not proceed to install ArcIMS until this is working.
  6. Install ArcIMS 9.0 from the installation CD.
  7. Perform the ArcIMS Post Installation, Step 3a in the ArcIMS Installation Guide, to configure ArcIMS 9.0 with Apache and Tomcat.
    1. Select Typical as the Post Installation Option.
    2. At the Web Server-Servlet Engine Configuration, select Apache 2.0.4.x with Tomcat 4.1.xx (mod-jk2). Click Next.
    3. For Web Server Directory, enter the path where Apache 2.0.48 is installed; for example, <drive>:\Apache\Apache2
    4. For the Servlet Engine Directory, enter the path where Tomcat 4.1.29 is installed; for example, <drive>:\tomcat4129
    5. Click next. The Web server / Servlet Engine configuration may take a few minutes to complete.
    6. Restart the Web server and Servlet Engine from the services panel once the Post Installation is finished.
  8. 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.
  9. For the final steps to get ArcIMS running, refer to the ArcIMS Installation Guide, Step 5: "Configuring ArcIMS."