You are on page 1of 3

DOCS For Apache Servlets are Java programming language objects that dynamically process requests and construct

responses. The Java Servlet API allows a software developer to add dynamic content to a Web server using the Java platform
The Servlet Container is a compiled, executable program. The container is the intermediary between the Web server and the servlets in the container. The container loads, initializes, and executes the servlets. When a request arrives, the container maps the request to a servlet, translates the request into C++ objects, and then passes the request to the servlet. The servlet processes the request and produces a response. The container translates the response into the network format, then sends the response back to the Web server. The Container is designed to perform well while serving large numbers of requests. A container can hold any number of active servlets, filters, and listeners. Both the container and the objects in the container are multithreaded. The container creates and manages threads as necessary to handle incoming requests. The container handles multiple requests concurrently, and more than one thread may enter an object at a time. Therefore, each object within a container must be threadsafe.

Downloading the software

Download and install all software from the Apache web site. Download Apache from: http://www.apache.org Note: Make sure that Dynamic Shared Object (DSO) Support is enabled when you compile Apache. For more information, see the Apache documentation. Download Tomcat from: http://jakarta.apache.org/tomcat Download the Apache Jakarta Tomcat Connector from: http://jakarta.apache.org/ AIXSee the information in To build mod_jk.so on page 9. WindowsCopy the connector to <apache_install_dir>\modules. Solaris, Linux, and HP-UXCopy the connector to: <apache_install_dir>/modules. Make sure that the connector file name is mod_jk.so. For UNIX, use the chmod +x command to make this file executable.

Configuring Apache

Add the following line to the end of the httpd.conf file: Include <tomcat_install_dir>/conf/jk/mod_jk.conf The httpd.conf file is located in the <apache_install_dir>\conf directory.
Important: Install the mid tier under this directory: <tomcat_install_dir>\webapps\arsys.

Solaris and LinuxConfiguring Apache and Tomcat


After you install Apache and Tomcat, you must configure them.

Configuring Apache and Tomcat

To configure Apache and Tomcat, you must create files and add specific content to them. " To configure Apache and Tomcat 1 Create the workers.properties file in the <apache_install_dir>/conf directory and add the following content to the file: workers.tomcat_home=<tomcat_install_dir> workers.java_home=<java_install_dir> ps=/ worker.list=default worker.default.port=8009 worker.default.host=localhost worker.default.type=ajp13 worker.default.lbfactor=1
2 Edit the httpd.conf file, which is in the <apache_install_dir>/conf directory. a Add the following line to the LoadModules section:

LoadModule jk_module modules/mod_jk.so b Add the following content to the end of the file: # # Mod_jk settings # JkWorkersFile "conf/workers.properties" JkLogFile "logs/mod_jk.log" JkLogLevel error JkMount /jsp-examples default JkMount /jsp-examples/* default JkMount /arsys default JkMount /arsys/* default # End of mod_jk settings

Installing Remedy Mid Tier

Before you configure Tomcat, install Remedy Mid Tier on the same system where you are installing the web server. For installation information, see the Installing AR System guide. Important: Install the mid tier under this directory: <tomcat_install_dir>/webapps/arsys.

Setting the library path

Add the following line to the catalina.sh file, located in the <tomcat_install_dir>/bin directory: LD_LIBRARY_PATH=<midtier_install_dir>/WEB-INF/lib;

export LD_LIBRARY_PATH

UNIXTesting the configuration


Use this procedure to test the configuration on UNIX and Linux. " To test the configuration Navigate to the <tomcat_install_dir>/bin directory. To start Tomcat, enter the following command: ./startup.sh. Navigate to the <apache_install_dir>/bin directory. Start Apache by entering the following command: ./apachectl start. Open a browser. Enter the following sample URLs to test configurations: Tomcat server or Apache server: http://<webserver or hostname of installation server>:<port> JSP samples: http://<webserver or hostname of installation server>:<port> /jsp-examples/ Mid tier: http://<webserver or hostname of installation server>:<port> /arsys/shared/config/config.jsp
1 2 3 4 5 6

You might also like