Wednesday, July 13, 2005

Setup Tomcat with Apache

Requires following steps
1. install JDK ,
j2se 5.0

2. install Apache http server
Apache 2.0

3. install Tomcat
Tomcat 5.x
Be sure to use j2se 5.0 for Tomcat 5. Otherwise a compatibility package needs to be installed.
Without compatibility package, tomcat 5 will not run with earlier version of j2se.

Compatibility package:
unzip it can copy to Tomcat directory

After installation, if everything is right, following pages can be viewed:

4. install a connector, in this case JK
copy to the ${apache_home}/modules, rename it to

5. configure and test

Add following line to ${tomcat_home}/conf/server.xml, in the <Engine> section,
<Listener className="org.apache.jk.config.ApacheConfig" modjk="C:/Program Files/Apache Group/Apache2/modules/" />

Create a file ${tomcat_home}/conf/jk/

Add a line to the end of ${apache_home}/conf/httpd.conf
Include "C:/Program Files/Apache Software Foundation/Tomcat 5.5/conf/auto/mod_jk.conf"

Using Apache HTTP with Apache Tomcat(

Server Configuration Reference

For application deployment (Application directory structure setup)

Jakarta Tomcat Connector - Apache HowTo

Jakarta Tomcat Connector - Workers HowTo

No comments: