tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Giorgio Ponza" <g.po...@opla.it>
Subject Re: Apache and Tomcat on different machines using mod_jk (ajp13)
Date Thu, 12 Jun 2003 14:59:55 GMT
> worker.list = remote
what is that? is not worker.list=ajp13 ?
in the tomcat machine the  machineB.com must be resolved (usually by hosts
file)
This same name machineB.com must be in your apache httpd.conf defining the
ServerName

Giorgio Ponza

----- Original Message -----
From: "Amit Kumar" <kumar@glue.umd.edu>
To: <tomcat-user@jakarta.apache.org>
Sent: Thursday, June 12, 2003 4:51 PM
Subject: Apache and Tomcat on different machines using mod_jk (ajp13)


> Hi
>
> I am hoping to get some pointers and help. I am trying to setup
> connection between apache on machine A to tomcat on machine B.
>
> Here is the setup
>
> Machine A (Apache http)
>
> Machine B (tomcat ajp13 listening on port number 8011)
>
> Case I
> I have been able to install and use mod_jk.so to connect to tomcat on
> the same machine (Machine A), and there is no problem.
>
> Case II
> How ever i am not able to connect to tomcat on Machine B ( i understand
> it is possible ? ).
>
> The workers.properties for this case on Machine A is
> worker.remote.port=8011
> worker.remote.host=machineB.com
> worker.remote.type=ajp13
>
>
>
> The relevant entries in httpd.conf on Machine A are
> ##START
> LoadModule jk_module libexec/mod_jk.so
> AddModule mod_jk.c
>
> JkWorkersFile /usr/local/tomcat/conf/jk/workers.properties
> JkLogFile /usr/local/apache/logs/mod_jk.log
> JkLogLevel debug
> JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
> JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
> JkRequestLogFormat "%w %V %T"
>
>
>
> JkMount /eada/* remote
> JkMount /eada/*.jsp remote
>
> ##END
>
> I have checked:
> On Machine B
> ajp13 is listening on 8011 (Connector is defined in server.xml) and
> that i can access http://machineB:8080/eada
>
>
> How ever i get 404 messages from apache (not from tomcat) when i try to
> access
> http://machineA/eada/index.jsp
>
>
> The mod_jk.log (machine A) does not show any error or info how ever in
> debug mode shows the following ( line 16 it says remote worker contact
> is machineB.com:8011). Line 46 it tries to match uri /eada/* how ever at
> this step if i understand correctly remote worker should kick in and
> communicate with machineB (is that right) ?
>
>
> 1 [Thu Jun 12 10:38:40 2003]  [jk_uri_worker_map.c (172)]: Into
> jk_uri_worker_map_t::uri_worker_map_alloc
>       2 [Thu Jun 12 10:38:40 2003]  [jk_uri_worker_map.c (375)]: Into
> jk_uri_worker_map_t::uri_worker_map_open
>       3 [Thu Jun 12 10:38:40 2003]  [jk_uri_worker_map.c (396)]:
> jk_uri_worker_map_t::uri_worker_map_open, rule map size is 2
>       4 [Thu Jun 12 10:38:40 2003]  [jk_uri_worker_map.c (321)]: Into
> jk_uri_worker_map_t::uri_worker_map_open, match rule /eada/=remote was
> added
>       5 [Thu Jun 12 10:38:40 2003]  [jk_uri_worker_map.c (299)]: Into
> jk_uri_worker_map_t::uri_worker_map_open, suffix rule /eada/.jsp=remote
> was added
>       6 [Thu Jun 12 10:38:40 2003]  [jk_uri_worker_map.c (408)]: Into
> jk_uri_worker_map_t::uri_worker_map_open, there are 2 rules
>       7 [Thu Jun 12 10:38:40 2003]  [jk_uri_worker_map.c (422)]:
> jk_uri_worker_map_t::uri_worker_map_open, done
>       8 [Thu Jun 12 10:38:40 2003]  [jk_worker.c (88)]: Into wc_open
>       9 [Thu Jun 12 10:38:40 2003]  [jk_worker.c (222)]: Into
> build_worker_map, creating 1 workers
>      10 [Thu Jun 12 10:38:40 2003]  [jk_worker.c (228)]:
> build_worker_map, creating worker remote
>      11 [Thu Jun 12 10:38:40 2003]  [jk_worker.c (148)]: Into
> wc_create_worker
>      12 [Thu Jun 12 10:38:40 2003]  [jk_worker.c (162)]:
> wc_create_worker, about to create instance remote of ajp13
>      13 [Thu Jun 12 10:38:40 2003]  [jk_ajp13_worker.c (108)]: Into
> ajp13_worker_factory
>      14 [Thu Jun 12 10:38:40 2003]  [jk_worker.c (171)]:
> wc_create_worker, about to validate and init remote
>      15 [Thu Jun 12 10:38:40 2003]  [jk_ajp_common.c (1343)]: Into
> jk_worker_t::validate
>      16 [Thu Jun 12 10:38:40 2003]  [jk_ajp_common.c (1364)]: In
> jk_worker_t::validate for worker remote contact is machineB.com:8011
>      17 [Thu Jun 12 10:38:40 2003]  [jk_ajp_common.c (1397)]: Into
> jk_worker_t::init
>      18 [Thu Jun 12 10:38:40 2003]  [jk_ajp_common.c (1421)]: In
> jk_worker_t::init, setting socket timeout to 0
>      19 [Thu Jun 12 10:38:40 2003]  [jk_worker.c (187)]:
> wc_create_worker, done
>      20 [Thu Jun 12 10:38:40 2003]  [jk_worker.c (238)]:
> build_worker_map, removing old remote worker
>      21 [Thu Jun 12 10:38:40 2003]  [jk_worker.c (250)]:
> build_worker_map, done
>      22 [Thu Jun 12 10:38:40 2003]  [jk_worker.c (111)]: wc_open, done 1
>      23 [Thu Jun 12 10:38:40 2003]  [jk_uri_worker_map.c (172)]: Into
> jk_uri_worker_map_t::uri_worker_map_alloc
>      24 [Thu Jun 12 10:38:40 2003]  [jk_uri_worker_map.c (375)]: Into
> jk_uri_worker_map_t::uri_worker_map_open
>      25 [Thu Jun 12 10:38:40 2003]  [jk_uri_worker_map.c (396)]:
> jk_uri_worker_map_t::uri_worker_map_open, rule map size is 2
>      26 [Thu Jun 12 10:38:40 2003]  [jk_uri_worker_map.c (321)]: Into
> jk_uri_worker_map_t::uri_worker_map_open, match rule /eada/=remote was
> added
>      27 [Thu Jun 12 10:38:40 2003]  [jk_uri_worker_map.c (299)]: Into
> jk_uri_worker_map_t::uri_worker_map_open, suffix rule /eada/.jsp=remote
> was added
>      28 [Thu Jun 12 10:38:40 2003]  [jk_uri_worker_map.c (408)]: Into
> jk_uri_worker_map_t::uri_worker_map_open, there are 2 rules
>      29 [Thu Jun 12 10:38:40 2003]  [jk_uri_worker_map.c (422)]:
> jk_uri_worker_map_t::uri_worker_map_open, done
>      30 [Thu Jun 12 10:38:40 2003]  [jk_worker.c (88)]: Into wc_open
>  31 [Thu Jun 12 10:38:40 2003]  [jk_worker.c (222)]: Into
> build_worker_map, creating 1 workers
>      32 [Thu Jun 12 10:38:40 2003]  [jk_worker.c (228)]:
> build_worker_map, creating worker remote
>      33 [Thu Jun 12 10:38:40 2003]  [jk_worker.c (148)]: Into
> wc_create_worker
>      34 [Thu Jun 12 10:38:40 2003]  [jk_worker.c (162)]:
> wc_create_worker, about to create instance remote of ajp13
>      35 [Thu Jun 12 10:38:40 2003]  [jk_ajp13_worker.c (108)]: Into
> ajp13_worker_factory
>      36 [Thu Jun 12 10:38:40 2003]  [jk_worker.c (171)]:
> wc_create_worker, about to validate and init remote
>      37 [Thu Jun 12 10:38:40 2003]  [jk_ajp_common.c (1343)]: Into
> jk_worker_t::validate
>      38 [Thu Jun 12 10:38:40 2003]  [jk_ajp_common.c (1364)]: In
> jk_worker_t::validate for worker remote contact is mith2.umd.edu:8011
>      39 [Thu Jun 12 10:38:40 2003]  [jk_ajp_common.c (1397)]: Into
> jk_worker_t::init
>      40 [Thu Jun 12 10:38:40 2003]  [jk_ajp_common.c (1421)]: In
> jk_worker_t::init, setting socket timeout to 0
>      41 [Thu Jun 12 10:38:40 2003]  [jk_worker.c (187)]:
> wc_create_worker, done
>      42 [Thu Jun 12 10:38:40 2003]  [jk_worker.c (238)]:
> build_worker_map, removing old remote worker
>      43 [Thu Jun 12 10:38:40 2003]  [jk_worker.c (250)]:
> build_worker_map, done
>      44 [Thu Jun 12 10:38:40 2003]  [jk_worker.c (111)]: wc_open, done 1
>      45 [Thu Jun 12 10:39:44 2003]  [jk_uri_worker_map.c (460)]: Into
> jk_uri_worker_map_t::map_uri_to_worker
>      46 [Thu Jun 12 10:39:44 2003]  [jk_uri_worker_map.c (477)]:
> Attempting to map URI '/eada'
>      47 [Thu Jun 12 10:39:44 2003]  [jk_uri_worker_map.c (599)]:
> jk_uri_worker_map_t::map_uri_to_worker, done without a match
>
>
>
>
> Can any one help and suggest what is wrong that i am doing. I am stuck.
> Any pointers would be helpful.
>
> regards
> Amit
>
>
> --
> Amit Kumar <kumar!at!glue.umd.edu>
> MITH
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message