Re: Trouble with Apache 1.3.28/Tomcat 4.124/mod_jk 1.24

2003-08-18 Thread Henry Kwan
Hi Cris,

Thanks.  Between your and John's tips (thanks John!), I seem to have resolve 
the config problems.  It looks like it's up and running now.

One last question.  I seem to be getting a lot of these messages in the 
log.  Is it anything to worry about?  Do I have the JkAutoAlias command in 
the wrong place?

Thanks again.

---snip---

[Mon Aug 18 11:50:01 2003]  [jk_uri_worker_map.c (460)]: Into 
jk_uri_worker_map_t::map_uri_to_worker
[Mon Aug 18 11:50:01 2003]  [jk_uri_worker_map.c (477)]: Attempting to map 
URI '/index.html'
[Mon Aug 18 11:50:01 2003]  [jk_uri_worker_map.c (599)]: 
jk_uri_worker_map_t::map_uri_to_worker, done without a match
[Mon Aug 18 11:50:01 2003]  [mod_jk.c (1846)]: mod_jk::jk_translate, check 
alias_dir: /opt/tomcat/jakarta-tomcat/webapps
[Mon Aug 18 11:50:01 2003]  [jk_uri_worker_map.c (460)]: Into 
jk_uri_worker_map_t::map_uri_to_worker
[Mon Aug 18 11:50:01 2003]  [jk_uri_worker_map.c (477)]: Attempting to map 
URI '/index.html'
[Mon Aug 18 11:50:01 2003]  [jk_uri_worker_map.c (599)]: 
jk_uri_worker_map_t::map_uri_to_worker, done without a match
[Mon Aug 18 11:50:01 2003]  [mod_jk.c (1846)]: mod_jk::jk_translate, check 
alias_dir: /opt/tomcat/jakarta-tomcat/webapps


> 
> Sorry, I forgot to mention in my first post:
> 
>JkMount /*.jsp ajp13
>JkMount /*/servlet/ ajp13
>JkMount /examples ajp13
>JkMount /examples/* ajp13
> 
> Where you have ajp13, mod_jk is expecting the name of the worker - in
> this case testWorker. Try:
> 
>JkMount /*.jsp testWorker
>JkMount /*/servlet/ testWorker
>JkMount /examples testWorker
>JkMount /examples/* testWorker
> 
> Cris
> 
> -Original Message-
> From: Henry Kwan [mailto:[EMAIL PROTECTED] 
> Sent: Friday, August 15, 2003 6:07 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Trouble with Apache 1.3.28/Tomcat 4.124/mod_jk 1.24
> 
> 
> > 
> > Notice the  shortly thereafter.
> > 
> > That's a comment, so you have that Ajp13Connector commented out at the
> 
> > moment :)
> > 
> > Try removing the  from around the Connector tag and 
> > restart Jakarta.
> > 
> 
> Hi.  Thanks for pointing that out.  I didn't notice that before.  I
> removed 
> that comment and commented out the CoyoteConnector entry.
> 
> Unfortunately, the error message seems to be the same:
> 
> [Fri Aug 15 14:57:45 2003]  [jk_uri_worker_map.c (477)]: Attempting to
> map 
> URI '/examples/jsp/index.html'
> [Fri Aug 15 14:57:45 2003]  [jk_uri_worker_map.c (502)]: 
> jk_uri_worker_map_t::map_uri_to_worker, Found a context match ajp13 -> 
> /examples/
> [Fri Aug 15 14:57:45 2003]  [jk_worker.c (132)]: Into
> wc_get_worker_for_name 
> ajp13
> [Fri Aug 15 14:57:45 2003]  [jk_worker.c (136)]: wc_get_worker_for_name,
> 
> done did not found a worker
> 
> There is something listening at 8009 (since I can telnet to it) and I 
> noticed this entry earlier in the log:
> 
> [Fri Aug 15 14:57:35 2003]  [jk_worker.c (88)]: Into wc_open [Fri Aug 15
> 14:57:35 2003]  [jk_worker.c (222)]: Into build_worker_map, 
> creating 1 workers
> [Fri Aug 15 14:57:35 2003]  [jk_worker.c (228)]: build_worker_map,
> creating 
> worker testWorker
> [Fri Aug 15 14:57:35 2003]  [jk_worker.c (148)]: Into wc_create_worker
> [Fri Aug 15 14:57:35 2003]  [jk_worker.c (162)]: wc_create_worker, about
> to 
> create instance testWorker of ajp13
> [Fri Aug 15 14:57:35 2003]  [jk_ajp13_worker.c (108)]: Into 
> ajp13_worker_factory
> [Fri Aug 15 14:57:35 2003]  [jk_worker.c (171)]: wc_create_worker, about
> to 
> validate and init testWorker
> [Fri Aug 15 14:57:35 2003]  [jk_ajp_common.c (1343)]: Into 
> jk_worker_t::validate
> [Fri Aug 15 14:57:35 2003]  [jk_ajp_common.c (1364)]: In 
> jk_worker_t::validate for worker testWorker contact is localhost:8009
> [Fri Aug 15 14:57:35 2003]  [jk_ajp_common.c (1397)]: Into
> jk_worker_t::init [Fri Aug 15 14:57:35 2003]  [jk_ajp_common.c (1421)]:
> In jk_worker_t::init, 
> setting socket timeout to 0
> [Fri Aug 15 14:57:35 2003]  [jk_worker.c (187)]: wc_create_worker, done
> [Fri Aug 15 14:57:35 2003]  [jk_worker.c (238)]: build_worker_map,
> removing 
> old testWorker worker 
> [Fri Aug 15 14:57:35 2003]  [jk_worker.c (250)]: build_worker_map, done
> [Fri Aug 15 14:57:35 2003]  [jk_worker.c (111)]: wc_open, done 1
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Trouble with Apache 1.3.28/Tomcat 4.124/mod_jk 1.24

2003-08-15 Thread Henry Kwan
> 
> Notice the  shortly thereafter.
> 
> That's a comment, so you have that Ajp13Connector commented out at the
> moment :)
> 
> Try removing the  from around the Connector tag and restart
> Jakarta.
> 

Hi.  Thanks for pointing that out.  I didn't notice that before.  I removed 
that comment and commented out the CoyoteConnector entry.

Unfortunately, the error message seems to be the same:

[Fri Aug 15 14:57:45 2003]  [jk_uri_worker_map.c (477)]: Attempting to map 
URI '/examples/jsp/index.html'
[Fri Aug 15 14:57:45 2003]  [jk_uri_worker_map.c (502)]: 
jk_uri_worker_map_t::map_uri_to_worker, Found a context match ajp13 -> 
/examples/
[Fri Aug 15 14:57:45 2003]  [jk_worker.c (132)]: Into wc_get_worker_for_name 
ajp13
[Fri Aug 15 14:57:45 2003]  [jk_worker.c (136)]: wc_get_worker_for_name, 
done did not found a worker

There is something listening at 8009 (since I can telnet to it) and I 
noticed this entry earlier in the log:

[Fri Aug 15 14:57:35 2003]  [jk_worker.c (88)]: Into wc_open
[Fri Aug 15 14:57:35 2003]  [jk_worker.c (222)]: Into build_worker_map, 
creating 1 workers
[Fri Aug 15 14:57:35 2003]  [jk_worker.c (228)]: build_worker_map, creating 
worker testWorker
[Fri Aug 15 14:57:35 2003]  [jk_worker.c (148)]: Into wc_create_worker
[Fri Aug 15 14:57:35 2003]  [jk_worker.c (162)]: wc_create_worker, about to 
create instance testWorker of ajp13
[Fri Aug 15 14:57:35 2003]  [jk_ajp13_worker.c (108)]: Into 
ajp13_worker_factory
[Fri Aug 15 14:57:35 2003]  [jk_worker.c (171)]: wc_create_worker, about to 
validate and init testWorker
[Fri Aug 15 14:57:35 2003]  [jk_ajp_common.c (1343)]: Into 
jk_worker_t::validate
[Fri Aug 15 14:57:35 2003]  [jk_ajp_common.c (1364)]: In 
jk_worker_t::validate for worker testWorker contact is localhost:8009
[Fri Aug 15 14:57:35 2003]  [jk_ajp_common.c (1397)]: Into jk_worker_t::init
[Fri Aug 15 14:57:35 2003]  [jk_ajp_common.c (1421)]: In jk_worker_t::init, 
setting socket timeout to 0
[Fri Aug 15 14:57:35 2003]  [jk_worker.c (187)]: wc_create_worker, done
[Fri Aug 15 14:57:35 2003]  [jk_worker.c (238)]: build_worker_map, removing 
old testWorker worker 
[Fri Aug 15 14:57:35 2003]  [jk_worker.c (250)]: build_worker_map, done
[Fri Aug 15 14:57:35 2003]  [jk_worker.c (111)]: wc_open, done 1


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Trouble with Apache 1.3.28/Tomcat 4.124/mod_jk 1.24

2003-08-15 Thread Henry Kwan
Hi, I'm trying to setup a Apache/Tomcat test server and am having some 
problems.  Apache works fine on port 80 and Tomcat works fine on 8080 but I 
can't get mod_jk to connect them.  I'm running Solaris 8 SPARC and I 
compiled Apache from source, grabbed the Tomcat binary, and compiled mod_jk 
from source.

Here's what I have in my httpd.conf:

LoadModule jk_module libexec/mod_jk.so
...
 
ServerAdmin [EMAIL PROTECTED]
DocumentRoot /opt/tomcat/jakarta-tomcat/webapps
ServerName tomcat.xxx.com
DirectoryIndex index.htm index.html

Options Indexes FollowSymLinks
AllowOverride All

ErrorLog /export/home/httpd/logs/tomcat_error
CustomLog /export/home/httpd/logs/tomcat_access common


   JkWorkersFile "/opt/tomcat/jakarta-tomcat/conf/workers.properties"
   JkLogFile "/opt/tomcat/jakarta-tomcat/logs/mod_jk.log"

   JkLogLevel debug

   JkAutoAlias /opt/tomcat/jakarta-tomcat/webapps
   JkMount /*.jsp ajp13
   JkMount /*/servlet/ ajp13
   JkMount /examples ajp13
   JkMount /examples/* ajp13


I have this workers.properties setup:

worker.list=testWorker
worker.testWorker.port=8009
worker.testWorker.host=localhost
worker.testWorker.type=ajp13

And I didn't touch the Connector Classname entry in server.xml: