Archive

Posts Tagged ‘riaforge’

IIS 8.5 Boncode Tomcat Connector

March 4th, 2016 No comments

This guide assumes you have already installed Tomcat Server 7/8. Tomcat offers a connector (mod_jk) but it’s very old and requires a lot of configuration. So I’ll explain how to install and configure the connector from Boncode that’s hosted on RiaForge. This specific example was for an installation of HP Service Manager running on Windows 2012 / IIS 8.5

Installation

Download the latest version from http://tomcatiis.riaforge.org
Extract the .zip-file to a temp folder (AJP13_v1026.zip)

Windows2012_IIS8.5_Tomcat_riaforge_connector_01

Run “dotnetfx35setup.exe” if .NET 3.5 is not yet installed on the server.

Execute “Connector_Setup.exe”

Windows2012_IIS8.5_Tomcat_riaforge_connector_02

Windows2012_IIS8.5_Tomcat_riaforge_connector_03

Windows2012_IIS8.5_Tomcat_riaforge_connector_04

Windows2012_IIS8.5_Tomcat_riaforge_connector_05

Windows2012_IIS8.5_Tomcat_riaforge_connector_06

Windows2012_IIS8.5_Tomcat_riaforge_connector_07

Windows2012_IIS8.5_Tomcat_riaforge_connector_08

Windows2012_IIS8.5_Tomcat_riaforge_connector_09

Windows2012_IIS8.5_Tomcat_riaforge_connector_10

Windows2012_IIS8.5_Tomcat_riaforge_connector_11

Windows2012_IIS8.5_Tomcat_riaforge_connector_12

Windows2012_IIS8.5_Tomcat_riaforge_connector_13

Configuration

The installer has copied the binaries and configuration file to “C:\Windows”

Windows2012_IIS8.5_Tomcat_riaforge_connector_20

Open the file “BonCodeAJP13.settings” and modify the content as below. Feel free to change the path to LogFiles.

<Settings>
  <Port>8009</Port>
  <Server>localhost</Server>   
  <MaxConnections>200</MaxConnections>
  <LogLevel>1</LogLevel>  
  <FlushThreshold>0</FlushThreshold>
  <EnableRemoteAdmin>False</EnableRemoteAdmin>
  <LogDir>E:\LogFiles\APPLogs\BoncodeAJP</LogDir>
  <EnableHTTPStatusCodes>True</EnableHTTPStatusCodes>
</Settings>

Make sure the IIS Application Pool user has write access on the LogDir folder!
A folder named “BIN” has been created in the root of your website. It will be empty so copy these 2 files in it:

  • C:\Windows\BonCodeAJP13.dll
  • C:\Windows\BonCodeIIS.dll

Windows2012_IIS8.5_Tomcat_riaforge_connector_21

Now we need to tell IIS which folders we want to forward to Tomcat. For HPSM this will be “smsso”. Create a new folder in the root of the website named “smsso”

Windows2012_IIS8.5_Tomcat_riaforge_connector_22

Copy the “BIN” folder in “smsso”

Windows2012_IIS8.5_Tomcat_riaforge_connector_23 Windows2012_IIS8.5_Tomcat_riaforge_connector_24

Now add a handler mapping in IIS. Go to the subfolder named “smsso” and add a new managed handler.

Click on image for full version

Click on image for full version

Request path: *
Type: [select BonCodeIIS…. from the dropdown]
Name: BonCodeAll

Click on image for full size

Click on image for full size

Run “iisreset” to reload the settings file

Categories: IIS Tags: , , , , , ,