tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Turner <tomcat-u...@johnturner.com>
Subject Re: Apache 1.3.27, Tomcat 4.1 & mod_jk, not working
Date Wed, 16 Jul 2003 20:39:48 GMT

This will go a lot faster if you please post your JK configuration.  It 
could be as simple as you having the JkMount messed up, or it could be 
something else.

John

On Wed, 16 Jul 2003 13:24:01 -0700, Bongrip <tomcat@echeeba.com> wrote:

> John Turner wrote:
>>
>> Did you configure mod_jk?  JkMount, JkLogLevel, etc?
>>
>> - change JkLogLevel to "info" and post the results from mod_jk log file
>>
>> - post JkMount and the URL you are trying to use, as well as your Apache 
>> virtual host config
>>
>> John
>>
>> On Wed, 16 Jul 2003 12:50:57 -0700, Bongrip <tomcat@echeeba.com> wrote:
>>
>>>
>>> I build an apache 1.3.27 server and mod_jk as a DSO and it loads 
>>> correctly and is recognized by the apache server.
>>>
>>> The mod_info module shows the module as being active and it lists my 
>>> custom config.
>>>
>>> Here is my config:
>>> worker.list=worker1
>>>
>>> worker.worker1.type=ajp13
>>> worker.worker1.host=localhost
>>> worker.worker1.port=8009
>>> worker.worker1.lbfactor=50
>>> worker.worker1.cachesize=10
>>> worker.worker1.cache_timeout=600
>>> worker.worker1.socket_keepalive=1
>>> worker.worker1.socket_timeout=300
>>>
>>>
>>> I am enabled the Coyote connector on my Tomcat server.
>>> Apache Tomcat/4.1.24
>>> Jul 16, 2003 11:53:28 AM org.apache.coyote.http11.Http11Protocol start
>>> INFO: Starting Coyote HTTP/1.1 on port 8080
>>> Jul 16, 2003 11:53:28 AM org.apache.jk.common.ChannelSocket init
>>> INFO: JK2: ajp13 listening on /0.0.0.0:8009
>>> Jul 16, 2003 11:53:28 AM org.apache.jk.server.JkMain start
>>> INFO: Jk running ID=0 time=1/174 
>>> config=/usr/local/tomcat/conf/jk2.properties
>>> Jul 16, 2003 11:53:59 AM org.apache.jk.common.ChannelSocket 
>>> processConnection
>>> INFO: server has been restarted or reset this connection
>>> Jul 16, 2003 11:53:59 AM org.apache.jk.common.ChannelSocket 
>>> processConnection
>>> INFO: server has been restarted or reset this connection
>>> Jul 16, 2003 11:56:43 AM org.apache.jk.common.ChannelSocket 
>>> processConnection
>>> INFO: server has been restarted or reset this connection
>>>
>>> When I try to access a jsp page it gives me error 404. But the file is 
>>> there and is readable by all. (0644) I am running tomcat 4.1.24 and 
>>> using Sun's j2sdk 1.4.1 rev 03. I get nothing logged to either the 
>>> apache logs or the tomcat logs when I make a request.
>>>
>>> Any ideas?
>>>
>>> Thxc,
>>> CC
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>>> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>>>
>>>
>>
>>
>>
>
> Okay, I think I fixed one problem but still getting 404 error. Here is my 
> mod_jk.log after a fresh server start and a single request for a file 
> called test.jsp:
> cheeba:/usr/local/apache/logs #cat mod_jk.log
> [Wed Jul 16 13:20:55 2003]  [jk_uri_worker_map.c (172)]: Into 
> jk_uri_worker_map_t::uri_worker_map_alloc
> [Wed Jul 16 13:20:55 2003]  [jk_uri_worker_map.c (375)]: Into 
> jk_uri_worker_map_t::uri_worker_map_open
> [Wed Jul 16 13:20:55 2003]  [jk_uri_worker_map.c (396)]: 
> jk_uri_worker_map_t::uri_worker_map_open, rule map size is 2
> [Wed Jul 16 13:20:55 2003]  [jk_uri_worker_map.c (299)]: Into 
> jk_uri_worker_map_t::uri_worker_map_open, suffix rule /.jsp=worker1 was 
> added
> [Wed Jul 16 13:20:55 2003]  [jk_uri_worker_map.c (299)]: Into 
> jk_uri_worker_map_t::uri_worker_map_open, suffix rule 
> /webapp/.jsp=worker1 was added
> [Wed Jul 16 13:20:55 2003]  [jk_uri_worker_map.c (408)]: Into 
> jk_uri_worker_map_t::uri_worker_map_open, there are 2 rules
> [Wed Jul 16 13:20:55 2003]  [jk_uri_worker_map.c (422)]: 
> jk_uri_worker_map_t::uri_worker_map_open, done
> [Wed Jul 16 13:20:55 2003]  [jk_worker.c (88)]: Into wc_open
> [Wed Jul 16 13:20:55 2003]  [jk_worker.c (222)]: Into build_worker_map, 
> creating 1 workers
> [Wed Jul 16 13:20:55 2003]  [jk_worker.c (228)]: build_worker_map, 
> creating worker worker1
> [Wed Jul 16 13:20:55 2003]  [jk_worker.c (148)]: Into wc_create_worker
> [Wed Jul 16 13:20:55 2003]  [jk_worker.c (162)]: wc_create_worker, about 
> to create instance worker1 of ajp13
> [Wed Jul 16 13:20:55 2003]  [jk_ajp13_worker.c (108)]: Into 
> ajp13_worker_factory
> [Wed Jul 16 13:20:55 2003]  [jk_worker.c (171)]: wc_create_worker, about 
> to validate and init worker1
> [Wed Jul 16 13:20:55 2003]  [jk_ajp_common.c (1343)]: Into 
> jk_worker_t::validate
> [Wed Jul 16 13:20:55 2003]  [jk_ajp_common.c (1364)]: In 
> jk_worker_t::validate for worker worker1 contact is localhost:8009
> [Wed Jul 16 13:20:55 2003]  [jk_ajp_common.c (1397)]: Into 
> jk_worker_t::init
> [Wed Jul 16 13:20:55 2003]  [jk_ajp_common.c (1421)]: In 
> jk_worker_t::init, setting socket timeout to 300
> [Wed Jul 16 13:20:55 2003]  [jk_worker.c (187)]: wc_create_worker, done
> [Wed Jul 16 13:20:55 2003]  [jk_worker.c (238)]: build_worker_map, 
> removing old worker1 worker
> [Wed Jul 16 13:20:55 2003]  [jk_worker.c (250)]: build_worker_map, done
> [Wed Jul 16 13:20:55 2003]  [jk_worker.c (111)]: wc_open, done 1
> [Wed Jul 16 13:20:55 2003]  [jk_uri_worker_map.c (172)]: Into 
> jk_uri_worker_map_t::uri_worker_map_alloc
> [Wed Jul 16 13:20:55 2003]  [jk_uri_worker_map.c (375)]: Into 
> jk_uri_worker_map_t::uri_worker_map_open
> [Wed Jul 16 13:20:55 2003]  [jk_uri_worker_map.c (396)]: 
> jk_uri_worker_map_t::uri_worker_map_open, rule map size is 2
> [Wed Jul 16 13:20:55 2003]  [jk_uri_worker_map.c (299)]: Into 
> jk_uri_worker_map_t::uri_worker_map_open, suffix rule /.jsp=worker1 was 
> added
> [Wed Jul 16 13:20:55 2003]  [jk_uri_worker_map.c (299)]: Into 
> jk_uri_worker_map_t::uri_worker_map_open, suffix rule 
> /webapp/.jsp=worker1 was added
> [Wed Jul 16 13:20:55 2003]  [jk_uri_worker_map.c (408)]: Into 
> jk_uri_worker_map_t::uri_worker_map_open, there are 2 rules
> [Wed Jul 16 13:20:55 2003]  [jk_uri_worker_map.c (422)]: 
> jk_uri_worker_map_t::uri_worker_map_open, done
> [Wed Jul 16 13:20:55 2003]  [jk_worker.c (88)]: Into wc_open
> [Wed Jul 16 13:20:55 2003]  [jk_worker.c (222)]: Into build_worker_map, 
> creating 1 workers
> [Wed Jul 16 13:20:55 2003]  [jk_worker.c (228)]: build_worker_map, 
> creating worker worker1
> [Wed Jul 16 13:20:55 2003]  [jk_worker.c (148)]: Into wc_create_worker
> [Wed Jul 16 13:20:55 2003]  [jk_worker.c (162)]: wc_create_worker, about 
> to create instance worker1 of ajp13
> [Wed Jul 16 13:20:55 2003]  [jk_ajp13_worker.c (108)]: Into 
> ajp13_worker_factory
> [Wed Jul 16 13:20:55 2003]  [jk_worker.c (171)]: wc_create_worker, about 
> to validate and init worker1
> [Wed Jul 16 13:20:55 2003]  [jk_ajp_common.c (1343)]: Into 
> jk_worker_t::validate
> [Wed Jul 16 13:20:55 2003]  [jk_ajp_common.c (1364)]: In 
> jk_worker_t::validate for worker worker1 contact is localhost:8009
> [Wed Jul 16 13:20:55 2003]  [jk_ajp_common.c (1397)]: Into 
> jk_worker_t::init
> [Wed Jul 16 13:20:55 2003]  [jk_ajp_common.c (1421)]: In 
> jk_worker_t::init, setting socket timeout to 300
> [Wed Jul 16 13:20:55 2003]  [jk_worker.c (187)]: wc_create_worker, done
> [Wed Jul 16 13:20:55 2003]  [jk_worker.c (238)]: build_worker_map, 
> removing old worker1 worker
> [Wed Jul 16 13:20:55 2003]  [jk_worker.c (250)]: build_worker_map, done
> [Wed Jul 16 13:20:55 2003]  [jk_worker.c (111)]: wc_open, done 1
>
> Nothing jumps out at me, can anyone point me in the right direction?
>
> Thanks,
> CC
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>



-- 
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

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