• IIS Admin Blog

  • How To Configure IIS 6.0 and Tomcat with the JK 1.2 Connector

9th September 2008

How To Configure IIS 6.0 and Tomcat with the JK 1.2 Connector

posted in IIS 6.0, Tomcat |

Some time ago I wrote an installation guide for Tomcat and IIS 6.0 using the JK2 connector which you can find elsewhere on this blog. However since I wrote that previous guide the JK2 connector for Tomcat has been deprecated and is no longer supported. In response to a number of questions and comments on my blog I have decided to write a new installation guide for Tomcat using the latest release of the JK 1.2 connector.

Update : I have also written a guide for installing Apache Tomcat with IIS 7.0 on Windows Server 2008 which you can find here : http://www.iisadmin.co.uk/?p=72

For the purposes of this guide I have used Java Runtime Version 6 Update 7, Apache Tomcat 6.0.18 and the JK 1.2.26 Connector.

You can download the software used in this guide here :

Java Version 6 Update 7
http://www.java.com/en/download/manual.jsp

Apache Tomcat
http://tomcat.apache.org/download-60.cgi

Tomcat Connectors (mod_jk) Downloads
http://tomcat.apache.org/download-connectors.cgi

Start by installing the Java runtime and accept the license agreement.

Then change the installation target folder to C:\Java and then click OK and wait while Java installs

Once you have installed Java you can start installing Tomcat. Double-click the apache-tomcat-6.0.18.exe file to invoke the Apache Tomcat Setup Wizard.

Choose a Custom installation and ensure that the Examples are selected as shown here. You wouldn’t necessarily want to install the sample applications in a production environment but we will be using them in this walkthrough so we need to install them.

Select to install Tomcat in the C:\Tomcat folder as shown here.

Leave the default HTTP/1.1 Connector port set to 8080 and choose a password for the admin account.

The setup wizard should find your Java installation automatically.

Click install and wait while Tomcat setup completes.

When the installation is complete click Finish.

Pages: 1 2 3

This entry was posted on Tuesday, September 9th, 2008 at 2:21 pm and is filed under IIS 6.0, Tomcat. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

There are currently 36 responses to “How To Configure IIS 6.0 and Tomcat with the JK 1.2 Connector”

Why not let us know what you think by adding your own comment! Your opinion is as valid as anyone elses, so come on... let us know what you think.

  1. 1 On September 12th, 2008, Tom Kaminski said:

    This worked very well. I was unable to get the earlier instructions to work but this was perfect. One issue I have though is a can’t get any new apps to work - tomcat is returning a 404 (IIS shows a 200). I did add my app to uriworkermap.properties as /newapp/*=wlb - else am I missing?

  2. 2 On October 3rd, 2008, Nick Price said:

    Thanks for the instructions! I set this up using Jboss on another application server and it worked perfectly.

    If anyone else gets 404 errors when they connect, you must match the URI worker mapping in the uriworkermap.properties file to the application context that is present on your jboss/tomcat server.

    eg, If you access the application on http://localhost:8080/yourjbossapp/ then you must have the uriworkermap as /yourjbossapp/*=worker
    Otherwise tomcat/jboss just returns 404 errors.

  3. 3 On November 9th, 2008, Sujith said:

    thanks yaar , great help.

  4. 4 On November 17th, 2008, Devin said:

    I’m getting the 404 error too. I am not installing this on the localhost - but rather an IP address of a website on the server. I want anything under that IP to work - my uriworkermap.properties file is set to /*=worker

    If I browse to the IP address, I get the standard Apache page - but when I go to http://myIPaddress/helloWorld.jsp, it gives me the apache 404 error (even though the file is there). I did have some confusion about which port I should be setting it to use - right now it works on localhost:8080 and the IP address i’m talking about. In the properties file I have it set to use :80 (where IIS is serving).

    Thanks

  5. 5 On December 6th, 2008, Guru said:

    I did the exact same things as you mentioned, but when I try to hit the example app through IIS I see a blank screen. The following is the contents of the log file.

    #Fields: date time s-sitename s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs(User-Agent) sc-status sc-substatus sc-win32-status
    2008-12-06 19:14:23 W3SVC1 67.78.61.43 GET /azenv.php - 80 - 221.192.199.36 Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.1) 404 0 64
    2008-12-06 19:14:35 W3SVC1 67.78.61.45 GET /azenv.php - 80 - 221.192.199.36 Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.1) 404 0 0
    2008-12-06 19:14:38 W3SVC1 67.78.61.42 GET /azenv.php - 80 - 221.192.199.36 Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.1) 404 0 64
    2008-12-06 19:14:38 W3SVC1 67.78.61.44 GET /azenv.php - 80 - 221.192.199.36 Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.1) 404 0 64
    2008-12-06 19:24:26 W3SVC1 127.0.0.1 GET /examples/servlets/servlet/HelloWorldExample - 80 - 127.0.0.1 Mozilla/5.0+(Windows;+U;+Windows+NT+5.2;+en-US;+rv:1.8.1.17)+Gecko/20080829+Firefox/2.0.0.17 404 0 3

  6. 6 On December 21st, 2008, DJ said:

    You are owesome. I am newbie to IIS.

    I spent six days and I was not able to figure out the problem. By referrring to your post, it has been resolved in 6 seconds. I was missing the last step of configuring web service extensions.

    By the way, can you explain why we need to configure webservice extension?

  7. 7 On January 7th, 2009, How to connect IIS with Tomcat to serve JSP through IIS6 - Serve JSP with IIS....sort of. - CatchBox.org said:

    [...] http://www.iisadmin.co.uk/?p=40 Posted 01-07-2009 18:25 by admin [...]

  8. 8 On February 5th, 2009, IISNewbie said:

    hi

    Its a good reference for IIS Tomcat integration.. but I need a help on how to perform the same when my IIS and JBoss / Tomcat servers are on different machines but same subnet tough…
    In this case if perform the same steps but modify the “host” entry in worker.properties entry will suffice. How can I create virtual directory where tomcat instance is on different machine?

    Please help.

    Thanks in advance

  9. 9 On February 12th, 2009, Omkar said:

    I have IIS setup with iis_redirect.dll on machine1
    and tomcat supporting ajp13 on machine2
    I have made the following change in workers.properties on machine1
    worker.ajp13w.host=machine2

    but still the redirection of requests from machine1 to machine2 is not working. Is there anything else that needs to be done?

  10. 10 On February 19th, 2009, Brenda said:

    Thank you for publishing clear instructions with a date! I also worked on this for days then found your post and fixed it in minutes.

  11. 11 On March 18th, 2009, Andrei said:

    Help! I get an “Incorrect function” message when I finally try to access the tomcat pages on IIS!

    Using IIS6 on WS2k3.

  12. 12 On March 18th, 2009, Paul Lynch said:

    Andrei,

    What do you see in the IIS log files ? What about the Tomcat log files ? I haven’t seen that error message before. Do the sample applications work ?

    Regards,

    Paul Lynch

  13. 13 On April 21st, 2009, Vetrik Kumaran said:

    Hi

    Its a good reference for IIS Tomcat integration.. but I need a help on how to perform the same when my IIS and Tomcat server are on different machines but same subnet tough…
    In this case if perform the same steps but modify the “host” entry in worker.properties entry will suffice. How can I create virtual directory where tomcat instance is on different machine?

    Please help.

    Thanks in advance

  14. 14 On June 3rd, 2009, maiminh said:

    Hello,

    Thank you so much for this How-To. It works fine in my server. Can you show me how to change the webapps folder?

    For example, I have a website with the WebRoot folder is D:\Websites\mysite contains ASP, PHP, Perl,… files in there. My developers can FTP to this folder.

    Now I want to put JSP pages on it. So my developers can FTP to the same folder?

    Is there any way to solve my case?

    Thank you

  15. 15 On June 10th, 2009, Michael Jones said:

    Hi there,

    I already had Tomcat 6 runnning on port 8080 with my webapps. I wanted to root through IIS, so I installed IIS 6 on my Windows 2003 server and then followed your instructions, but I am getting an “Internet Explorer cannot display the webpage” in my browser. Have checked with Netstat and something is listerning on port 80 and 8080. Both have same PID of 4. Can you suggest what the problem could be?

  16. 16 On June 10th, 2009, Paul Lynch said:

    Michael,

    You could try using a utility such as CurrPorts to find the process in question :
    http://www.nirsoft.net/utils/cports.html

    Regards,

  17. 17 On June 28th, 2009, Steven said:

    I have followed all of your steps but I still can’t get this to work. I have installed Tomcat and know it is working properly. IIS works fine until I configure the ISAPI filter. If I try to access any of the Tomcat example apps I get an HTTP 500 internal server error. I found the following error in the ISAPI log file under Tomcat:

    [Sun Jun 28 12:30:47.595 2009] [3172:4064] [info] jk_isapi_plugin.c (2405): Starting Jakarta/ISAPI/isapi_redirector/1.2.28
    [Sun Jun 28 12:30:47.595 2009] [3172:4064] [emerg] jk_isapi_plugin.c (2553): Unable to read worker file C:\Tomcat\conf\workers.properties.

    I have tried changing the permissions on this file and the conf directory but nothing seems to help. Do you have any idea what might be causing this error?

    Any help would be greatly appreciated.

    Thank you.

  18. 18 On June 30th, 2009, Paul Lynch said:

    Steven,

    The error in your ISAPI log file appears to indicate a permissions problem. Have you tried using Process Monitor to see if there are any access denied errors being reported at the NTFS file system level ?

    Regards,

    Paul Lynch

  19. 19 On July 14th, 2009, John Corrigan said:

    Thanks for publishing COMPLETE instructions that actually work! I’ve been screwing with this for a full day. Also, thanks for having a date.

  20. 20 On July 17th, 2009, rm79 said:

    Hi there

    Paul Lynch, I have the same problem

    WXP 32bits, IIS 6, Tomcat 6, Isapi redirector 1.2.28
    Both of the services work fine independently, I can acces to
    localhost - IIS and
    localhost:8080 tomcat

    the problem starts when the isapi redirect is installed and turn it on IIS, and when I try to access the web page IIS shows me this
    Page title: “Error”
    content: “Incorrect Function”

    Any idea?

  21. 21 On August 7th, 2009, IIS 6.0 & Apache Tomcat with the Jk 1.2 Connector « Eugene L. Chua said:

    [...] http://www.iisadmin.co.uk/?p=40 [...]

  22. 22 On September 3rd, 2009, Sam said:

    Hi,

    I’m getting the “Incorrect Function” error as well. Using isapi_redirect-1.2.28.dll, IIS 6, Tomcat 6 and win2k. Everything works as expected if I run in IIS 5.0 isolation mode.

    This seems to be related to the problem mentioned on msdn about the change in permissions in IIS 6 (”Applications Are Denied Access to Resources” on http://msdn.microsoft.com/en-us/library/ms524996.aspx#modes) but I don’t know what (if any) permissions need to be set to get this connector working.

    I’ve also come across various posts saying spaces in the install directories can cause problems. Is this true? I don’t really want to reinstall Tomcat… :(

    There seems to be a lot of people with this problem but no solution! Any help would be greatly appreciated.

  23. 23 On September 4th, 2009, Sam said:

    Still no answer to the “incorrect function” problem…

    I tried reinstalling tomcat under c:/tomcat and added the user permissions to the tomcat folder as mentioned here: http://eugenelchua.wordpress.com/2009/08/07/iis-apache-tomcat/ but still no success.

    The main reason why we wanted to disable IIS 5.0 isolation mode was to be able to stop the application pool so that the server will return 503 responses during maintenance. For now we are just going to reduce the number of connections to 0 (properties -> performance) as a workaround to force a 503 for all requests.

    Hopefully one day someone will post the solution to running the jk connector in worker process isolation mode.

  24. 24 On September 10th, 2009, Tony said:

    I’ve gone through but when I test it receive this error

    Bad Gateway!

    There is a problem with the page you are looking for, and it cannot be displayed. When the Web server (while acting as a gateway or proxy) contacted the upstream content server, it received an invalid response from the content server.

    My ISAPI log file gives this error
    [Thu Sep 10 16:22:43.109 2009] [4912:6136] [error] jk_ajp_common.c (1172): wrong message format 0×4854 from 127.0.0.1:8080

    Any idea what’s wrong? Thanks

  25. 25 On November 6th, 2009, Phil T said:

    For Windows 2003 64-bit you need an extra step.
    I had to run this at a command prompt to enable IIS to use 32-bit ISAPI dll’s.

    cscript %SystemDrive%\inetpub\AdminScripts\adsutil.vbs set w3svc/AppPools/Enable32bitAppOnWin64 1

    From this site below:
    http://extended64.com/blogs/rhoffman/archive/2005/05/10/482.aspx

  26. 26 On November 9th, 2009, kishore said:

    Hi,

    Thanks for your instructions. Its working fine. if i give “http://localhost/shoppingcart/” i am getting shoppingcart application home page. I want to make shoppingcart as a default application. i.e. if type http://localhost/ then i need shopping cart home page. could you please suggest me what to do? Thanks

  27. 27 On November 21st, 2009, Shuang Gao said:

    the “wlb” configuration is not necessary if you have just one worker (i.e. ajp13w)
    Replace all “wlb” with ajp13w in uriworkmap.properties and worker.properties
    and remove the load balancer section in worker.properties will work just fine

  28. 28 On December 8th, 2009, Chin said:

    Me: w2003
    compaq evo w6000
    apache tomcat 5.5.28
    isapi_redirect.dll 1.2.28
    IIS 6
    ——————————————————–
    Hello everyone,

    I finally get to the “incorrect function” point. It seems that this Problem has different causes.
    If u read my logs u will c IIS says http 500 error (Internal server error) and i cant find any solution or hint to my last 2 ISAPI log Entries.

    my log files:

    isapi log:
    [Tue Dec 08 19:40:00.484 2009] [2400:2684] [debug] jk_util.c (458): Pre-processed log time stamp format is ‘[%a %b %d %H:%M:%S.000 %Y] ‘
    [Tue Dec 08 19:40:00.484 2009] [2400:2684] [info] jk_isapi_plugin.c (2405): Starting Jakarta/ISAPI/isapi_redirector/1.2.28
    [Tue Dec 08 19:40:00.484 2009] [2400:2684] [debug] jk_isapi_plugin.c (2423): Detected IIS version 6.0
    [Tue Dec 08 19:40:00.484 2009] [2400:2684] [debug] jk_isapi_plugin.c (2425): Using ini file C:\Tomcat\ISAPI\isapi_redirect.properties.
    [Tue Dec 08 19:40:00.484 2009] [2400:2684] [debug] jk_isapi_plugin.c (2431): Using log file C:\Tomcat\logs\isapi_redirect.log.
    [Tue Dec 08 19:40:00.484 2009] [2400:2684] [debug] jk_isapi_plugin.c (2432): Using log level 1.
    [Tue Dec 08 19:40:00.484 2009] [2400:2684] [debug] jk_isapi_plugin.c (2433): Using extension uri /jakarta/isapi_redirect.dll.
    [Tue Dec 08 19:40:00.484 2009] [2400:2684] [debug] jk_isapi_plugin.c (2434): Using worker file C:\Tomcat\conf\workers.properties.
    [Tue Dec 08 19:40:00.484 2009] [2400:2684] [debug] jk_isapi_plugin.c (2435): Using worker mount file C:\Tomcat\conf\uriworkermap.properties.
    [Tue Dec 08 19:40:00.484 2009] [2400:2684] [debug] jk_isapi_plugin.c (2437): Using rewrite rule file .
    [Tue Dec 08 19:40:00.484 2009] [2400:2684] [debug] jk_isapi_plugin.c (2439): Using uri select 3.
    [Tue Dec 08 19:40:00.484 2009] [2400:2684] [debug] jk_isapi_plugin.c (2440): Using no chunked encoding.
    [Tue Dec 08 19:40:00.484 2009] [2400:2684] [debug] jk_isapi_plugin.c (2442): Using notification event SF_NOTIFY_AUTH_COMPLETE (0×04000000)
    [Tue Dec 08 19:40:00.484 2009] [2400:2684] [debug] jk_isapi_plugin.c (2452): Using uri header TOMCATURI6A6B0000:.
    [Tue Dec 08 19:40:00.484 2009] [2400:2684] [debug] jk_isapi_plugin.c (2453): Using query header TOMCATQUERY6A6B0000:.
    [Tue Dec 08 19:40:00.484 2009] [2400:2684] [debug] jk_isapi_plugin.c (2454): Using worker header TOMCATWORKER6A6B0000:.
    [Tue Dec 08 19:40:00.484 2009] [2400:2684] [debug] jk_isapi_plugin.c (2455): Using worker index TOMCATWORKERIDX6A6B0000:.
    [Tue Dec 08 19:40:00.484 2009] [2400:2684] [debug] jk_isapi_plugin.c (2456): Using translate header TOMCATTRANSLATE6A6B0000:.
    [Tue Dec 08 19:40:00.484 2009] [2400:2684] [debug] jk_isapi_plugin.c (2457): Using a default of 250 connections per pool.
    [Tue Dec 08 19:40:00.515 2009] [2400:2684] [debug] jk_map.c (491): Adding property ‘/admin/*’ with value ‘wlb’ to map.
    [Tue Dec 08 19:40:00.515 2009] [2400:2684] [debug] jk_map.c (491): Adding property ‘/manager/*’ with value ‘wlb’ to map.
    [Tue Dec 08 19:40:00.515 2009] [2400:2684] [debug] jk_map.c (491): Adding property ‘/jsp-examples/*’ with value ‘wlb’ to map.
    [Tue Dec 08 19:40:00.515 2009] [2400:2684] [debug] jk_map.c (491): Adding property ‘/servlets-examples/*’ with value ‘wlb’ to map.
    [Tue Dec 08 19:40:00.515 2009] [2400:2684] [debug] jk_map.c (491): Adding property ‘/examples/*’ with value ‘wlb’ to map.
    [Tue Dec 08 19:40:00.515 2009] [2400:2684] [debug] jk_map.c (491): Adding property ‘!/servlets-examples/*.jpeg’ with value ‘wlb’ to map.
    [Tue Dec 08 19:40:00.515 2009] [2400:2684] [debug] jk_map.c (491): Adding property ‘/jkmanager’ with value ‘jkstatus’ to map.
    [Tue Dec 08 19:40:00.515 2009] [2400:2684] [debug] jk_uri_worker_map.c (1102): Loading urimaps from C:\Tomcat\conf\uriworkermap.properties with reload check interval 60 seconds
    [Tue Dec 08 19:40:00.515 2009] [2400:2684] [debug] jk_uri_worker_map.c (720): wildchar rule ‘/admin/*=wlb’ source ‘uriworkermap’ was added
    [Tue Dec 08 19:40:00.515 2009] [2400:2684] [debug] jk_uri_worker_map.c (720): wildchar rule ‘/manager/*=wlb’ source ‘uriworkermap’ was added
    [Tue Dec 08 19:40:00.515 2009] [2400:2684] [debug] jk_uri_worker_map.c (720): wildchar rule ‘/jsp-examples/*=wlb’ source ‘uriworkermap’ was added
    [Tue Dec 08 19:40:00.515 2009] [2400:2684] [debug] jk_uri_worker_map.c (720): wildchar rule ‘/servlets-examples/*=wlb’ source ‘uriworkermap’ was added
    [Tue Dec 08 19:40:00.515 2009] [2400:2684] [debug] jk_uri_worker_map.c (720): wildchar rule ‘/examples/*=wlb’ source ‘uriworkermap’ was added
    [Tue Dec 08 19:40:00.515 2009] [2400:2684] [debug] jk_uri_worker_map.c (720): wildchar rule ‘/servlets-examples/*.jpeg=wlb’ source ‘uriworkermap’ was added
    [Tue Dec 08 19:40:00.515 2009] [2400:2684] [debug] jk_uri_worker_map.c (729): exact rule ‘/jkmanager=jkstatus’ source ‘uriworkermap’ was added
    [Tue Dec 08 19:40:00.515 2009] [2400:2684] [debug] jk_uri_worker_map.c (171): uri map dump after file load: index=0 file=’C:\Tomcat\conf\uriworkermap.properties’ reject_unsafe=0 reload=60 modified=1188757932 checked=1260297600
    [Tue Dec 08 19:40:00.515 2009] [2400:2684] [debug] jk_uri_worker_map.c (176): generation 0: size=0 nosize=0 capacity=0
    [Tue Dec 08 19:40:00.515 2009] [2400:2684] [debug] jk_uri_worker_map.c (176): generation 1: size=7 nosize=1 capacity=8
    [Tue Dec 08 19:40:00.515 2009] [2400:2684] [debug] jk_uri_worker_map.c (186): NEXT (1) map #0: uri=/servlets-examples/*.jpeg worker=wlb context=/servlets-examples/*.jpeg source=uriworkermap type=Unmount Wildchar len=25
    [Tue Dec 08 19:40:00.515 2009] [2400:2684] [debug] jk_uri_worker_map.c (186): NEXT (1) map #1: uri=/servlets-examples/* worker=wlb context=/servlets-examples/* source=uriworkermap type=Wildchar len=20
    [Tue Dec 08 19:40:00.515 2009] [2400:2684] [debug] jk_uri_worker_map.c (186): NEXT (1) map #2: uri=/jsp-examples/* worker=wlb context=/jsp-examples/* source=uriworkermap type=Wildchar len=15
    [Tue Dec 08 19:40:00.515 2009] [2400:2684] [debug] jk_uri_worker_map.c (186): NEXT (1) map #3: uri=/examples/* worker=wlb context=/examples/* source=uriworkermap type=Wildchar len=11
    [Tue Dec 08 19:40:00.515 2009] [2400:2684] [debug] jk_uri_worker_map.c (186): NEXT (1) map #4: uri=/manager/* worker=wlb context=/manager/* source=uriworkermap type=Wildchar len=10
    [Tue Dec 08 19:40:00.515 2009] [2400:2684] [debug] jk_uri_worker_map.c (186): NEXT (1) map #5: uri=/admin/* worker=wlb context=/admin/* source=uriworkermap type=Wildchar len=8
    [Tue Dec 08 19:40:00.515 2009] [2400:2684] [debug] jk_uri_worker_map.c (186): NEXT (1) map #6: uri=/jkmanager worker=jkstatus context=/jkmanager source=uriworkermap type=Exact len=10
    [Tue Dec 08 19:40:00.531 2009] [2400:2684] [debug] jk_map.c (491): Adding property ‘worker.list’ with value ‘wlb,jkstatus’ to map.
    [Tue Dec 08 19:40:00.531 2009] [2400:2684] [debug] jk_map.c (491): Adding property ‘worker.ajp13w.type’ with value ‘ajp13′ to map.
    [Tue Dec 08 19:40:00.531 2009] [2400:2684] [debug] jk_map.c (491): Adding property ‘worker.ajp13w.host’ with value ‘localhost’ to map.
    [Tue Dec 08 19:40:00.546 2009] [2400:2684] [debug] jk_map.c (491): Adding property ‘worker.ajp13w.port’ with value ‘8009′ to map.
    [Tue Dec 08 19:40:00.546 2009] [2400:2684] [debug] jk_map.c (491): Adding property ‘worker.wlb.type’ with value ‘lb’ to map.
    [Tue Dec 08 19:40:00.546 2009] [2400:2684] [error] jk_map.c (404): The attribute ‘worker.wlb.balance_worker’ is not supported - please check the documentation for the supported attributes.
    [Tue Dec 08 19:40:00.546 2009] [2400:2684] [emerg] jk_isapi_plugin.c (2553): Unable to read worker file C:\Tomcat\conf\workers.properties.

    —————————————————————–

    IIS website log:
    #Fields: date time s-sitename s-computername s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs-version cs(User-Agent) cs(Cookie) cs(Referer) cs-host sc-status sc-substatus sc-win32-status sc-bytes cs-bytes time-taken
    2009-12-08 18:40:00 W3SVC1763425915 ATLANTIS 192.168.2.101 GET / - 80 - 192.168.2.100 HTTP/1.1 Mozilla/5.0+(Windows;+U;+Windows+NT+5.1;+de;+rv:1.9.1.5)+Gecko/20091102+Firefox/3.5.5 - - atlantis 500 0 1 271 380 421
    2009-12-08 18:40:03 W3SVC1763425915 ATLANTIS 192.168.2.101 GET / - 80 - 192.168.2.100 HTTP/1.1 Mozilla/5.0+(Windows;+U;+Windows+NT+5.1;+de;+rv:1.9.1.5)+Gecko/20091102+Firefox/3.5.5 - - atlantis 500 0 1 271 406 0
    2009-12-08 18:40:03 W3SVC1763425915 ATLANTIS 192.168.2.101 GET / - 80 - 192.168.2.100 HTTP/1.1 Mozilla/5.0+(Windows;+U;+Windows+NT+5.1;+de;+rv:1.9.1.5)+Gecko/20091102+Firefox/3.5.5 - - atlantis 500 0 1 271 406 0
    2009-12-08 18:40:03 W3SVC1763425915 ATLANTIS 192.168.2.101 GET / - 80 - 192.168.2.100 HTTP/1.1 Mozilla/5.0+(Windows;+U;+Windows+NT+5.1;+de;+rv:1.9.1.5)+Gecko/20091102+Firefox/3.5.5 - - atlantis 500 0 1 271 406 0
    2009-12-08 18:40:03 W3SVC1763425915 ATLANTIS 192.168.2.101 GET / - 80 - 192.168.2.100 HTTP/1.1 Mozilla/5.0+(Windows;+U;+Windows+NT+5.1;+de;+rv:1.9.1.5)+Gecko/20091102+Firefox/3.5.5 - - atlantis 500 0 1 271 406 0
    2009-12-08 18:40:03 W3SVC1763425915 ATLANTIS 192.168.2.101 GET / - 80 - 192.168.2.100 HTTP/1.1 Mozilla/5.0+(Windows;+U;+Windows+NT+5.1;+de;+rv:1.9.1.5)+Gecko/20091102+Firefox/3.5.5 - - atlantis 500 0 1 271 406 0
    2009-12-08 18:40:03 W3SVC1763425915 ATLANTIS 192.168.2.101 GET / - 80 - 192.168.2.100 HTTP/1.1 Mozilla/5.0+(Windows;+U;+Windows+NT+5.1;+de;+rv:1.9.1.5)+Gecko/20091102+Firefox/3.5.5 - - atlantis 500 0 1 271 406 0
    2009-12-08 18:40:04 W3SVC1763425915 ATLANTIS 192.168.2.101 GET / - 80 - 192.168.2.100 HTTP/1.1 Mozilla/5.0+(Windows;+U;+Windows+NT+5.1;+de;+rv:1.9.1.5)+Gecko/20091102+Firefox/3.5.5 - - atlantis 500 0 1 271 406 0
    2009-12-08 18:40:10 W3SVC1763425915 ATLANTIS 192.168.2.101 GET /test.php - 80 - 192.168.2.100 HTTP/1.1 Mozilla/5.0+(Windows;+U;+Windows+NT+5.1;+de;+rv:1.9.1.5)+Gecko/20091102+Firefox/3.5.5 - - atlantis 500 0 1 271 388 0
    2009-12-08 18:40:10 W3SVC1763425915 ATLANTIS 192.168.2.101 GET /test.php - 80 - 192.168.2.100 HTTP/1.1 Mozilla/5.0+(Windows;+U;+Windows+NT+5.1;+de;+rv:1.9.1.5)+Gecko/20091102+Firefox/3.5.5 - - atlantis 500 0 1 271 388 0
    2009-12-08 18:41:02 W3SVC1763425915 ATLANTIS 192.168.2.101 GET /servlets-examples/ - 80 - 192.168.2.100 HTTP/1.1 Mozilla/5.0+(Windows;+U;+Windows+NT+5.1;+de;+rv:1.9.1.5)+Gecko/20091102+Firefox/3.5.5 - - atlantis 500 0 1 271 398 0
    2009-12-08 18:41:02 W3SVC1763425915 ATLANTIS 192.168.2.101 GET /servlets-examples/ - 80 - 192.168.2.100 HTTP/1.1 Mozilla/5.0+(Windows;+U;+Windows+NT+5.1;+de;+rv:1.9.1.5)+Gecko/20091102+Firefox/3.5.5 - - atlantis 500 0 1 271 398 0
    2009-12-08 18:41:15 W3SVC1763425915 ATLANTIS 192.168.2.101 GET /jsp-examples/ - 80 - 192.168.2.100 HTTP/1.1 Mozilla/5.0+(Windows;+U;+Windows+NT+5.1;+de;+rv:1.9.1.5)+Gecko/20091102+Firefox/3.5.5 JSESSIONID=8521F125099C2459293A111F5ACD429E - atlantis 500 0 1 271 446 0
    2009-12-08 18:41:15 W3SVC1763425915 ATLANTIS 192.168.2.101 GET /jsp-examples/ - 80 - 192.168.2.100 HTTP/1.1 Mozilla/5.0+(Windows;+U;+Windows+NT+5.1;+de;+rv:1.9.1.5)+Gecko/20091102+Firefox/3.5.5 JSESSIONID=8521F125099C2459293A111F5ACD429E - atlantis 500 0 1 271 446 0

    i hope some one can

  29. 29 On December 12th, 2009, al said:

    This is a great ‘how-to’ - clear and concise…if only I could get it to work.
    Am running IIS6.0 on win2k3SP2. Tomcat installed and running on localhost:8080 (I can open the app from a browser).
    dll is loaded properly and config is correct - when I try to access the only URI I have mapped I get the following error:

    [Sat Dec 12 17:56:03.716 2009] [4944:6872] [error] jk_ajp_common.c (1172): wrong message format 0×4854 from 127.0.0.1:8080

    - so it *has* matched URI and sent it through the ajp13 to the host….but doesnt like the response?
    Any ideas? As I say I know the tomcat host is up an operational on that port
    I saw someone else posted the same problem but didnt see a solution.

  30. 30 On December 21st, 2009, Granville said:

    I to have been having problems. First I was using tomcat 5.5 and I thought it might have been the problem, but I kept at it and I finally figured it out how to get away from the “incorrect function” but I ended up on the “Page not found” problem. the URL’s are different for 5.5 then 6 so you’ll need to adjust appropriately.

    To get rid of the “incorrect function” double check that the workers.properties file and uriworkermap.properties file have everything spelled correctly. I have a typo in the word balance.

    when I try to view an example on port 80 the file c:\tomcat\logs\isapi_redirect.log says that Jakarta/ISAPi/isap_redirecto/1.2.28 is starting, and that it initialized, so I know that IIS is trying to redirect to tomcat, but something is still not configured or working right.

  31. 31 On December 28th, 2009, Chin said:

    me again.

    i solved few probs.

    If you get “incorrect function” in your browser and your isapi filter for your website is green, then that means you got your IIS right there where it should be and the problem(s) lies behind that, it could be something is spelled wrong in 1 of your properties files (it was in my case).

    ISAPI filter is red/not loaded, though you downloaded and located it correctly … it wasnt metioned in this tutorial or else where that you should turn off your IIS (commandline: iisreset /stop) and your apache Tomcat server. (it cost me a lot of time)

    ….

    I switched from mini worker.properties to the full worker.properties file (source: apache tomcat site; it helped me a lot). now non-java related things are super ok ^0^ only prob is blank pages from java related pages, iis-log says http 500 and isapi_redirect.log mentioned [debug] did not find a worker wlb & [error] could not get a worker for name wlb.

  32. 32 On January 11th, 2010, Kilian said:

    Hi,

    I am also getting the “incorrect function” error. I’m using Tomcat6, IIS6 and Win 2003 64Bit.

    The ISAPI Filter shows a green arrow.

    I checked my properties-files and also tried the worker.properties file from the apache tomcat web site.
    Actually I use this workers.properties file:

    # Define 1 real worker using ajp13
    worker.list=worker1

    # Set properties for worker1 (ajp13)
    worker.worker1.type=ajp13
    worker.worker1.host=localhost
    worker.worker1.port=8009

    Any ideas?

  33. 33 On January 12th, 2010, Tina said:

    Hi!

    Thanks for a great instruction!

    I´ve got it to work almost as I want. I want the IIS to handle .html and .jpg-files and for these files not send the request to Tomcat. But when I in the uriworkermap.properties write:
    !/appname/*.html=wlb
    Then no html-page are found…
    I thought that when I wrote this in the uriworkermap.properties it ment that the IIS would handle the .html-pages it self. Did I misunderstand?
    (I have a wwwroot specified for the application under IIS and the .html-files are found there.)

    Any ideas?

  34. 34 On January 14th, 2010, ramnam said:

    If you are getting “incorrect function” using this setup in Win2K Server, delete the configuration from IIS completely, redo this tutorial once again following exactly what it says and use JK Connector 1.2.28 instead of the one listed here. You should then be fine.

  35. 35 On January 28th, 2010, SteveR said:

    It’s almost working, http://localhost:8080 items work fine, but when I try to just use http://localhost via port 80 it prompts you to download the file, be it the html or the jsp.

    What are your thoughts? Thanks in advance!
    Steve

  36. 36 On January 29th, 2010, Kilian said:

    Hi again,
    everything worked fine using the JK Connector 1.2.28 for a little while.
    But now, only when I call the HelloWorldExample directly from the webserver (localhost on port 80) the page comes up. If I try to call the page from another location, I am getting a 404 error from IIS. From outside I still have to use port 8080 to get a connection to tomcat. There are no entries in the IIS log file after getting the 404 error. The configuration is exactly the same as in the tutorial.
    Any ideas what’s wrong here?

    I have Plesk 7.0 installed on my server. Maybe that could be a problem?

Leave a Reply

  • Calendar

  • February 2010
    M T W T F S S
    « Jun    
    1234567
    891011121314
    15161718192021
    22232425262728