3 Replies Latest reply on Aug 19, 2005 9:50 PM by caigao

    mod_jk 1.2.10 cause 404 error of jsp file in apache document

    caigao

      hi, all.

      My env is:

      Redhat AS 4.0 with apache 2.0.52
      jboss 4.0.2
      jdk1.5.0
      mod-jk 1.2.10

      mod-jk.conf set to DEBUG log using this:
      JkLogLevel debug

      The war or ear application in jboss works well for example:
      http://server/jmx-console

      but when i put a simple a.jsp file in the apache DocumentRoot it does not work and return this message:

      HTTP Status 404 - /a.jsp
      --------------------------------------------------------------------------------
      type Status report
      message /a.jsp
      description The requested resource (/a.jsp) is not available.
      --------------------------------------------------------------------------------
      Apache Tomcat/5.5.9


      somebody can tell me what is wrong?

      thank you.

      there are my config files:


      mod-jk.conf:

      # Load mod_jk module
      # Specify the filename of the mod_jk lib
      LoadModule jk_module modules/mod_jk.so
      
      # Where to find workers.properties
      JkWorkersFile conf.d/workers.properties
      
      # Where to put jk logs
      JkLogFile logs/mod_jk.log
      
      # Set the jk log level [debug/error/info]
      # JkLogLevel info
      JkLogLevel debug
      
      # Select the log format
      JkLogStampFormat "[%a %b %d %H:%M:%S %Y]"
      
      # JkOptions indicates to send SSK KEY SIZE
      JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
      
      # JkRequestLogFormat
      JkRequestLogFormat "%w %V %T"
      
      # Add shared memory
      # This directive is present with 1.2.10 and
      # later versions of mod_jk, and is needed for
      # for load balancing to work properly
      JkShmFile /tmp/jk.shm
      
      # Add jkstatus for managing runtime data
      <Location /jkstatus/>
       JkMount jkstatus
       Order deny,allow
       Deny from all
       Allow from 127.0.0.1
      </Location>
      
      JkMount /*.jsp loadbalancer
      JkMount /*.jspx loadbalancer
      JkMount /gas* loadbalancer
      JkMount /wap* loadbalancer
      





      workers.properties:
      # Define list of workers that will be used
      # for mapping requests
      worker.list=loadbalancer,status
      # Define Node1
      worker.node1.port=8009
      worker.node1.host=localhost
      worker.node1.type=ajp13
      worker.node1.lbfactor=1
      #worker.node1.local_worker=1 (1)
      worker.node1.cachesize=10
      
      # Define Node2
      #worker.node2.port=8009
      #worker.node2.host=localhost
      #worker.node2.type=ajp13
      #worker.node2.lbfactor=1
      #worker.node2.local_worker=1 (1)
      #worker.node2.cachesize=10
      
      # Load-balancing behaviour
      worker.loadbalancer.type=lb
      worker.loadbalancer.balanced_workers=node1
      worker.loadbalancer.sticky_session=1
      worker.loadbalancer.local_worker_only=1
      worker.list=loadbalancer
      
      # Status worker for managing load balancer
      worker.status.type=status
      
      #(1) local_worker should be commented out to enable load-balancing. Otherwise, only fail-over is ava
      ilable.
      









      mod_jk.log
      [Sat Jun 04 05:58:28 2005][13256:63168] [debug] do_shm_open::jk_shm.c (240): Truncated shared memory to 66560
      [Sat Jun 04 05:58:28 2005][13256:63168] [debug] do_shm_open::jk_shm.c (272): Initialized shared memory size=66560 free=65536 addr=0xb7fde000
      [Sat Jun 04 05:58:28 2005][13256:63168] [debug] do_shm_open_lock::jk_shm.c (182): Opened shared memory lock /tmp/jk.shm.lock
      [Sat Jun 04 05:58:28 2005][13256:63168] [debug] init_jk::mod_jk.c (2341): Initialized shm:/tmp/jk.shm
      [Sat Jun 04 05:58:28 2005][13256:63168] [debug] uri_worker_map_open::jk_uri_worker_map.c (324): rule map size is 9
      [Sat Jun 04 05:58:28 2005][13256:63168] [debug] uri_worker_map_add::jk_uri_worker_map.c (269): exact rule /jkstatus/=jkstatus was added
      [Sat Jun 04 05:58:28 2005][13256:63168] [debug] uri_worker_map_add::jk_uri_worker_map.c (261): wildchar rule /*.jsp=loadbalancer was added
      [Sat Jun 04 05:58:28 2005][13256:63168] [debug] uri_worker_map_add::jk_uri_worker_map.c (261): wildchar rule /*.jspx=loadbalancer was added
      [Sat Jun 04 05:58:28 2005][13256:63168] [debug] uri_worker_map_add::jk_uri_worker_map.c (261): wildchar rule /gas*=loadbalancer was added
      [Sat Jun 04 05:58:28 2005][13256:63168] [debug] uri_worker_map_add::jk_uri_worker_map.c (261): wildchar rule /wap*=loadbalancer was added
      [Sat Jun 04 05:58:28 2005][13256:63168] [debug] uri_worker_map_add::jk_uri_worker_map.c (261): wildchar rule /cm*=loadbalancer was added
      [Sat Jun 04 05:58:28 2005][13256:63168] [debug] uri_worker_map_add::jk_uri_worker_map.c (261): wildchar rule /test*=loadbalancer was added
      [Sat Jun 04 05:58:28 2005][13256:63168] [debug] uri_worker_map_add::jk_uri_worker_map.c (261): wildchar rule /portal*=loadbalancer was added
      [Sat Jun 04 05:58:28 2005][13256:63168] [debug] uri_worker_map_add::jk_uri_worker_map.c (261): wildchar rule /yck*=loadbalancer was added
      [Sat Jun 04 05:58:28 2005][13256:63168] [debug] uri_worker_map_open::jk_uri_worker_map.c (341): there are 9 rules
      [Sat Jun 04 05:58:28 2005][13256:63168] [debug] build_worker_map::jk_worker.c (219): creating worker loadbalancer
      [Sat Jun 04 05:58:28 2005][13256:63168] [debug] wc_create_worker::jk_worker.c (125): about to create instance loadbalancer of lb
      [Sat Jun 04 05:58:28 2005][13256:63168] [debug] wc_create_worker::jk_worker.c (138): about to validate and init loadbalancer
      [Sat Jun 04 05:58:28 2005][13256:63168] [debug] wc_create_worker::jk_worker.c (125): about to create instance node1 of ajp13
      [Sat Jun 04 05:58:28 2005][13256:63168] [debug] wc_create_worker::jk_worker.c (138): about to validate and init node1
      [Sat Jun 04 05:58:28 2005][13256:63168] [debug] ajp_validate::jk_ajp_common.c (1781): worker node1 contact is 'localhost:8009'
      [Sat Jun 04 05:58:28 2005][13256:63168] [debug] ajp_init::jk_ajp_common.c (1870): setting socket keepalive to 0
      [Sat Jun 04 05:58:28 2005][13256:63168] [debug] ajp_init::jk_ajp_common.c (1909): setting socket timeout to -1
      [Sat Jun 04 05:58:28 2005][13256:63168] [debug] ajp_init::jk_ajp_common.c (1913): setting socket buffer size to 0
      [Sat Jun 04 05:58:28 2005][13256:63168] [debug] ajp_init::jk_ajp_common.c (1917): setting connection recycle timeout to 0
      [Sat Jun 04 05:58:28 2005][13256:63168] [debug] ajp_init::jk_ajp_common.c (1921): setting cache timeout to 0
      [Sat Jun 04 05:58:28 2005][13256:63168] [debug] ajp_init::jk_ajp_common.c (1925): setting connect timeout to 0
      [Sat Jun 04 05:58:28 2005][13256:63168] [debug] ajp_init::jk_ajp_common.c (1929): setting reply timeout to 0
      [Sat Jun 04 05:58:28 2005][13256:63168] [debug] ajp_init::jk_ajp_common.c (1933): setting prepost timeout to 0
      [Sat Jun 04 05:58:28 2005][13256:63168] [debug] ajp_init::jk_ajp_common.c (1937): setting recovery opts to 0
      [Sat Jun 04 05:58:28 2005][13256:63168] [debug] ajp_init::jk_ajp_common.c (1941): setting number of retries to 3
      [Sat Jun 04 05:58:28 2005][13256:63168] [debug] ajp_create_endpoint_cache::jk_ajp_common.c (1818): setting connection cache size to 10
      [Sat Jun 04 05:58:28 2005][13256:63168] [debug] validate::jk_lb_worker.c (790): Balanced worker 0 has name node1 in domain
      [Sat Jun 04 05:58:28 2005][13256:63168] [debug] build_worker_map::jk_worker.c (231): removing old loadbalancer worker
      [Sat Jun 04 05:58:28 2005][13256:63168] [debug] build_worker_map::jk_worker.c (219): creating worker status*loadbalancer
      [Sat Jun 04 05:58:28 2005][13256:63168] [debug] wc_create_worker::jk_worker.c (125): about to create instance status*loadbalancer of ajp13
      [Sat Jun 04 05:58:28 2005][13256:63168] [debug] wc_create_worker::jk_worker.c (138): about to validate and init status*loadbalancer
      [Sat Jun 04 05:58:28 2005][13256:63168] [debug] ajp_validate::jk_ajp_common.c (1781): worker status*loadbalancer contact is 'localhost:8009'
      [Sat Jun 04 05:58:28 2005][13256:63168] [debug] ajp_init::jk_ajp_common.c (1870): setting socket keepalive to 0
      [Sat Jun 04 05:58:28 2005][13256:63168] [debug] ajp_init::jk_ajp_common.c (1909): setting socket timeout to -1
      [Sat Jun 04 05:58:28 2005][13256:63168] [debug] ajp_init::jk_ajp_common.c (1913): setting socket buffer size to 0
      [Sat Jun 04 05:58:28 2005][13256:63168] [debug] ajp_init::jk_ajp_common.c (1917): setting connection recycle timeout to 0
      [Sat Jun 04 05:58:28 2005][13256:63168] [debug] ajp_init::jk_ajp_common.c (1921): setting cache timeout to 0
      [Sat Jun 04 05:58:28 2005][13256:63168] [debug] ajp_init::jk_ajp_common.c (1925): setting connect timeout to 0
      [Sat Jun 04 05:58:28 2005][13256:63168] [debug] ajp_init::jk_ajp_common.c (1929): setting reply timeout to 0
      [Sat Jun 04 05:58:28 2005][13256:63168] [debug] ajp_init::jk_ajp_common.c (1933): setting prepost timeout to 0
      [Sat Jun 04 05:58:28 2005][13256:63168] [debug] ajp_init::jk_ajp_common.c (1937): setting recovery opts to 0
      [Sat Jun 04 05:58:28 2005][13256:63168] [debug] ajp_init::jk_ajp_common.c (1941): setting number of retries to 3
      [Sat Jun 04 05:58:28 2005][13256:63168] [debug] ajp_create_endpoint_cache::jk_ajp_common.c (1818): setting connection cache size to 1
      [Sat Jun 04 05:58:28 2005][13256:63168] [debug] build_worker_map::jk_worker.c (231): removing old status*loadbalancer worker
      [Sat Jun 04 05:58:28 2005][13256:63168] [debug] jk_cleanup_shmem::mod_jk.c (1735): Shmem cleanup[Sat Jun 04 05:58:28 2005][13257:63168] [debug] do_shm_open::jk_shm.c (240): Truncated shared memory to 66560
      [Sat Jun 04 05:58:28 2005][13257:63168] [debug] do_shm_open::jk_shm.c (272): Initialized shared memory size=66560 free=65536 addr=0xb7fde000
      [Sat Jun 04 05:58:28 2005][13257:63168] [debug] do_shm_open_lock::jk_shm.c (182): Opened shared memory lock /tmp/jk.shm.lock
      [Sat Jun 04 05:58:28 2005][13257:63168] [debug] init_jk::mod_jk.c (2341): Initialized shm:/tmp/jk.shm
      [Sat Jun 04 05:58:28 2005][13257:63168] [debug] uri_worker_map_open::jk_uri_worker_map.c (324): rule map size is 9
      [Sat Jun 04 05:58:28 2005][13257:63168] [debug] uri_worker_map_add::jk_uri_worker_map.c (269): exact rule /jkstatus/=jkstatus was added
      [Sat Jun 04 05:58:28 2005][13257:63168] [debug] uri_worker_map_add::jk_uri_worker_map.c (261): wildchar rule /*.jsp=loadbalancer was added
      [Sat Jun 04 05:58:28 2005][13257:63168] [debug] uri_worker_map_add::jk_uri_worker_map.c (261): wildchar rule /*.jspx=loadbalancer was added
      [Sat Jun 04 05:58:28 2005][13257:63168] [debug] uri_worker_map_add::jk_uri_worker_map.c (261): wildchar rule /gas*=loadbalancer was added
      [Sat Jun 04 05:58:28 2005][13257:63168] [debug] uri_worker_map_add::jk_uri_worker_map.c (261): wildchar rule /wap*=loadbalancer was added
      [Sat Jun 04 05:58:28 2005][13257:63168] [debug] uri_worker_map_add::jk_uri_worker_map.c (261): wildchar rule /cm*=loadbalancer was added
      [Sat Jun 04 05:58:28 2005][13257:63168] [debug] uri_worker_map_add::jk_uri_worker_map.c (261): wildchar rule /test*=loadbalancer was added
      [Sat Jun 04 05:58:28 2005][13257:63168] [debug] uri_worker_map_add::jk_uri_worker_map.c (261): wildchar rule /portal*=loadbalancer was added
      [Sat Jun 04 05:58:28 2005][13257:63168] [debug] uri_worker_map_add::jk_uri_worker_map.c (261): wildchar rule /yck*=loadbalancer was added
      [Sat Jun 04 05:58:28 2005][13257:63168] [debug] uri_worker_map_open::jk_uri_worker_map.c (341): there are 9 rules
      [Sat Jun 04 05:58:28 2005][13257:63168] [debug] build_worker_map::jk_worker.c (219): creating worker loadbalancer
      [Sat Jun 04 05:58:28 2005][13257:63168] [debug] wc_create_worker::jk_worker.c (125): about to create instance loadbalancer of lb
      [Sat Jun 04 05:58:28 2005][13257:63168] [debug] wc_create_worker::jk_worker.c (138): about to validate and init loadbalancer
      [Sat Jun 04 05:58:28 2005][13257:63168] [debug] wc_create_worker::jk_worker.c (125): about to create instance node1 of ajp13
      [Sat Jun 04 05:58:28 2005][13257:63168] [debug] wc_create_worker::jk_worker.c (138): about to validate and init node1
      [Sat Jun 04 05:58:28 2005][13257:63168] [debug] ajp_validate::jk_ajp_common.c (1781): worker node1 contact is 'localhost:8009'
      [Sat Jun 04 05:58:28 2005][13257:63168] [debug] ajp_init::jk_ajp_common.c (1870): setting socket keepalive to 0
      [Sat Jun 04 05:58:28 2005][13257:63168] [debug] ajp_init::jk_ajp_common.c (1909): setting socket timeout to -1
      [Sat Jun 04 05:58:28 2005][13257:63168] [debug] ajp_init::jk_ajp_common.c (1913): setting socket buffer size to 0
      [Sat Jun 04 05:58:28 2005][13257:63168] [debug] ajp_init::jk_ajp_common.c (1917): setting connection recycle timeout to 0
      [Sat Jun 04 05:58:28 2005][13257:63168] [debug] ajp_init::jk_ajp_common.c (1921): setting cache timeout to 0
      [Sat Jun 04 05:58:28 2005][13257:63168] [debug] ajp_init::jk_ajp_common.c (1925): setting connect timeout to 0
      [Sat Jun 04 05:58:28 2005][13257:63168] [debug] ajp_init::jk_ajp_common.c (1929): setting reply timeout to 0
      [Sat Jun 04 05:58:28 2005][13257:63168] [debug] ajp_init::jk_ajp_common.c (1933): setting prepost timeout to 0
      [Sat Jun 04 05:58:28 2005][13257:63168] [debug] ajp_init::jk_ajp_common.c (1937): setting recovery opts to 0
      [Sat Jun 04 05:58:28 2005][13257:63168] [debug] ajp_init::jk_ajp_common.c (1941): setting number of retries to 3
      [Sat Jun 04 05:58:28 2005][13257:63168] [debug] ajp_create_endpoint_cache::jk_ajp_common.c (1818): setting connection cache size to 10
      [Sat Jun 04 05:58:28 2005][13257:63168] [debug] validate::jk_lb_worker.c (790): Balanced worker 0 has name node1 in domain
      [Sat Jun 04 05:58:28 2005][13257:63168] [debug] build_worker_map::jk_worker.c (231): removing old loadbalancer worker
      [Sat Jun 04 05:58:28 2005][13257:63168] [debug] build_worker_map::jk_worker.c (219): creating worker status*loadbalancer
      [Sat Jun 04 05:58:28 2005][13257:63168] [debug] wc_create_worker::jk_worker.c (125): about to create instance status*loadbalancer of ajp13
      [Sat Jun 04 05:58:28 2005][13257:63168] [debug] wc_create_worker::jk_worker.c (138): about to validate and init status*loadbalancer
      [Sat Jun 04 05:58:28 2005][13257:63168] [debug] ajp_validate::jk_ajp_common.c (1781): worker status*loadbalancer contact is 'localhost:8009'
      [Sat Jun 04 05:58:28 2005][13257:63168] [debug] ajp_init::jk_ajp_common.c (1870): setting socket keepalive to 0
      [Sat Jun 04 05:58:28 2005][13257:63168] [debug] ajp_init::jk_ajp_common.c (1909): setting socket timeout to -1
      [Sat Jun 04 05:58:28 2005][13257:63168] [debug] ajp_init::jk_ajp_common.c (1913): setting socket buffer size to 0
      [Sat Jun 04 05:58:28 2005][13257:63168] [debug] ajp_init::jk_ajp_common.c (1917): setting connection recycle timeout to 0
      [Sat Jun 04 05:58:28 2005][13257:63168] [debug] ajp_init::jk_ajp_common.c (1921): setting cache timeout to 0
      [Sat Jun 04 05:58:28 2005][13257:63168] [debug] ajp_init::jk_ajp_common.c (1925): setting connect timeout to 0
      [Sat Jun 04 05:58:28 2005][13257:63168] [debug] ajp_init::jk_ajp_common.c (1929): setting reply timeout to 0
      [Sat Jun 04 05:58:28 2005][13257:63168] [debug] ajp_init::jk_ajp_common.c (1933): setting prepost timeout to 0
      [Sat Jun 04 05:58:28 2005][13257:63168] [debug] ajp_init::jk_ajp_common.c (1937): setting recovery opts to 0
      [Sat Jun 04 05:58:28 2005][13257:63168] [debug] ajp_init::jk_ajp_common.c (1941): setting number of retries to 3
      [Sat Jun 04 05:58:28 2005][13257:63168] [debug] ajp_create_endpoint_cache::jk_ajp_common.c (1818): setting connection cache size to 1
      [Sat Jun 04 05:58:28 2005][13257:63168] [debug] build_worker_map::jk_worker.c (231): removing old status*loadbalancer worker
      [Sat Jun 04 05:58:28 2005][13260:63168] [debug] do_shm_open::jk_shm.c (200): Shared memory is already open
      [Sat Jun 04 05:58:28 2005][13260:63168] [debug] jk_child_init::mod_jk.c (2307): Attached shm:/tmp/jkshm
      Sat Jun 04 05:58:28 2005][13260:63168] [debug] jk_child_init::mod_jk.c (2317): Initialized mod_jk/1.2.10
      [Sat Jun 04 05:58:28 2005][13261:63168] [debug] do_shm_open::jk_shm.c (200): Shared memory is already open
      [Sat Jun 04 05:58:28 2005][13261:63168] [debug] jk_child_init::mod_jk.c (2307): Attached shm:/tmp/jk.shm
      [Sat Jun 04 05:58:28 2005][13261:63168] [debug] jk_child_init::mod_jk.c (2317): Initialized mod_jk/1.2.10
      [Sat Jun 04 05:58:28 2005][13262:63168] [debug] do_shm_open::jk_shm.c (200): Shared memory is already open
      [Sat Jun 04 05:58:28 2005][13262:63168] [debug] jk_child_init::mod_jk.c (2307): Attached shm:/tmp/jk.shm
      [Sat Jun 04 05:58:28 2005][13262:63168] [debug] jk_child_init::mod_jk.c (2317): Initialized mod_jk/1.2.10
      [Sat Jun 04 05:58:28 2005][13263:63168] [debug] do_shm_open::jk_shm.c (200): Shared memory is already open
      [Sat Jun 04 05:58:28 2005][13263:63168] [debug] jk_child_init::mod_jk.c (2307): Attached shm:/tmp/jk.shm
      [Sat Jun 04 05:58:28 2005][13263:63168] [debug] jk_child_init::mod_jk.c (2317): Initialized mod_jk/1.2.10
      [Sat Jun 04 05:58:28 2005][13264:63168] [debug] do_shm_open::jk_shm.c (200): Shared memory is already open
      [Sat Jun 04 05:58:28 2005][13264:63168] [debug] jk_child_init::mod_jk.c (2307): Attached shm:/tmp/jk.shm
      [Sat Jun 04 05:58:28 2005][13264:63168] [debug] jk_child_init::mod_jk.c (2317): Initialized mod_jk/1.2.10
      [Sat Jun 04 05:58:28 2005][13265:63168] [debug] do_shm_open::jk_shm.c (200): Shared memory is already open
      [Sat Jun 04 05:58:28 2005][13265:63168] [debug] jk_child_init::mod_jk.c (2307): Attached shm:/tmp/jk.shm
      [Sat Jun 04 05:58:28 2005][13265:63168] [debug] jk_child_init::mod_jk.c (2317): Initialized mod_jk/1.2.10
      [Sat Jun 04 05:58:28 2005][13266:63168] [debug] do_shm_open::jk_shm.c (200): Shared memory is already open
      [Sat Jun 04 05:58:28 2005][13266:63168] [debug] jk_child_init::mod_jk.c (2307): Attached shm:/tmp/jk.shm
      [Sat Jun 04 05:58:28 2005][13266:63168] [debug] jk_child_init::mod_jk.c (2317): Initialized mod_jk/1.2.10
      [Sat Jun 04 05:58:28 2005][13267:63168] [debug] do_shm_open::jk_shm.c (200): Shared memory is already open
      [Sat Jun 04 05:58:28 2005][13267:63168] [debug] jk_child_init::mod_jk.c (2307): Attached shm:/tmp/jk.shm
      [Sat Jun 04 05:58:28 2005][13267:63168] [debug] jk_child_init::mod_jk.c (2317): Initialized mod_jk/1.2.10
      [Sat Jun 04 05:58:43 2005][13260:63168] [debug] map_uri_to_worker::jk_uri_worker_map.c (455): Attempting to map URI '/a.jsp' from 9 maps
      [Sat Jun 04 05:58:43 2005][13260:63168] [debug] map_uri_to_worker::jk_uri_worker_map.c (467): Attempting to map context URI '/jkstatus/'
      [Sat Jun 04 05:58:43 2005][13260:63168] [debug] map_uri_to_worker::jk_uri_worker_map.c (467): Attempting to map context URI '/portal*'
      [Sat Jun 04 05:58:43 2005][13260:63168] [debug] map_uri_to_worker::jk_uri_worker_map.c (467): Attempting to map context URI '/*.jspx'
      [Sat Jun 04 05:58:43 2005][13260:63168] [debug] map_uri_to_worker::jk_uri_worker_map.c (467): Attempting to map context URI '/*.jsp'
      [Sat Jun 04 05:58:43 2005][13260:63168] [debug] map_uri_to_worker::jk_uri_worker_map.c (481): Found a wildchar match loadbalancer -> /*.jsp
      [Sat Jun 04 05:58:43 2005][13260:63168] [debug] jk_handler::mod_jk.c (1814): Into handler jakarta-servlet worker=loadbalancer r->proxyreq=0
      [Sat Jun 04 05:58:43 2005][13260:63168] [debug] wc_get_worker_for_name::jk_worker.c (94): found a worker loadbalancer
      [Sat Jun 04 05:58:43 2005][13260:63168] [debug] init_ws_service::mod_jk.c (483): agsp=80 agsn=www.host hostn=host shostn=host cbsport=0 sport=0 claport=80
      [Sat Jun 04 05:58:43 2005][13260:63168] [debug] service::jk_lb_worker.c (536): service sticky_session=1
      [Sat Jun 04 05:58:43 2005][13260:63168] [debug] ajp_get_endpoint::jk_ajp_common.c (2132): acquired connection cache slot=0
      [Sat Jun 04 05:58:43 2005][13260:63168] [debug] service::jk_lb_worker.c (556): service worker=node1 jvm_route=node1 rc=1
      [Sat Jun 04 05:58:43 2005][13260:63168] [debug] ajp_marshal_into_msgb::jk_ajp_common.c (551): ajp marshaling done
      [Sat Jun 04 05:58:43 2005][13260:63168] [debug] ajp_service::jk_ajp_common.c (1646): processing with 3 retries
      [Sat Jun 04 05:58:43 2005][13260:63168] [debug] jk_open_socket::jk_connect.c (317): socket TCP_NODELAY set to On
      [Sat Jun 04 05:58:43 2005][13260:63168] [debug] jk_open_socket::jk_connect.c (415): trying to connect socket 22 to 127.0.0.1:8009
      [Sat Jun 04 05:58:43 2005][13260:63168] [debug] jk_open_socket::jk_connect.c (441): socket 22 connected to 127.0.0.1:8009
      [Sat Jun 04 05:58:43 2005][13260:63168] [debug] ajp_connect_to_endpoint::jk_ajp_common.c (842): connected sd = 22 to 127.0.0.1:8009
      [Sat Jun 04 05:58:43 2005][13260:63168] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (898): sending to ajp13 pos=4 len=207 max=8192
      [Sat Jun 04 05:58:43 2005][13260:63168] [debug] ajp_send_request::jk_ajp_common.c (1240): request body to send 0 - request body to resend 0
      [Sat Jun 04 05:58:43 2005][13260:63168] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1024): received from ajp13 pos=0 len=177 max=8192
      [Sat Jun 04 05:58:43 2005][13260:63168] [debug] ajp_unmarshal_response::jk_ajp_common.c (606): status = 404
      [Sat Jun 04 05:58:43 2005][13260:63168] [debug] ajp_unmarshal_response::jk_ajp_common.c (613): Number of headers is = 3
      [Sat Jun 04 05:58:43 2005][13260:63168] [debug] ajp_unmarshal_response::jk_ajp_common.c (669): Header[0] [X-Powered-By] = [Servlet 2.4; JBoss-4.0.2 (build: CVSTag=JBoss_4_0_2 date=200505022023)/Tomcat-5.5][Sat Jun 04 05:58:43 2005][13260:63168] [debug] ajp_unmarshal_response::jk_ajp_common.c (669): Header[1] [Content-Type] = [text/html;charset=utf-8]
      [Sat Jun 04 05:58:43 2005][13260:63168] [debug] ajp_unmarshal_response::jk_ajp_common.c (669): Header[2] [Content-Length] = [968]
      [Sat Jun 04 05:58:43 2005][13260:63168] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1024): received from ajp13 pos=0 len=972 max=8192
      [Sat Jun 04 05:58:43 2005][13260:63168] [debug] ws_write::mod_jk.c (380): writing 968 (968) out of 968
      [Sat Jun 04 05:58:43 2005][13260:63168] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1024): received from ajp13 pos=0 len=2 max=8192
      [Sat Jun 04 05:58:43 2005][13260:63168] [debug] ajp_done::jk_ajp_common.c (2046): recycling connection cache slot=0 for worker node1
      [Sat Jun 04 05:58:43 2005][13260:63168] loadbalancer www.host 0.004352
      [Sat Jun 04 05:58:43 2005][13260:63168] [debug] jk_handler::mod_jk.c (1959): Service finished with status=404 for worker=loadbalancer
      


        • 1. Re: mod_jk 1.2.10 cause 404 error of jsp file in apache docu
          tatkinson

          caigao,

          The 404 error message you received is from Apache Tomcat (which is used by JBoss as a servlet container). This is because your mod-jk.conf file is telling Apache web server to pass all requests for .jsp files to Tomcat, as it should. Apache will not look for any .jsp files in its DocumentRoot; it will simply pass the request for that file on to Tomcat/JBoss. In order for your simple a.jsp file to be found by Tomcat, it will need to be deployed to JBoss inside a war or ear. As a simple test, add port 8080 to the URL you expect to find your file. For example: http://server:8080/jmx-console

          Hope this helps,
          Trey

          • 2. Re: mod_jk 1.2.10 cause 404 error of jsp file in apache docu
            carson.zeng

            Hello, Caigao,

            I am a chinise guy. Recently, I have some trouble in integrating the JBoss 4.0.2 and Apache 2.0.54. Just now, I reference your configuration data. But I am still failed in my configuration. Can you give your configed detail data to me? Thanks very much.
            The following is my error information from mod_jk.log.

            21:05:49 2005][info] jk_handler::mod_jk.c (1975): Service error=0 for worker=loadbalancer
            [Wed Jun 29 21:13:33 2005][info] jk_open_socket::jk_connect.c (433): connect to 127.0.0.1:8009 failed with errno=61
            [Wed Jun 29 21:13:33 2005][info] ajp_connect_to_endpoint::jk_ajp_common.c (877): Failed connecting to tomcat. Tomcat is probably not started or is listening on the wrong host/port (127.0.0.1:8009). Failed errno = 61
            [Wed Jun 29 21:13:33 2005][info] ajp_send_request::jk_ajp_common.c (1227): Error connecting to the Tomcat process.
            [Wed Jun 29 21:13:33 2005][info] ajp_service::jk_ajp_common.c (1724): Sending request to tomcat failed, recoverable operation attempt=1
            [Wed Jun 29 21:13:34 2005][info] jk_open_socket::jk_connect.c (433): connect to 127.0.0.1:8009 failed with errno=61
            [Wed Jun 29 21:13:34 2005][info] ajp_connect_to_endpoint::jk_ajp_common.c (877): Failed connecting to tomcat. Tomcat is probably not started or is listening on the wrong host/port (127.0.0.1:8009). Failed errno = 61
            [Wed Jun 29 21:13:34 2005][info] ajp_send_request::jk_ajp_common.c (1227): Error connecting to the Tomcat process.
            [Wed Jun 29 21:13:34 2005][info] ajp_service::jk_ajp_common.c (1724): Sending request to tomcat failed, recoverable operation attempt=2
            [Wed Jun 29 21:13:35 2005][info] jk_open_socket::jk_connect.c (433): connect to 127.0.0.1:8009 failed with errno=61
            [Wed Jun 29 21:13:35 2005][info] ajp_connect_to_endpoint::jk_ajp_common.c (877): Failed connecting to tomcat. Tomcat is probably not started or is listening on the wrong host/port (127.0.0.1:8009). Failed errno = 61
            [Wed Jun 29 21:13:35 2005][info] ajp_send_request::jk_ajp_common.c (1227): Error connecting to the Tomcat process.
            [Wed Jun 29 21:13:35 2005][info] ajp_service::jk_ajp_common.c (1724): Sending request to tomcat failed, recoverable operation attempt=3
            [Wed Jun 29 21:13:35 2005][error] ajp_service::jk_ajp_common.c (1733): Error connecting to tomcat. Tomcat is probably not started or is listening on the wrong port. worker=node1 failed
            [Wed Jun 29 21:13:35 2005][info] service::jk_lb_worker.c (627): service failed, worker node1 is in error state
            [Wed Jun 29 21:13:35 2005][info] service::jk_lb_worker.c (677): All tomcat instances are busy or in error state
            [Wed Jun 29 21:13:35 2005]loadbalancer carson 2.954000

            [Wed Jun 29 21:13:35 2005][info] jk_handler::mod_jk.c (1975): Service error=0 for worker=loadbalancer

            • 3. Re: mod_jk 1.2.10 cause 404 error of jsp file in apache docu
              caigao

              JUST FOLLOWING THE WIKI YOU WILL GET MORE.


              "carson.zeng" wrote:
              Hello, Caigao,

              I am a chinise guy. Recently, I have some trouble in integrating the JBoss 4.0.2 and Apache 2.0.54. Just now, I reference your configuration data. But I am still failed in my configuration. Can you give your configed detail data to me? Thanks very much.
              The following is my error information from mod_jk.log.

              21:05:49 2005][info] jk_handler::mod_jk.c (1975): Service error=0 for worker=loadbalancer
              [Wed Jun 29 21:13:33 2005][info] jk_open_socket::jk_connect.c (433): connect to 127.0.0.1:8009 failed with errno=61
              [Wed Jun 29 21:13:33 2005][info] ajp_connect_to_endpoint::jk_ajp_common.c (877): Failed connecting to tomcat. Tomcat is probably not started or is listening on the wrong host/port (127.0.0.1:8009). Failed errno = 61
              [Wed Jun 29 21:13:33 2005][info] ajp_send_request::jk_ajp_common.c (1227): Error connecting to the Tomcat process.
              [Wed Jun 29 21:13:33 2005][info] ajp_service::jk_ajp_common.c (1724): Sending request to tomcat failed, recoverable operation attempt=1
              [Wed Jun 29 21:13:34 2005][info] jk_open_socket::jk_connect.c (433): connect to 127.0.0.1:8009 failed with errno=61
              [Wed Jun 29 21:13:34 2005][info] ajp_connect_to_endpoint::jk_ajp_common.c (877): Failed connecting to tomcat. Tomcat is probably not started or is listening on the wrong host/port (127.0.0.1:8009). Failed errno = 61
              [Wed Jun 29 21:13:34 2005][info] ajp_send_request::jk_ajp_common.c (1227): Error connecting to the Tomcat process.
              [Wed Jun 29 21:13:34 2005][info] ajp_service::jk_ajp_common.c (1724): Sending request to tomcat failed, recoverable operation attempt=2
              [Wed Jun 29 21:13:35 2005][info] jk_open_socket::jk_connect.c (433): connect to 127.0.0.1:8009 failed with errno=61
              [Wed Jun 29 21:13:35 2005][info] ajp_connect_to_endpoint::jk_ajp_common.c (877): Failed connecting to tomcat. Tomcat is probably not started or is listening on the wrong host/port (127.0.0.1:8009). Failed errno = 61
              [Wed Jun 29 21:13:35 2005][info] ajp_send_request::jk_ajp_common.c (1227): Error connecting to the Tomcat process.
              [Wed Jun 29 21:13:35 2005][info] ajp_service::jk_ajp_common.c (1724): Sending request to tomcat failed, recoverable operation attempt=3
              [Wed Jun 29 21:13:35 2005][error] ajp_service::jk_ajp_common.c (1733): Error connecting to tomcat. Tomcat is probably not started or is listening on the wrong port. worker=node1 failed
              [Wed Jun 29 21:13:35 2005][info] service::jk_lb_worker.c (627): service failed, worker node1 is in error state
              [Wed Jun 29 21:13:35 2005][info] service::jk_lb_worker.c (677): All tomcat instances are busy or in error state
              [Wed Jun 29 21:13:35 2005]loadbalancer carson 2.954000

              [Wed Jun 29 21:13:35 2005][info] jk_handler::mod_jk.c (1975): Service error=0 for worker=loadbalancer