You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Fabien Nisol <ni...@hydro.qc.ca> on 2002/03/25 22:29:11 UTC

mod_jk problem

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 .. :( ...





advice on how to deploy webapps for students

Posted by Thierry Delaitre <de...@cpc.wmin.ac.uk>.
Hi,

What is the best way to deploy tomcat for 100 students ? I've created 75
webapp contexts for students but tomcat now creates approx. 165 threads !
Is it really necessary to create a context for each student, so that they
have their own webapp area or should is be ok to create a number of
directories (one for each student) under a single webapp area ? Also, if
all student directories are located in a single webapp, then wehere would
they put they class files for servlets ? Would it be convenient for put
their class files in:

webapps/students/WEB-INF/classes
				/student1/
				/student2/
				/.../

Thierry.



--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>


Re: mod_jk problem

Posted by Bernd Koecke <bk...@schlund.de>.
Fabien Nisol wrote:
> 
> 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 ?

You had these lines in your log:

[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

But now its gone :).

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

I think the section between begin and end should been seen only once. But I
may be wrong and you see this for any spawned httpd process.

> 
> [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

I don't know why, but mod_jk doesn't recognize your URI-to-worker-maps. Somewhere
in your logfile should be the minimum value 2 instead. Because of the two mappings in the virtual host 'localhost'.

> [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

begin

> [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

end

> [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: bk@schlund.de


--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>


Re: mod_jk problem

Posted by Fabien Nisol <ni...@hydro.qc.ca>.
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: bk@schlund.de
>
>
>--
>To unsubscribe:   <ma...@jakarta.apache.org>
>For additional commands: <ma...@jakarta.apache.org>
>Troubles with the list: <ma...@jakarta.apache.org>


--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>


Apology - virus spread

Posted by Yuval Levav <yu...@mobilitec.com>.
Hi all,
	I would like to apologize for the virus I've been spreading
	lately. It was not intentional. 
Yuval 

--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>


Virus

Posted by Micael Padraig Og mac Grene <ca...@harbornet.com>.
A virus is being spread under your email address's name.

At 06:50 PM 3/26/02 +0200, you wrote:
>Hi,
>         Does anyone have mod_jk.so compiled for apache 1.3 for solaris.
>         If so, I would aprreciate it if you send it to me.
>Thanks,
>         Yuval
>
>--
>To unsubscribe:   <ma...@jakarta.apache.org>
>For additional commands: <ma...@jakarta.apache.org>
>Troubles with the list: <ma...@jakarta.apache.org>



--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>


mod_jk.so apache1.3

Posted by Yuval Levav <yu...@mobilitec.com>.
Hi,
	Does anyone have mod_jk.so compiled for apache 1.3 for solaris.
	If so, I would aprreciate it if you send it to me.
Thanks,
	Yuval

--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>


Re: mod_jk problem

Posted by Bernd Koecke <bk...@schlund.de>.
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.

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

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: bk@schlund.de


--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>


context realm and mod_webapp

Posted by Ove Heimark <ov...@online.no>.
I have some questions regarding the "elements" within the Apache Connector
Service in the server.xml file.

My wish is to use Apache as the web server for static content and Tomcat as
the appsrv engine without the internal http connector.

But where do I define the webapp contexts?
Inside this Apache Connector service/engine or inside the
"Tomcat-Standalone" service/engine?

The only way I got it to work is when it's defined inside the Tomcat
service/engine, but then I don't get the specific webapp realm to work as it
should, I am able to get the realm to work if I define it globally in the
Apache/Connector service, but this realm should only be used for one
context, and I don't see any way I can define a realm specific to a webapp
context inside the Apache Connector Service...





--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>


Re: mod_jk problem

Posted by Fabien Nisol <ni...@hydro.qc.ca>.
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: bk@schlund.de
>
>
>--
>To unsubscribe:   <ma...@jakarta.apache.org>
>For additional commands: <ma...@jakarta.apache.org>
>Troubles with the list: <ma...@jakarta.apache.org>

Re: mod_jk problem

Posted by Bernd Koecke <bk...@schlund.de>.
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: bk@schlund.de


--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>