apache 2.0.52 - tomcat 5 issue using mod_jk

Discussion in 'Java' started by george.mihailidis@gmail.com, Jan 31, 2005.

  1. Guest

    I'm trying to get Apache 2.0.52 to work with Tomcat 5.0.28 using mod_jk
    1.2.8. The docs are pretty straigtforward, but I keep getting this
    error in the apache error logs:

    wc_get_worker_for_name::jk_worker.c (92): did not find a worker worker1

    This is what's in my httpd.conf:

    LoadModule jk_module modules/mod_jk.so

    JkWorkersFile conf/worker.properties
    JkLogFile logs/mod_jk.log
    JkLogLevel trace
    JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
    JkOptions +ForwardKeySize +ForwardURICompat +ForwardDirectories
    JkRequestLogFormat "%w %V %T"

    #JkMount /test/*.jsp worker1
    JkMount "c:/Program Files/Apache Software Foundation/Tomcat
    5.0/webapps/jsp-examples/*.jsp" worker1

    JkAutoAlias "c:/Program Files/Apache Software Foundation/Tomcat
    5.0/webapps"

    This is what's in my worker.properties:

    worker.list=worker1
    # Set properties for worker1 (ajp13)
    worker.worker1.type=ajp13
    worker.worker1.host=locahost
    worker.worker1.port=8009
    worker.worker1.lbfactor=50
    worker.worker1.cachesize=10
    worker.worker1.cache_timeout=600
    worker.worker1.socket_keepalive=1
    worker.worker1.socket_timeout=300

    JSP's work fine through Tomcat directly, but through apache I keep
    getting the 500 error. I also have the connector tag in tomcat set to
    port 8009.

    Any help is greatly appreciated. Thanks.
     
    , Jan 31, 2005
    #1
    1. Advertising

  2. huy Guest

    Hi George,

    wrote:
    > I'm trying to get Apache 2.0.52 to work with Tomcat 5.0.28 using mod_jk
    > 1.2.8. The docs are pretty straigtforward, but I keep getting this
    > error in the apache error logs:
    >
    > wc_get_worker_for_name::jk_worker.c (92): did not find a worker worker1
    >
    > This is what's in my httpd.conf:
    >
    > LoadModule jk_module modules/mod_jk.so
    >
    > JkWorkersFile conf/worker.properties


    Try putting in the full path for the JkWorkersFile. (See below for why I
    think it doesn't work).

    > JkLogFile logs/mod_jk.log
    > JkLogLevel trace
    > JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
    > JkOptions +ForwardKeySize +ForwardURICompat +ForwardDirectories
    > JkRequestLogFormat "%w %V %T"
    >
    > #JkMount /test/*.jsp worker1
    > JkMount "c:/Program Files/Apache Software Foundation/Tomcat
    > 5.0/webapps/jsp-examples/*.jsp" worker1


    Your JKMount looks wrong because you're pointing it to the actual file
    directory when it should be the url path (I think). My one mounts the
    actual url path
    eg. http://host/application_base_url_path
    JkMount /application_base_url_path/*.jsp

    > JkAutoAlias "c:/Program Files/Apache Software Foundation/Tomcat
    > 5.0/webapps"

    This is ok though to point file system.

    > This is what's in my worker.properties:
    >
    > worker.list=worker1
    > # Set properties for worker1 (ajp13)
    > worker.worker1.type=ajp13
    > worker.worker1.host=locahost
    > worker.worker1.port=8009
    > worker.worker1.lbfactor=50
    > worker.worker1.cachesize=10
    > worker.worker1.cache_timeout=600
    > worker.worker1.socket_keepalive=1
    > worker.worker1.socket_timeout=300


    This looks okay except I also set

    workers.tomcat_home
    works.java_home

    just in case.

    Hope this helps

    Huy
     
    huy, Feb 1, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Golem
    Replies:
    0
    Views:
    875
    Golem
    Nov 27, 2003
  2. Stian Kaasa

    Apache + Tomcat + mod_jk configuring

    Stian Kaasa, Jan 18, 2004, in forum: Java
    Replies:
    1
    Views:
    2,479
    Sudsy
    Jan 18, 2004
  3. i5513
    Replies:
    2
    Views:
    2,444
    Axel Seinsche
    May 24, 2004
  4. Lalit Mehta

    Apache 2, Tomcat 5 and mod_jk

    Lalit Mehta, Sep 16, 2004, in forum: Java
    Replies:
    1
    Views:
    500
    code learner
    Dec 24, 2010
  5. Brent
    Replies:
    4
    Views:
    5,532
    Brent
    Dec 15, 2004
Loading...

Share This Page