1 Reply Latest reply on Nov 14, 2005 3:33 PM by tjenkins

    Could not find worker: Apache2, JBoss 4.0.3SP1, mod_jk

    tjenkins

      Hello all,
      I'm trying to get our JBoss installation and Apache2 on Linux to work together. I've read the wiki pages and searched the forums but cannot seem to fix my error.

      Our Apache server is setup for virtual hosts; here is the conf for the site that uses JBoss (this is a vmware sandbox (development) entry):

      <VirtualHost 10.100.100.3:80>
       ServerName my.virtual.host
       RewriteEngine on
       RewriteCond %{HTTP:Authorization} ^(.*)
       DocumentRoot /var/www
       ErrorLog /var/log/apache/error.log
       CustomLog /var/log/apache/access.log combined
      
       # Where to find workers.properties
       JkWorkersFile "/etc/apache2/workers.properties"
      
       # Where to put jk logs
       # Update this path to match your logs directory location (put mod_jk.log next to access_log)
       JkLogFile /var/log/apache2/mod_jk.log
      
       # Set the jk log level [debug/error/info]
       JkLogLevel debug
      
       # Select the log format
       JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
      
       # JkOptions indicate to send SSL KEY SIZE,
       JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
      
       # JkRequestLogFormat set the request format
       JkRequestLogFormat "%w %V %T"
      
       JkMount /* worker1
      </VirtualHost>
      
      


      Our /etc/apache2/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
      #worker.worker1.cachesize=10
      #worker.worker1.cache_timeout=600
      #worker.worker1.socket_keepalive=1
      #worker.worker1.recycle_timeout=300
      


      When I hit the site, I get this in mod_jk.log
      [Mon Nov 14 09:31:50 2005] [0881:32771] [debug] map_uri_to_worker::jk_uri_worker_map.c (449): Attempting to map URI '/' from 1 maps
      [Mon Nov 14 09:31:50 2005] [0881:32771] [debug] map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context URI '/*'
      [Mon Nov 14 09:31:50 2005] [0881:32771] [debug] map_uri_to_worker::jk_uri_worker_map.c (475): Found a wildchar match worker1 -> /*
      [Mon Nov 14 09:31:50 2005] [0881:32771] [debug] jk_handler::mod_jk.c (1839): Into handler jakarta-servlet worker=worker1 r->proxyreq=0
      [Mon Nov 14 09:31:50 2005] [0881:32771] [debug] wc_get_worker_for_name::jk_worker.c (111): did not find a worker worker1
      [Mon Nov 14 09:31:50 2005] [0881:32771] [info] jk_handler::mod_jk.c (1993): Could not find a worker for worker name=worker1
      


      Any help would be greatly appreciated.

      tom

        • 1. Re: Could not find worker: Apache2, JBoss 4.0.3SP1, mod_jk
          tjenkins

          After some trial and error, it looks like you can't define the JkWorkers file, etc in the VirtualHost tag; you can define the JkMount.

          Now it seems I have a small problem with response. I have to click on links twice to get a response from the server.

          I'm also getting an error

          [Mon Nov 14 15:22:19 2005] [15803:38528] [debug] jk_child_init::mod_jk.c (2330): Initialized mod_jk/1.2.15
          [Mon Nov 14 15:22:21 2005] [15831:38528] [debug] do_shm_open::jk_shm.c (251): Shared memory is already open
          [Mon Nov 14 15:22:21 2005] [15831:38528] [debug] jk_child_init::mod_jk.c (2320): Attached shm:/etc/apache2/logs/jk-runtime-status
          

          repeated over and over... so I have some more investigation to do.