Can't load jk_mod to connect apache with tomcat

Discussion in 'Apache' started by mmvsbg, Aug 8, 2006.

  1. #1
    Hello,
    I have a Apache 2.0.52 server running on Windows XP Pro. I installed jakarta-tomcat 4.1.31 server because I wanted to test java server pages and I made it work. Then I decided that I want to connect my Apache with the Tomcat so the apache can work with jsp as well.
    For the Tomcat I added
    <Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
    			port="8008" minProcessors="5" maxProcessors="75"
    			acceptCount="10" debug="0"/>
    
    Code (markup):
    in the server.xml file. In the conf directory I made file workers.properties containing:
    
    worker.list=testWorker
    worker.testWorker.port=8008
    worker.testWorker.host=localhost
    worker.testWorker.type=coyote
    
    Code (markup):
    and finally I added in the httpd.conf file of the Apache the following lines:
    
    LoadModule jk_module modules/mod_jk-apache-2.0.58.so
    AddModule mod_jk.c 
    JkWorkersFile TOMCAT_HOME/conf/workers.properties
    JkLogFile TOMCAT_HOME/logs/mod_jk.log 
    JkLogLevel debug 
    Alias /examples TOMCAT_HOME/webapps/examples 
    JkMount /examples/servlet/* testWorker 
    JkMount /examples/*.jsp testWorker 
    <Location "/examples/WEB-INF/">
    AllowOverride None 
    deny from all 
    </Location>
    
    Code (markup):
    but when I restart the server it crashesh and I only get message The requested operation has failed.
    What I'm not sure i'm doing right is if I've downloaded the correct file for the JK connector. Now it might sound little stupid to you but I don't know how to work with tar.gz files so I used the following link:
    http://www.apache.org/dist/tomcat/tomcat-connectors/jk/binaries/win32/
    I tried with the earliest version first which had only .dll file, then I tried with the latest 2.0.58 which atleast had .so file to add to my modules directory but the server still crashes and it doesn't want to start until I comment the added lines out.
    I don't know if I'm using the right file or not or if the mistake is somewhere else.
    Any help will be greatly appreciated:)
     
    mmvsbg, Aug 8, 2006 IP