Installing mod_jk for Apache Tomcat on Windows 2000

Posted on 2004-11-24
Last Modified: 2008-02-20
I have a Windows 2000 server with working Apache 2.0.52 and Tomcat 4.1.24. I'd like to use mod_jk to be able to serve all pages via one port. I have downloaded the mod_jk binary, unpacked it, copied the module into the apache module folder, and configured it using the following manual:

I created the file, and configured the httpd.conf and files. See below for all the code.

When I try to go to a test-page, I get a 404-error. The Apache 404-page does not mention mod_jk, like I've seen on other installations. It simply says "Apache/2.0.52 (Win32) Server at localhost Port 80", and I believe "mod_jk" should be mentioned somewhere in there.

====================================== - I added the following line:

httpd.conf - I added the following lines:
LoadModule jk2_module modules/
JkSet config.file "C:/www/Apache2/conf/"






Question by:grexx
    LVL 7

    Accepted Solution

    Hi grexx,
    there are two different modules: mod_jk and mod_jk2.
    YOu say that you installed "mod_jk", but you reference "jk2" in your httpd.conf file.
    What do the APache logs say - do they complain about this?
    HTH BIll
    LVL 1

    Author Comment

    I meant mod_jk2 and have installed mod_jk2. The module in the apache module folder is called
    LVL 1

    Author Comment

    I reinstalled Apache, tried again, and got an Internal Server Error. I can open http://localhost/jkstatus/jkstatus, but don't know what that means. The other links from the devside manual (see above link) give the internal server error. Tomcat works normally.

    One other thing changed. On the error-pages it says the name of the server. Now it mentions jk_mod: Apache/2.0.52 (Win32) mod_jk2/2.0.4 Server at localhost Port 80.

    The Error.log says:

    [Fri Nov 26 14:21:23 2004] [error] attempt to connect to ( failed 730061
    [Fri Nov 26 14:21:24 2004] [error] ajp13.connect() failed ajp13:localhost:8009
    [Fri Nov 26 14:21:24 2004] [error] ajp13.service() failed to connect endpoint errno=0 No error
    [Fri Nov 26 14:21:24 2004] [error] ajp13.service() Error  forwarding ajp13:localhost:8009 1 1
    [Fri Nov 26 14:21:24 2004] [error] mod_jk2.handler() Error connecting to tomcat 120000, status 0
    LVL 1

    Author Comment

    I just found the problem. I forgot to edit the server.xml file for Tomcat. The connector to port 8009 was still commented out. Well it works, and for pointing me in the right direction I give you - CajunBill - the points.
    LVL 7

    Expert Comment

    Thanks, grexx, for giving the points for giving a start in the right direction.
    There are other people on EE who have failed to appreciate that even when the help was more extensive and clearer.
    Ask for help any time!

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Maximize Your Threat Intelligence Reporting

    Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

    If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
    In Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now