Customer Service | Training | Contact Us
Welcome!
Login
Search Options   products areas display

Which products should be considered?

All Products

ArcCAD
ArcEditor
ArcExplorer
ArcGIS Engine
ArcGIS Explorer
ArcGIS Image Server
ArcGIS Mobile
ArcGIS Server
ArcIMS
ArcInfo Desktop
ArcInfo Workstation
ArcLogistics Route
ArcPad
ArcPad Application Builder
ArcReader
ArcSDE
ArcView
ArcView 3.x
ArcWeb Services APIs
ArcWeb Toolbar for ArcGIS
Atlas GIS
BusinessMap
BusinessMap Pro
GIS Portal Toolkit
Job Tracking for ArcGIS
MapIt
Maplex
MapObjects -- Java
MapObjects -- Windows
MapObjects IMS
MapObjects LT
MapStudio
Military Overlay Editor
NetEngine
PC ARC/INFO & DAK
PLTS
RouteMap
RouteMap IMS
SDE
Tracking Server

    Remember these settings for each visit More info
You are here:

Technical Article   Install:  Install Apache 2.0.48 with Tomcat 5.0.27 with mod_jk2 using J2SDK 1.4.2 for ArcIMS 9.0 on Windows

Article ID: 28450
Software:  ArcIMS 9.0
Platforms:  Windows 2000, XP, 2003Server

Requirements

Instructions provided are for the installation and configuration of Apache 2.0.48 with Tomcat 5.0.27 using J2SDK 1.4.2 for ArcIMS 9.0 on Windows.

For specific information for the installation of ArcIMS, see the product's Install Guide.

This installation will require the following:
• A Windows based server
Java 2 SDK, Standard Edition 1.4.2
Apache Web server version 2.0.48
Apache Tomcat 5.0.27
• ArcIMS Installation CD

 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.

 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. -show me-
    Summary
    The following is a list of documents for uninstalling third-party software used in conjunction with ArcIMS on Windows. The documentation pertains to Web server and servlet engine versions that are supported for use with ArcIMS. For uninstalling other Web server and servlet engine software products, review the according third-party documentation.
    Procedure
    ServletExec:

    New Atlanta's ServletExec Documentation
    %ArcIMSDVD%\ServletExec\ServletExec_Installation_Guide.pdf
    %ArcIMSDVD%\ServletExec\ServletExec_User_Guide.pdf

    Apache Tomcat:

    Apache Tomcat Documentation

    Apache Web Server:

    Apache Web Server Documentation

    JRun:

    Adobe JRun Documentation

    IIS:

    Uninstalling IIS

    WebLogic Web Server:

    BEA WebLogic Documentation

    Java SE Development Kit:

    Java SE Documentation

    JBoss:

    JBoss Documentation

    Oracle Application Server:

    Oracle Documentation

    Sun Java System Application Server:

    Sun Java System Application Server Documentation

    Sun Java System Web Server:

    Sun Java System Web Server Documentation

    WebSphere Application Server:

    WebSphere Application Server Documentation

    1. Install Java 2 SDK 1.4.2 -show me-

      A. Click J2SDK 1.4.2 to download Sun Java 2 SDK, Standard Edition, version 1.4.2.

      B. Click 'Download' in the SDK column for the Windows version.

      C. Accept the license agreement.

      D. Click on Windows Offline Installation, the first option, to download j2sdk-1_4_2-windows-i586.exe.

      E. Run the program after it has finished downloading.

      F. Accept all of the installation program defaults, unless changes are required.
    2. Install Apache 2.0.48 -show me-

      A. Click Apache Web server version 2.0.48 and download the file 'apache_2.0.48-win32-x86-no_ssl.msi'.

      B. Navigate to the folder where the file was downloaded and double-click it to run the installation.

      C. At the 'Welcome' screen, click Next.

      D. At the License Agreement screen, read and accept the terms of the license agreement. Click Next.

      E. At the 'Read This First' screen, click Next.

      F. At the 'Server Information' screen, type in the Network Domain, Server Name or computer name and the e-mail address of the administrator.

      G. Select 'for All Users, on Port 80, as a service - Recommended'. Click Next.

      H. At the Setup Type screen, select Typical and click Next.

      I. At the Destination Folder screen, click Change to specify the installation location. For example, <drive>:\Apache. Click Next.

      J. At the 'Ready to Install' screen, click Install.

      K. At the 'Installation Completed' screen, click Finish.

      L. Modify the httpd.conf file. Click Start > Programs > Apache HTTP Server 2.0.48 > Configure Apache Server > Edit the Apache httpd.conf Configuration File.

      M. 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


      N. Save the file and close the window.

      O. 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.

      P. Open the Services window.

      Q. 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.

       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

    3. Install Tomcat 5.0.27 -show me-

      A. Download and install Tomcat 5.0.27 using the following link: Apache Tomcat 5.0.27 Download Site

      B. Click on 'jakarta-tomcat-5.0.27.exe' to download the file and save it on the local machine.

      C. Navigate to the folder where the file was downloaded and double-click 'jakarta-tomcat-5.0.27.exe'.

      D. Click Next to continue.

      E. Read the License Agreement and click 'I Agree'.

      F. At the 'Choose Components' dialog click on the '+' to expand 'Tomcat', then check 'Service' to be installed. Leave the other options as the default.

      G. Click Next.

      H. Type <drive>:\Tomcat5027 for the installation directory and click Next.

       Do not install Tomcat under Program Files, or other paths containing spaces, or problems may occur.

      I. Use the default settings at the Configuration dialog. Enter a password for the Tomcat Administrator. No Windows login is required. Click 'Next'.

      J. Click 'OK' to confirm the path of the JVM installed on the machine. It should be the location of the Java Runtime Environment: for example, C:\Program Files\Java\j2re1.4.2

       If it does not default to a path, cancel the Tomcat installation and verify a valid Java 2 SDK is installed.

      K. Click Install to continue, then click Finish at completion.

      L. Navigate to the Environment Variables.

      M. Click 'New' Under System Variables. When prompted for Variable Name, type JAVA_HOME

        This is case sensitive.

      When prompted for Variable value, type the path where Java 2 SDK is installed; for example, <drive>:\j2sdk1.4.2, and click OK.

      N. Create another system environment variable called CATALINA_HOME

        This is case sensitive.

      When prompted for Variable value, type the path where Jakarta Tomcat 5.0.27 is installed; for example: <drive>:\Tomcat5027, and click OK.

      O. Scroll to Path, while in in the System Variables panel, select it, and click Edit. In the Variable Value text box, append the following to the end of the text, including the semi-colon:
      ;%JAVA_HOME%\bin

       Verify that old references to JAVA_HOME; for example, <drive:>\jdk1.3.1 or similar, in the path variable have been removed.

      P. Click 'OK' twice to close the Properties window.

       Click Here for additional resources on installing the Tomcat Servlet Engine.

    4. Configure Apache 2.0.48 with Tomcat 5.0.27. -show me-

      A. Click on the following link to download the Mod_JK2 configuration files for Apache and Tomcat: Tomcat5027_Apache2048_IMS9_win.zip

      B. Extract the contents of the zip file to a temporary location on your hard drive.

      C. Copy the mod_jk2.so file to your Apache Modules directory. For example: <drive>:\apache\apache2\modules

      D. Copy the workers2.properties file to your Apache Conf directory. For example: <drive>:\Apache\Apache2\conf

      E. Modify the httpd.conf file. Click Start > Programs > Apache HTTP Server 2.0.48 > Configure Apache Server > Edit the Apache httpd.conf Configuration File.

      F. 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

      G. Save and close the file.

      UPDATE REGISTRY
      H. Doubleclick on the extracted Win200x_XP_IMS90_Tomcat5027.reg file to add the necessary information to the registry.

       If Tomcat was installed to a location other then C:\Tomcat5027, please first edit the registry file in Notepad with the different path.


      I. Click Yes to confirm.

      RESTART SERVICES
      J. Open the Services window.

      K. Start and stop the services in the following order:
      K1. Stop Apache2
      K2. Stop Apache Tomcat
      K3. Start Apache Tomcat
      K4. Start Apache2
    5. Verify that the Tomcat installation was successful. -show me-

      Enter the following into a Web browser. Note: This is case sensitive.

      http://<your_machine_name>/servlets-examples/servlet/HelloWorldExample


      A page should display that says "Hello World" if the test is successful.


       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. Refer to the ArcIMS Installation Guide for more information.
    7. Install any Service Packs available for ArcIMS 9.0 before continuing. They are available for download at the
      ArcIMS Patches and Service Packs Website
    8. To configure ArcIMS 9.0, run the ArcIMS Post Installation. Refer to the ArcIMS 9.0 Installation Guide, Step 3b. -show me-

      A. Select the Typical Post Installation Option.

      B. At the Web Server-Servlet Engine Configuration dialog box, select 'I will manually configure my Web server /servlet engine'. Click Next.

      C. Finish the Post Installation.
    9. Configure the ArcIMS Servlet Connector for Tomcat 5.0.27 -show me-

      A. Stop the Apache and Tomcat services from the Windows services Panel.

      B. Navigate to <ArcIMS Installation location>\ArcIMS\Connectors\Servlet and copy the file arcimsservletconnector.war file to the <drive>:\Tomcat5027\webapps directory.

      C. In the <drive>:\Tomcat5027\webapps directory rename the arcimsservletconnector.war to servlet.war

      D. Start the Tomcat service again. The servlet.war file will automatically expand to a folder with the same name.

      E. Go to the expanded <drive>:\Tomcat5027\webapps\servlet\WEB-INF\classes directory.

      F. In a text editor, open the file Esrimap_prop.

      G. Change the AppServerMachine variable "APPSMACHINE" to the name or IP address of the machine where ArcIMS Application Server is installed. Change the AppServerClientPort if you are using a non-default client port.

       Similar steps are necessary to deploy the ArcIMS Service Administrator (esriadmin.war), Metadata Explorer (metadataexplorer.war and the WMS Connector (wmsconnector.war). Please see the Installation Guide and ArcIMS Help for more information.

      H. Save and close the Esrimap_prop file.

      CREATE VIRTUAL DIRECTORIES

      I. In a text editor (such as Notepad), open <ArcIMS Installation Directory>\ArcIMS\Common\ApacheAlias.txt and copy the contents of the file. Close the file.

      J. In a text editor (such as Notepad), open <Drive>:\Apache\Apache2\conf\httpd.conf. Under the line:

      Alias /icons/ "<Apache Installation Directory/Apache2/icons/"

      Paste the lines from the ApacheAlias.txt file.

       Replace the paths in these lines with the appropriate paths where necessary.

      K. Save and close the file.
    10. Verify that the ArcIMS installation was successful. -show me-

      A. Click Start > Programs > ArcGIS > ArcIMS > ArcIMS Diagnostics. The ArcIMS Diagnostics page displays.

      B. Verify the Web server protocol and Web server name are correct, including the domain and port number. The default is port 80.

      C. 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

       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.


    Created: 12/29/2004
    Last Modified: 12/29/2008

    This website's graphical display is now viewable only with W3C standards-compliant browsers, but the content is accessible to all browsers and Internet devices. View our supported browser matrix for more information on our website display.