Configuring HTTP Apache Server and Tomact/ Jboss AS Application server

HTTP Apache

Download mod_jk ( is a Tomcat connector.) Download HTTP Apache server.

And below I am describing the ways to configure mod_jk, HTTP Apache and Tomcat/Jboss AS

1). After downloading mod_jk rename this file as

2). Place this file in the installed directory of apache in the below specified path –


3). Create the below mentioned files in the conf directory at the specified path


4). Open the httpd.conf file and include a line to load the mod-jk.conf file at the time when server starts.

Include conf/mod-jk.conf

5). Open the mod_jk.conf file and enter the below mentioned lines-

# Load mod_jk module 
# Specify the filename of the mod_jk lib 
LoadModule jk_module modules/ 
# Where to find 
JkWorkersFile conf/ 
# Where to put jk logs 
JkLogFile logs/mod_jk.log 
# Set the jk log level [debug/error/info] 
JkLogLevel debug 
# Select the log format 
JkLogStampFormat "[%a %b %d %H:%M:%S %Y]" 
# JkOptions indicates to send SSK KEY SIZE 
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories 
# JkRequestLogFormat 
JkRequestLogFormat "%w %V %T" 
# Mount your applications 
JkMount /application/* node1 
# You can use external file for mount points. 
# It will be checked for updates each 60 seconds. 
# The format of the file is: /url=worker 
# /examples/*=loadbalancer 
JkMountFile conf/ 
# Add shared memory. 
# This directive is present with 1.2.10 and 
# later versions of mod_jk, and is needed for 
# for load balancing to work properly 
JkShmFile logs/jk.shm 
# Add jkstatus for managing runtime data 

JkMount status
Order deny,allow
Deny from all
Allow from 

JkMountCopy All

This file loads the file at the time of server start and describes the path of properties files to read and other log and other file, the short description written there describes all.

6). Open the and enter the below mentioned lines in this file-

# Define list of workers that will be used 
# for mapping requests worker.list=node1,status 
# Define template 
# Define Node1 
# modify the host as your host IP or DNS name. 
# Status worker for managing load balancer 

7). Open the and enter these few lines which details about the context root which we are going to use in our application.

# Simple worker configuration file 
# Mount the Servlet context to the ajp13 worker 

Look the entries for myproject.

8-a). Connecting with Tomact

Now one last change in the server.xml file in Tomact, this file you can find at the .plugins folder of the Eclipse in side the look or folder which conatins the name tomcat , inside that tomcat and then conf

Open the server.xml file and look for the line

Comment this line and enter this line in place of that


Here jvmRoute is node1 because we have defined this list of workers of Tomcat in the Here your configuration ends, Now restart the Apache HTTP Server and than Tomcat server to view the changes.

Go and hit the URLs-


8-b). Connecting with Jboss AS

In my machine I have installed a external Jboss As 4.2.3.GA at the location C:dev\server\, so with reference to this localion I have given the path where my server.xml file resides. And I have also deployed my tjcandidate and tjemployer at the path C:\dev\server\jboss-4.2.3.GA\server\all\deploy\. At the folder location where you deploy the projects, there is a folder jboss-web.deployer which contains the server.xml file.

Open the server.xml file from the path –


Comment the below mention line same as done in Tomcat

And enter this line