At 05:28 PM 26/03/2002 +0100, you wrote:
>I have a line with LoadModule and one with AddModule and without the '!'. 
>But someone seems to call mod_jk, so your config could be ok.
>
>I think you don't need the ajp12 worker for mod_jk. Than your worker list 
>contains only the ajp13 worker. Next I saw in your server.xml that the 
>Ajp13Connector was commented out. You need this connector when you want to 
>connect to tomcat with ajp13. The log from mod_jk looks like that the 
>module can't connect to tomcat.

Where did you see that in the log ?

after a few modifications, here's the mod_jk again... No more ajp12, and I 
don't see any connection problem onto port 8009

[Tue Mar 26 14:03:44 2002]  [jk_uri_worker_map.c (170)]: Into 
jk_uri_worker_map_t::uri_worker_map_alloc
[Tue Mar 26 14:03:44 2002]  [jk_uri_worker_map.c (362)]: Into 
jk_uri_worker_map_t::uri_worker_map_open
[Tue Mar 26 14:03:44 2002]  [jk_uri_worker_map.c (383)]: 
jk_uri_worker_map_t::uri_worker_map_open, rule map size is 0
[Tue Mar 26 14:03:44 2002]  [jk_uri_worker_map.c (409)]: 
jk_uri_worker_map_t::uri_worker_map_open, done
[Tue Mar 26 14:03:44 2002]  [jk_worker.c (88)]: Into wc_open
[Tue Mar 26 14:03:44 2002]  [jk_worker.c (222)]: Into build_worker_map, 
creating 1 workers
[Tue Mar 26 14:03:44 2002]  [jk_worker.c (228)]: build_worker_map, creating 
worker ajp13
[Tue Mar 26 14:03:44 2002]  [jk_worker.c (148)]: Into wc_create_worker
[Tue Mar 26 14:03:44 2002]  [jk_worker.c (162)]: wc_create_worker, about to 
create instance ajp13 of ajp13
[Tue Mar 26 14:03:44 2002]  [jk_ajp13_worker.c (108)]: Into 
ajp13_worker_factory
[Tue Mar 26 14:03:44 2002]  [jk_worker.c (171)]: wc_create_worker, about to 
validate and init ajp13
[Tue Mar 26 14:03:44 2002]  [jk_ajp_common.c (1174)]: Into 
jk_worker_t::validate
[Tue Mar 26 14:03:44 2002]  [jk_ajp_common.c (1194)]: In 
jk_worker_t::validate for worker ajp13 contact is limselsrv:8009
[Tue Mar 26 14:03:44 2002]  [jk_ajp_common.c (1222)]: Into jk_worker_t::init
[Tue Mar 26 14:03:44 2002]  [jk_worker.c (187)]: wc_create_worker, done
[Tue Mar 26 14:03:44 2002]  [jk_worker.c (238)]: build_worker_map, removing 
old ajp13 worker
[Tue Mar 26 14:03:44 2002]  [jk_worker.c (250)]: build_worker_map, done
[Tue Mar 26 14:03:44 2002]  [jk_worker.c (111)]: wc_open, done 1
[Tue Mar 26 14:03:44 2002]  [jk_uri_worker_map.c (170)]: Into 
jk_uri_worker_map_t::uri_worker_map_alloc
[Tue Mar 26 14:03:44 2002]  [jk_uri_worker_map.c (362)]: Into 
jk_uri_worker_map_t::uri_worker_map_open
[Tue Mar 26 14:03:44 2002]  [jk_uri_worker_map.c (383)]: 
jk_uri_worker_map_t::uri_worker_map_open, rule map size is 0
[Tue Mar 26 14:03:44 2002]  [jk_uri_worker_map.c (409)]: 
jk_uri_worker_map_t::uri_worker_map_open, done
[Tue Mar 26 14:03:44 2002]  [jk_worker.c (88)]: Into wc_open
[Tue Mar 26 14:03:44 2002]  [jk_worker.c (222)]: Into build_worker_map, 
creating 1 workers
[Tue Mar 26 14:03:44 2002]  [jk_worker.c (228)]: build_worker_map, creating 
worker ajp13
[Tue Mar 26 14:03:44 2002]  [jk_worker.c (148)]: Into wc_create_worker
[Tue Mar 26 14:03:44 2002]  [jk_worker.c (162)]: wc_create_worker, about to 
create instance ajp13 of ajp13
[Tue Mar 26 14:03:44 2002]  [jk_ajp13_worker.c (108)]: Into 
ajp13_worker_factory
[Tue Mar 26 14:03:44 2002]  [jk_worker.c (171)]: wc_create_worker, about to 
validate and init ajp13
[Tue Mar 26 14:03:44 2002]  [jk_ajp_common.c (1174)]: Into 
jk_worker_t::validate
[Tue Mar 26 14:03:44 2002]  [jk_ajp_common.c (1194)]: In 
jk_worker_t::validate for worker ajp13 contact is limselsrv:8009
[Tue Mar 26 14:03:44 2002]  [jk_ajp_common.c (1222)]: Into jk_worker_t::init
[Tue Mar 26 14:03:44 2002]  [jk_worker.c (187)]: wc_create_worker, done
[Tue Mar 26 14:03:44 2002]  [jk_worker.c (238)]: build_worker_map, removing 
old ajp13 worker
[Tue Mar 26 14:03:44 2002]  [jk_worker.c (250)]: build_worker_map, done
[Tue Mar 26 14:03:44 2002]  [jk_worker.c (111)]: wc_open, done 1

Same problem on connection !

[Tue Mar 26 14:04:35 2002]  [jk_uri_worker_map.c (447)]: Into 
jk_uri_worker_map_t::map_uri_to_worker
[Tue Mar 26 14:04:35 2002]  [jk_uri_worker_map.c (464)]: Attempting to map 
URI '/limselControl/index.jsp'
[Tue Mar 26 14:04:35 2002]  [jk_uri_worker_map.c (570)]: 
jk_uri_worker_map_t::map_uri_to_worker, done without a match




>Than I would make the Context config in server.xml as small as possible. 
>Do you need the Realms and ResourceParams?
>
>After activating the Ajp13Connector in server.xml you should see a request 
>in your AccessLogValve Logfile when requesting
>
>http://localhost:9000/limselControl

I've cleaned up my server.xml file... more readable... I've added the ajp13 
connector,
I noticed that tomcat is now starting a tcp listener onto port 8009, but a 
netstat shows me that apache is never connecting to port 8009 (no 
ESTABLISHED or TIME_WAIT lines)

...... :(

>If there are still problems you should activate the logging in tomcat. 
>Tomcat will tell you how it want's to match paths to Contexts and 
>Servlets/JSPs.
>
>Bernd
>
>Fabien Nisol wrote:
>>Thank for your reply :) I'm really stuck out there
>>I've changed my mod_jk.conf to :
>>########## Auto generated on Mon Mar 25 15:27:15 GMT-05:00 2002##########
>><IfModule !mod_jk.c>
>>   LoadModule jk_module libexec/mod_jk.so
>></IfModule>
>>JkWorkersFile 
>>"/disk14/products/tomcat/jakarta-tomcat-4.0.3/conf/jk/workers.properties"
>>JkLogFile "/disk14/products/tomcat/jakarta-tomcat-4.0.3/logs/mod_jk.log"
>>JkLogLevel debug
>>
>><VirtualHost localhost:9000>
>>     ServerName localhost
>>     JkMount /limselControl ajp13
>>     JkMount /limselControl/*.jsp ajp13
>></VirtualHost>
>>on startup, mod_jk.log gives the following messages (notice the worker 
>>related log)
>>[Tue Mar 26 09:51:24 2002]  [jk_uri_worker_map.c (170)]: Into 
>>jk_uri_worker_map_t::uri_worker_map_alloc
>>[Tue Mar 26 09:51:24 2002]  [jk_uri_worker_map.c (362)]: Into 
>>jk_uri_worker_map_t::uri_worker_map_open
>>[Tue Mar 26 09:51:24 2002]  [jk_uri_worker_map.c (383)]: 
>>jk_uri_worker_map_t::uri_worker_map_open, rule map size is 0
>>[Tue Mar 26 09:51:24 2002]  [jk_uri_worker_map.c (409)]: 
>>jk_uri_worker_map_t::uri_worker_map_open, done
>>[Tue Mar 26 09:51:24 2002]  [jk_worker.c (88)]: Into wc_open
>>[Tue Mar 26 09:51:24 2002]  [jk_worker.c (222)]: Into build_worker_map, 
>>creating 2 workers
>>[Tue Mar 26 09:51:24 2002]  [jk_worker.c (228)]: build_worker_map, 
>>creating worker ajp12
>>[Tue Mar 26 09:51:24 2002]  [jk_worker.c (148)]: Into wc_create_worker
>>[Tue Mar 26 09:51:24 2002]  [jk_worker.c (162)]: wc_create_worker, about 
>>to create instance ajp12 of ajp12
>>[Tue Mar 26 09:51:24 2002]  [jk_ajp12_worker.c (268)]: Into 
>>ajp12_worker_factory
>>[Tue Mar 26 09:51:24 2002]  [jk_worker.c (171)]: wc_create_worker, about 
>>to validate and init ajp12
>>[Tue Mar 26 09:51:24 2002]  [jk_ajp12_worker.c (185)]: Into 
>>jk_worker_t::validate
>>[Tue Mar 26 09:51:24 2002]  [jk_ajp12_worker.c (197)]: In 
>>jk_worker_t::validate for worker ajp12 contact is localhost:8007
>>[Tue Mar 26 09:51:24 2002]  [jk_worker.c (187)]: wc_create_worker, done
>>[Tue Mar 26 09:51:24 2002]  [jk_worker.c (238)]: build_worker_map, 
>>removing old ajp12 worker
>>[Tue Mar 26 09:51:24 2002]  [jk_worker.c (228)]: build_worker_map, 
>>creating worker ajp13
>>[Tue Mar 26 09:51:24 2002]  [jk_worker.c (148)]: Into wc_create_worker
>>[Tue Mar 26 09:51:24 2002]  [jk_worker.c (162)]: wc_create_worker, about 
>>to create instance ajp13 of ajp13
>>[Tue Mar 26 09:51:24 2002]  [jk_ajp13_worker.c (108)]: Into 
>>ajp13_worker_factory
>>[Tue Mar 26 09:51:24 2002]  [jk_worker.c (171)]: wc_create_worker, about 
>>to validate and init ajp13
>>[Tue Mar 26 09:51:24 2002]  [jk_ajp_common.c (1174)]: Into 
>>jk_worker_t::validate
>>[Tue Mar 26 09:51:24 2002]  [jk_ajp_common.c (1194)]: In 
>>jk_worker_t::validate for worker ajp13 contact is localhost:8009
>>[Tue Mar 26 09:51:24 2002]  [jk_ajp_common.c (1222)]: Into jk_worker_t::init
>>[Tue Mar 26 09:51:24 2002]  [jk_worker.c (187)]: wc_create_worker, done
>>[Tue Mar 26 09:51:24 2002]  [jk_worker.c (238)]: build_worker_map, 
>>removing old ajp13 worker
>>[Tue Mar 26 09:51:24 2002]  [jk_worker.c (250)]: build_worker_map, done
>>[Tue Mar 26 09:51:24 2002]  [jk_worker.c (111)]: wc_open, done 2
>>[Tue Mar 26 09:51:24 2002]  [jk_uri_worker_map.c (170)]: Into 
>>jk_uri_worker_map_t::uri_worker_map_alloc
>>[Tue Mar 26 09:51:24 2002]  [jk_uri_worker_map.c (362)]: Into 
>>jk_uri_worker_map_t::uri_worker_map_open
>>[Tue Mar 26 09:51:24 2002]  [jk_uri_worker_map.c (383)]: 
>>jk_uri_worker_map_t::uri_worker_map_open, rule map size is 0
>>[Tue Mar 26 09:51:24 2002]  [jk_uri_worker_map.c (409)]: 
>>jk_uri_worker_map_t::uri_worker_map_open, done
>>[Tue Mar 26 09:51:24 2002]  [jk_worker.c (88)]: Into wc_open
>>[Tue Mar 26 09:51:24 2002]  [jk_worker.c (222)]: Into build_worker_map, 
>>creating 2 workers
>>[Tue Mar 26 09:51:24 2002]  [jk_worker.c (228)]: build_worker_map, 
>>creating worker ajp12
>>[Tue Mar 26 09:51:24 2002]  [jk_worker.c (148)]: Into wc_create_worker
>>[Tue Mar 26 09:51:24 2002]  [jk_worker.c (162)]: wc_create_worker, about 
>>to create instance ajp12 of ajp12
>>[Tue Mar 26 09:51:24 2002]  [jk_ajp12_worker.c (268)]: Into 
>>ajp12_worker_factory
>>[Tue Mar 26 09:51:24 2002]  [jk_worker.c (171)]: wc_create_worker, about 
>>to validate and init ajp12
>>[Tue Mar 26 09:51:24 2002]  [jk_ajp12_worker.c (185)]: Into 
>>jk_worker_t::validate
>>[Tue Mar 26 09:51:24 2002]  [jk_ajp12_worker.c (197)]: In 
>>jk_worker_t::validate for worker ajp12 contact is localhost:8007
>>[Tue Mar 26 09:51:24 2002]  [jk_worker.c (187)]: wc_create_worker, done
>>[Tue Mar 26 09:51:24 2002]  [jk_worker.c (238)]: build_worker_map, 
>>removing old ajp12 worker
>>[Tue Mar 26 09:51:24 2002]  [jk_worker.c (228)]: build_worker_map, 
>>creating worker ajp13
>>[Tue Mar 26 09:51:24 2002]  [jk_worker.c (148)]: Into wc_create_worker
>>[Tue Mar 26 09:51:24 2002]  [jk_worker.c (162)]: wc_create_worker, about 
>>to create instance ajp13 of ajp13
>>[Tue Mar 26 09:51:24 2002]  [jk_ajp13_worker.c (108)]: Into 
>>ajp13_worker_factory
>>[Tue Mar 26 09:51:24 2002]  [jk_worker.c (171)]: wc_create_worker, about 
>>to validate and init ajp13
>>[Tue Mar 26 09:51:24 2002]  [jk_ajp_common.c (1174)]: Into 
>>jk_worker_t::validate
>>[Tue Mar 26 09:51:24 2002]  [jk_ajp_common.c (1194)]: In 
>>jk_worker_t::validate for worker ajp13 contact is localhost:8009
>>[Tue Mar 26 09:51:24 2002]  [jk_ajp_common.c (1222)]: Into jk_worker_t::init
>>[Tue Mar 26 09:51:24 2002]  [jk_worker.c (187)]: wc_create_worker, done
>>[Tue Mar 26 09:51:24 2002]  [jk_worker.c (238)]: build_worker_map, 
>>removing old ajp13 worker
>>[Tue Mar 26 09:51:24 2002]  [jk_worker.c (250)]: build_worker_map, done
>>[Tue Mar 26 09:51:24 2002]  [jk_worker.c (111)]: wc_open, done 2
>>and here are the lines that shows when i try to get *.jsp pages:
>>Tue Mar 26 09:53:37 2002]  [jk_uri_worker_map.c (447)]: Into 
>>jk_uri_worker_map_t::map_uri_to_worker
>>[Tue Mar 26 09:53:37 2002]  [jk_uri_worker_map.c (464)]: Attempting to 
>>map URI '/limselControl/index.jsp'
>>[Tue Mar 26 09:53:37 2002]  [jk_uri_worker_map.c (570)]: 
>>jk_uri_worker_map_t::map_uri_to_worker, done without a match
>>
>>At 09:16 AM 26/03/2002 +0100, you wrote:
>>
>>>Hi,
>>>
>>>I'm not an apache expert, but you configured in your mod_jk.conf the 
>>>JkMount directives only for localhost without a port. So apache won't 
>>>look into the VirtualHost localhost when you request limselsrv:9000
>>>
>>>The lines from your mod_jk.log file are quite normal. But there should 
>>>be an additional line, which says that a worker was found.
>>>
>>>Hope this helps
>>>
>>>Bernd
>>>
>>>Fabien Nisol wrote:
>>>
>>>>Hello all..
>>>>I've got some problems accessing my tomcat pages through tomcat using 
>>>>mod_jk...
>>>>I'm currently trying to link apache (1.3.24) and tomcat (4.0.3) 
>>>>together... My first problem was tru64 ... I had to patch and hack 
>>>>mod_jk like a fool !
>>>>But it finally worked...
>>>>Both servers run fine, my tomcat jsp webapp is deployed and accessible 
>>>>onto limselsrv:8080/limselControl (it work without any problem onto tomcat)
>>>>Apache is configured to include the tomcat generated mod_jk.conf file, 
>>>>in httpd.conf:
>>>>Include /disk14/products/tomcat/appli//conf/auto/mod_jk.conf
>>>>the generated mod_jk.conf contains the following lines, after tomcat 
>>>>startup:
>>>>########## Auto generated on Mon Mar 25 15:27:15 GMT-05:00 2002##########
>>>><IfModule !mod_jk.c>
>>>>   LoadModule jk_module libexec/mod_jk.so
>>>></IfModule>
>>>>JkWorkersFile 
>>>>"/disk14/products/tomcat/jakarta-tomcat-4.0.3/conf/jk/workers.properties"
>>>>JkLogFile "/disk14/products/tomcat/jakarta-tomcat-4.0.3/logs/mod_jk.log"
>>>>JkLogLevel debug
>>>>
>>>><VirtualHost localhost>
>>>>     ServerName localhost
>>>>     JkMount /limselControl ajp13
>>>>     JkMount /limselControl/*.jsp ajp13
>>>></VirtualHost>
>>>>the workers.properties file contains the following:
>>>># Setup for limselsrv
>>>>#
>>>>workers.tomcat_home=/disk14/products/tomcat/appli
>>>>workers.java_home=/usr/opt/java130
>>>>ps=/
>>>>worker.list=ajp12, ajp13
>>>># Definition for Ajp13 worker
>>>>#
>>>>worker.ajp13.port=8009
>>>>worker.ajp13.host=localhost
>>>>worker.ajp13.type=ajp13
>>>>
>>>>
>>>>When it comes to test the pages through apache, going to 
>>>>http://limselsrv:9000/limselControl does not work. I've a 404 apache 
>>>>error, and the following lines into mod_jk.log file:
>>>>[Mon Mar 25 15:56:52 2002]  [jk_uri_worker_map.c (447)]: Into 
>>>>jk_uri_worker_map_t::map_uri_to_worker
>>>>[Mon Mar 25 15:56:52 2002]  [jk_uri_worker_map.c (464)]: Attempting to 
>>>>map URI '/limselControl'
>>>>
>>>>Any clue for my problem ??? It seems that mod_jk does not find my 
>>>>tomcat files .. :( ...
>>>>
>>>
>>>
>--
>Dipl.-Inform. Bernd Koecke
>UNIX-Entwicklung
>Schlund+Partner AG
>Fon: +49-721-91374-0
>E-Mail: [EMAIL PROTECTED]
>
>
>--
>To unsubscribe:   <mailto:[EMAIL PROTECTED]>
>For additional commands: <mailto:[EMAIL PROTECTED]>
>Troubles with the list: <mailto:[EMAIL PROTECTED]>


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to