tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emerson Cargnin <emer...@tre-sc.gov.br>
Subject Re: auto generation of mod_jk.conf in tomcat 5
Date Mon, 19 Apr 2004 23:26:24 GMT
Ok, I finally got our production server to work with tomcat 5.
The problem, that I said before is that I had to strip the following 
part to make it work form the generated file.:

  <VirtualHost localhost>
     ServerName localhost

The problem is that it'll be regenerated each time I restart tomcat....

Any help on this?? how to make the virtualhost configuration to work or 
how to make the generated file not have this?????

Thanks anyway!!! :)
that's just what's missing to make our upgrade to tomcat 5.0.19...

Emerson Cargnin

Emerson Cargnin wrote:
> Still trying to configure mod_jk.
> 
> The log from mod_jk when apache is started:
> 
> [Mon Apr 19 18:36:49 2004]  [jk_uri_worker_map.c (321)]: Into 
> jk_uri_worker_map_t::uri_worker_map_open, match rule 
> /connManager/servlet/gerenciadorconn/=ajp13 was added
> [Mon Apr 19 18:36:49 2004]  [jk_uri_worker_map.c (345)]: Into 
> jk_uri_worker_map_t::uri_worker_map_open, exact rule 
> /connManager/gerenciadorconn=ajp13 was added
> [Mon Apr 19 18:36:49 2004]  [jk_uri_worker_map.c (299)]: Into 
> jk_uri_worker_map_t::uri_worker_map_open, suffix rule 
> /connManager/.jspx=ajp13 was added
> [Mon Apr 19 18:36:49 2004]  [jk_uri_worker_map.c (299)]: Into 
> jk_uri_worker_map_t::uri_worker_map_open, suffix rule 
> /connManager/.jsp=ajp13 was added
> 
> 
> The URL I try to browse:
> 
> http://elbassan.tre-sc.gov.br/connManager/servlet/gerenciadorconn?acao=testaPools 
> 
> 
> The log from mod_jk:
> 
> 
> [Mon Apr 19 18:37:31 2004]  [jk_uri_worker_map.c (500)]: Attempting to 
> map URI '/connManager/servlet/gerenciadorconn'
> [Mon Apr 19 18:37:31 2004]  [jk_uri_worker_map.c (618)]: 
> jk_uri_worker_map_t::map_uri_to_worker, done without a match
> 
> I can't undertand, the mapping looks fine (generated automatic by 
> tomcat), the apache log show the mapping I test in the browser, but the 
> log of apache show that there's not a match :(
> 
> Any help???
> 
> thanks in advance....
> 
> Emerson
> 
> 
> Emerson Cargnin wrote:
> 
>> the strange thing is that a virtualhost tag is generated and no rule 
>> is created... if I take those out I can see the rules being created....
>>
>> How do I configure the autogeneration of the conf file not put the 
>> virtualhost tag???
>>
>> Other question: the loadmodule, log and worker files and log level are 
>> generated in the mod_jk.conf file, do I need them anyway at httpd.conf?
>>
>> thanks
>> Emerson
>>
>>
>> Yang Xiao wrote:
>>
>>> Hi,
>>> In httpd.conf:
>>>
>>> LoadModule jk_module modules/mod_jk.so
>>> JkWorkersFile /usr/local/tomcat/conf/jk/workers.properties
>>> JkLogFile /usr/local/tomcat/logs/mod_jk.log
>>> JkLogLevel info
>>> JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
>>> JkRequestLogFormat "%w %V %T"
>>> JkMount /jsp-examples/* router
>>>
>>>
>>> In server.xml
>>> Add this under <Server ...
>>> <Listener className="org.apache.jk.config.ApacheConfig"
>>> modJk="/usr/local/apache/modules/mod_jk.so" />
>>>
>>> and this under <Host..
>>>
>>> <Listener className="org.apache.jk.config.ApacheConfig"
>>> append="true" forwardAll="false" 
>>> modJk="/usr/local/apache/modules/mod_jk.so"
>>> workersConfig="/usr/local/tomcat/conf/workers.properties" />
>>>
>>> That's all there is to it.
>>>
>>> Yang
>>> -----Original Message-----
>>> From: Emerson Cargnin [mailto:emerson@tre-sc.gov.br] Sent: Thursday, 
>>> April 15, 2004 12:35 PM
>>> To: Tomcat Users List
>>> Subject: auto generation of mod_jk.conf in tomcat 5
>>>
>>> When we used tomcat 3.2.3, I configured it to autogenerate the 
>>> mod_jk.conf to be read by apache/mod_jk. In tomcat 5 I still can use 
>>> it??? I like it becouse each time a app is deployed I just have to 
>>> make apache re-read it's conf file to get the new map to work.
>>>
>>> how do I configure tomcat 5 to auto-generate it???
>>>
>>>
>>
>>
> 
> 


-- 
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181

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