{"id":609,"date":"2004-06-25T14:12:04","date_gmt":"2004-06-25T18:12:04","guid":{"rendered":"http:\/\/wordpress.cephas.net\/?p=609"},"modified":"2004-06-25T14:12:04","modified_gmt":"2004-06-25T18:12:04","slug":"getting-iis-5x-tomcat-5x-to-play-nice","status":"publish","type":"post","link":"https:\/\/cephas.net\/blog\/2004\/06\/25\/getting-iis-5x-tomcat-5x-to-play-nice\/","title":{"rendered":"Getting IIS 5.x &amp; Tomcat 5.x to play nice"},"content":{"rendered":"<p>Just for posterity&#8217;s sake, directions on how to get <a href=\"http:\/\/www.iisanswers.com\/articles\/IIS51.htm\">IIS 5.1<\/a> (ie: Windows XP Professional) and <a href=\"http:\/\/jakarta.apache.org\/tomcat\/tomcat-5.0-doc\/index.html\">Tomcat 5<\/a> to play nicely. The directions assume that you have Tomcat 5.x and IIS 5.x installed and functioning.<\/p>\n<p>a) Download Tomcat Web Server Connector JK 2 (<a href=\"http:\/\/apache.swift-networks.com\/jakarta\/tomcat-connectors\/jk2\/binaries\/win32\/\">download<\/a>)<\/p>\n<p>b) extract the isapi_redirector2.dll to the <code>bin<\/code> directory of your Tomcat installation.<\/p>\n<p>c) add a Virtual Directory in IIS called &#8216;jakarta&#8217;. Point the Local Path to the <code>bin<\/code> directory of your Tomcat installation (on my system this is: C:\\Program Files\\Apache Software Foundation\\Tomcat 5.0.25\\bin\\).  Give the Virtual Directory <code>Scripts &amp; Executables<\/code> execute permissions.<\/p>\n<p>d) Create 2 text files in the \/conf\/ directory of your Tomcat installation called workers2.properties and jk2.properties.  Here is a sample workers2.properties:<br \/>\n<code><br \/>\n[channel.socket:localhost:8009]<br \/>\ninfo=Ajp13 forwarding over socket<br \/>\ntomcatId=localhost:8009<br \/>\n[uri:\/samples\/*]<br \/>\ninfo=Map the \/samples director<br \/>\n<\/code><br \/>\nYou&#8217;ll need to add anything you want mapped from IIS to Tomcat to the [uri:\/yoursite] section. Here is a sample jk2 properties file:<br \/>\n<code><br \/>\n# The default port is 8009 but you can use another one<br \/>\n# channelSocket.port=8019<br \/>\n<\/code><\/p>\n<p>e) Edit your registry: 1) Create a key: HKLM\\\\SOFTWARE\\\\Apache Software Foundation\\\\Jakarta Isapi Redirector\\\\2.0.  2) Add string values for (no apostrophes) &#8216;extensionUri&#8217;, &#8216;serverRoot&#8217;, &#8216;workersFile&#8217;, &#8216;authComplete&#8217;, and &#8216;threadPool&#8217;. 3) Update the string values for extensionUri to be &#8216;\/jakarta\/isapi_redirector2.dll&#8217;, serverRoot to be the root of your Tomcat installation (on my system this is &#8216;C:\\Program Files\\Apache Software Foundation\\Tomcat 5.0.25&#8242;), threadPool to be &#8217;20&#8217;, and workersFile to be the location of your Tomcat installation + &#8216;conf\\workers2.properties&#8217; (which on my system turns out to be this: &#8216;C:\\Program Files\\Apache Software Foundation\\Tomcat 5.0.25\\conf\\workers2.properties&#8217;.<\/p>\n<p>f) Restart IIS and Tomcat and you should be golden!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Just for posterity&#8217;s sake, directions on how to get IIS 5.1 (ie: Windows XP Professional) and Tomcat 5 to play nicely. The directions assume that you have Tomcat 5.x and IIS 5.x installed and functioning. a) Download Tomcat Web Server Connector JK 2 (download) b) extract the isapi_redirector2.dll to the bin directory of your Tomcat &hellip; <a href=\"https:\/\/cephas.net\/blog\/2004\/06\/25\/getting-iis-5x-tomcat-5x-to-play-nice\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Getting IIS 5.x &amp; Tomcat 5.x to play nice<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[3,12],"tags":[],"_links":{"self":[{"href":"https:\/\/cephas.net\/blog\/wp-json\/wp\/v2\/posts\/609"}],"collection":[{"href":"https:\/\/cephas.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cephas.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cephas.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cephas.net\/blog\/wp-json\/wp\/v2\/comments?post=609"}],"version-history":[{"count":0,"href":"https:\/\/cephas.net\/blog\/wp-json\/wp\/v2\/posts\/609\/revisions"}],"wp:attachment":[{"href":"https:\/\/cephas.net\/blog\/wp-json\/wp\/v2\/media?parent=609"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cephas.net\/blog\/wp-json\/wp\/v2\/categories?post=609"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cephas.net\/blog\/wp-json\/wp\/v2\/tags?post=609"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}