

Step 1: Download the Apache-Tomcat Connector Module -Īn Apache-Tomcat connector - JK1.2 module - which is an adapter module used by Apache to communicate with Tomcat (using AJP v1.3 protocol through TCP port 8009), can be downloaded from Tomcat mother site (⇒ Download ⇒ Tomcat Connectors ⇒ JK 1.2 ⇒ JK 1.2 Binary Releases ⇒ win32 ⇒ jk-1.2.xx ⇒ " mod_jk-1.2.xx-httpd-2.2.x.so"). I shall denote Tomcat's installed directory as $CATALINA_HOME (Catalina is the code name for Tomcat 5 and above).

Tomcat's shall contains two web contexts: " /examples" (Tomcat's servlets and JSP examples) and " /ws" (to be created by you).

I shall assume that Tomcat is installed in directory " d:\myproject\tomcat", runs on port 8080. I shall denote the apache installed directory as $APACHE_HOME. I shall assume that Apache is installed in directory " d:\myproject\apache", and runs on port 7000. I will only describe the JK1.2 module with Apache 2 here. There are a few adapter modules available, such as Apache JServ Protocol (AJP) v1.2 "JServ" module (outdated), AJP v1.3 "JK 1.2" module (in use) and "JK 2" module (deprecated). If so, it lets the adapter takes the request and forwards it to Tomcat, as illustrated below. When Apache receives an HTTP request, it checks if the request belongs to Tomcat.

