How To Configure IIS 6 With Tomcat And Jboss Using Isapi Redirect dll Connector On Windows Server

By | October 14, 2009

How To Configure IIS 6 With Tomcat And Jboss Using Isapi Redirect dll  Connector On Windows Server

Managing the domains on windows IIS and redirecting them to Java server  (tomcat, jboss) java applications is done with the help of isapi redirect dll. Redirection to the java server will not make a difference on the url, we are able to browse the site url using the 80 port.

This will help us to, divide the traffic between iis and java web server. Java applications can be able to serve from Java server and normal pages are able to serve from iis. Through iis we will get a good control on the domains. We are able to host multiple domains on iis and manage there needs.

To accomplish the redirection of 80 port to 8080 port we need to configure and load isapi redirect dll on iis.

Windows IIS 6 with Tomcat and Jboss with Isapi

001.1

Download Java jre and install. Java is required for tomcat and jboss to function.

Once java installation is completed. We need to proceed with system variable setup.

001.2

Set JAVA_HOME system variable path.

001.3

Set Java installation path on the windows system variable.

002

Download isapi redirect exe executable file from ” http://archive.apache.org/dist/tomcat/tomcat-connectors/jk/binaries/win32/jk-1.2.14/isapi_redirect-1.2.14.exe “.

003

Close all existing IIS managers. Run the application.

004

Change the installation location from program folder.

005

I have select C:ISAPI as the default installation location for the isapi application. We are able to operate isapi application independently.

006

Download isapi redirect dll file from apache website. Don’t forget to select the dll file according to the system architecture.

007

Select the isapi_redirect-1.2.28.dll (if new version is available select that) from

” http://www.apache.org/dist/tomcat/tomcat-connectors/jk/binaries/ “.

008

009

Rename and save isapi_redirect-1.2.28.dll into the bin folder of isapi application installation folder (C:ISAPIbin).

010

Rename the downloaded isapi_redirect.dll and replace the existing old dll file.

011

Open IIS Manager. Go to default web site. We can view a new virtual directory “jakarta” under the default web site.

012

Open default web site properties. Go to isapi filter tab. Green status indicate our new jakarta file name with the path C:/ISAPI/bin/isapi_redirect.dll is loaded correctly. Some times iis restart is required for loading the module.

013

Go to Web Service Extension and allow the newly added isapi_redirect.dll. Add the Extension name “jakarta”. Add file. Path point to our isapi_redirect.dll (C:ISAPIbinisap_redirect.dll)

014

Set extension status to allow.

015

Add /examples/*=wlb to uriwokermap.properties (tomcat example path). This indicate the java application path. Add the path according to our application.

016

Opening tomcat web server on http://localhost:8080/examples/ url.

017

Opening http://localhost/examples/ bypassing 8080 port.

Same setting are done for Jboss servers.

018

Starting Jboss server.

020

Opening jboss url http://localhost:8080/jmx-console/ on 8080 port.

021

Add /jmx-console/*=wlb on uriworkermap.properties.

022

Opening Jboss url http://localhost/jmx-console/ bypassing 8080 port.

Logs

logfile

1. Create a log file in the name of isapi_redirect.log “C:ISAPIlogisapi_redirect.log”

2. Give IIS user read,write permission on C:ISAPI.

*Errors can viewable on isapi_redirect.log. Logging levels -(debug,info,error) can be change on isapi application windows registry.

registery

Logging levels -(debug,info,error) can be change on isapi application windows registry.

isapienable

While configuration some time 404 error will be show while browsing. Try allow all ISAPI web extensions and try to locate the errors from logs.

Cheers!

Melbin Mathew

www.talk2melbin.com

Melbin Mathew

I am Melbin Mathew, Systems Engineer from Kerala, India. I live with my parents, daughter and my wonderful wife. I graduated in 2004 with a bachelor’s degree in Electronics and Hardware from Mahatma Gandhi University, Kottayam and completed certification in MCITP, RHCE, CCNA, VCP ...Read More
Category: Windows

About Melbin Mathew

I am Melbin Mathew, Systems Engineer from Kerala, India. I live with my parents, daughter and my wonderful wife. I graduated in 2004 with a bachelor’s degree in Electronics and Hardware from Mahatma Gandhi University, Kottayam and completed certification in MCITP, RHCE, CCNA, VCP ...Read More

  • Ryan

    Huge help Melbin! I needed to get IIS working with JBoss and this did the trick. Thanks!

  • DNS

    This helped me too.

    the update on uriworkermap.properties file helped in resolving a bottleneck

    • http://www.talk2melbin.com Melbin Mathew

      Thanks for the feedback.

      Please feel free to review my other posts.

      Thanks,

      Melbin Mathew
      Talk2Melbin