RE: mod_jk error 404 with Apache 1.3.27, Tomcat 4.1.18

2003-01-13 Thread mech
Well actually *.jsp without leading "/" works for me, too. And I've seen
it also in some tutorials ;-)

By the way, it might by useful to add 

JkMount /examples ajp13

I experienced that http://localhost/examples was not transfered (only
http://localhost/examples/ )to the corresponding examples/index.jsp
until I added above JkMount. But IMHO this small issue might depend also
on Apache's config with respect to trailing slashes. Could be worth a
try in case, but might not be necessary...

mech

> -Original Message-
> From: Turner, John [mailto:[EMAIL PROTECTED]] 
> Sent: Montag, 13. Januar 2003 13:57
> To: 'Tomcat Users List'
> Subject: RE: mod_jk error 404 with Apache 1.3.27, Tomcat 4.1.18
> 
> 
> 
> The error message in this case is correct, as was the previous post.
> 
> The correct lines would be:
> 
> JkMount /*.jsp ajp13
> JkMount /examples/* ajp13 
> 
> Note the leading "/" in the first line that was missing previously.
> 
> Also, in the original post, the error message specifically 
> said "done without a match" on "/webapps/examples/jsp" which 
> was also true based on your original config files.  There was 
> no JkMount that matched that URL.
> 
> John
> 
> 
> > -Original Message-----
> > From: Randall Perry [mailto:[EMAIL PROTECTED]]
> > Sent: Sunday, January 12, 2003 8:08 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: mod_jk error 404 with Apache 1.3.27, Tomcat 4.1.18
> > 
> > 
> > I discovered that the URL I was using to access the pages was wrong.
> > 
> > Never mind. It's working fine. :)
> > 
> > 
> > > That's not it. I get the following error from 'apachectl
> > configtest' :
> > >   Context should start with /
> > > 
> > >> Use:
> > >> JkMount *.jsp ajp13
> > >> JkMount /examples/* ajp13
> > 
> > --
> > Randall Perry
> > sysTame
> > 
> > Xserve Web Hosting/Co-location
> > Website Development/Promotion
> > Mac Consulting/Sales
> > 
> > http://www.systame.com/
> > 
> > 
> > 
> > --
> > To unsubscribe, e-mail:   
> > <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> > 
> 
> --
> To unsubscribe, e-mail:   
> <mailto:tomcat-user-> [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: <mailto:[EMAIL PROTECTED]>
> 


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




RE: mod_jk error 404 with Apache 1.3.27, Tomcat 4.1.18

2003-01-13 Thread Turner, John

The error message in this case is correct, as was the previous post.

The correct lines would be:

JkMount /*.jsp ajp13
JkMount /examples/* ajp13 

Note the leading "/" in the first line that was missing previously.

Also, in the original post, the error message specifically said "done
without a match" on "/webapps/examples/jsp" which was also true based on
your original config files.  There was no JkMount that matched that URL.

John


> -Original Message-
> From: Randall Perry [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, January 12, 2003 8:08 PM
> To: [EMAIL PROTECTED]
> Subject: Re: mod_jk error 404 with Apache 1.3.27, Tomcat 4.1.18
> 
> 
> I discovered that the URL I was using to access the pages was wrong.
> 
> Never mind. It's working fine. :)
> 
> 
> > That's not it. I get the following error from 'apachectl 
> configtest' :
> >   Context should start with /
> > 
> >> Use:
> >> JkMount *.jsp ajp13
> >> JkMount /examples/* ajp13
> 
> -- 
> Randall Perry
> sysTame
> 
> Xserve Web Hosting/Co-location
> Website Development/Promotion
> Mac Consulting/Sales
> 
> http://www.systame.com/
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: 
> <mailto:[EMAIL PROTECTED]>
> 

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




Re: mod_jk error 404 with Apache 1.3.27, Tomcat 4.1.18

2003-01-12 Thread Randall Perry
I discovered that the URL I was using to access the pages was wrong.

Never mind. It's working fine. :)


> That's not it. I get the following error from 'apachectl configtest' :
>   Context should start with /
> 
>> Use:
>> JkMount *.jsp ajp13
>> JkMount /examples/* ajp13

-- 
Randall Perry
sysTame

Xserve Web Hosting/Co-location
Website Development/Promotion
Mac Consulting/Sales

http://www.systame.com/



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: mod_jk error 404 with Apache 1.3.27, Tomcat 4.1.18

2003-01-12 Thread Randall Perry
That's not it. I get the following error from 'apachectl configtest' :
Context should start with /

> Use:
> JkMount *.jsp ajp13
> JkMount /examples/* ajp13

-- 
Randall Perry
sysTame

Xserve Web Hosting/Co-location
Website Development/Promotion
Mac Consulting/Sales

http://www.systame.com/



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: mod_jk error 404 with Apache 1.3.27, Tomcat 4.1.18

2003-01-12 Thread mech
Use:

JkMount *.jsp ajp13
JkMount /examples/* ajp13

> -Original Message-
> From: Randall Perry [mailto:[EMAIL PROTECTED]] 
> Sent: Sonntag, 12. Januar 2003 19:52
> To: [EMAIL PROTECTED]
> Subject: mod_jk error 404 with Apache 1.3.27, Tomcat 4.1.18
> 
> 
> Successfully installed tomcat 4.1.18 and can access it on 
> port 8080. Jsp & servlets run ok.
> 
> Installed mod_jk.so v1.2.2, configured apache and get no 
> errors on startup.
> 
> But, though I can access the directory pointed to by JKMount, 
> and can load static .html, no .jsp or servlet examples will run.
> 
> My machine is a Mac Xserve running OS 10.2.3 server.
> 
> Relevant configs appear below.
> 
> Any help is appreciated.
> 
> 
> workers.properties
> 
> # Setup for Mac OS X 
> workers.tomcat_home=/usr/local/jakarta-tomcat-4.1.18
> workers.java_home=/System/Library/Frameworks/JavaVM.framework/Home
> worker.list=ajp13
> 
> #Definition for Ajp13 worker
> worker.ajp13.port=8009
> worker.ajp13.host=127.0.0.1
> worker.ajp13.type=ajp13
> 
> 
> httpd.conf
> 
> LoadModule jk_module/usr/libexec/httpd/mod_jk.so
> AddModule mod_jk.c
> 
> 
> DocumentRoot /usr/local/jakarta-tomcat-4.1.18
> JKMount /*.jsp ajp13
> JKMount /webapps/examples/servlet/* ajp13
> 
> 
> JkWorkersFile 
> /usr/local/jakarta-tomcat-4.1.18/conf/jk/workers.properties
> JkLogFile /usr/local/jakarta-tomcat-4.1.18/logs/mod_jk.log
> JkLogLevel debug
> 
> 
> mod_jk.log
> 
> [Sun Jan 12 13:36:49 2003]  [jk_ajp13_worker.c (108)]: Into 
> ajp13_worker_factory [Sun Jan 12 13:36:49 2003]  [jk_worker.c 
> (171)]: wc_create_worker, about to validate and init ajp13 
> [Sun Jan 12 13:36:49 2003]  [jk_ajp_common.c (1219)]: Into 
> jk_worker_t::validate [Sun Jan 12 13:36:49 2003]  
> [jk_ajp_common.c (1239)]: In jk_worker_t::validate for worker 
> ajp13 contact is 127.0.0.1:8009 [Sun Jan 12 13:36:49 2003]  
> [jk_ajp_common.c (1267)]: Into jk_worker_t::init [Sun Jan 12 
> 13:36:49 2003]  [jk_ajp_common.c (1287)]: In 
> jk_worker_t::init, setting socket timeout to 0 [Sun Jan 12 
> 13:36:49 2003]  [jk_worker.c (187)]: wc_create_worker, done 
> [Sun Jan 12 13:36:49 2003]  [jk_worker.c (238)]: 
> build_worker_map, removing old ajp13 worker 
> [Sun Jan 12 13:36:49 2003]  [jk_worker.c (250)]: 
> build_worker_map, done [Sun Jan 12 13:36:49 2003]  
> [jk_worker.c (111)]: wc_open, done 1 [Sun Jan 12 13:36:59 
> 2003]  [jk_uri_worker_map.c (460)]: Into 
> jk_uri_worker_map_t::map_uri_to_worker
> [Sun Jan 12 13:36:59 2003]  [jk_uri_worker_map.c (477)]: 
> Attempting to map URI '/webapps/examples/jsp' [Sun Jan 12 
> 13:36:59 2003]  [jk_uri_worker_map.c (599)]: 
> jk_uri_worker_map_t::map_uri_to_worker, done without a match 
> [Sun Jan 12 13:37:00 2003]  [jk_uri_worker_map.c (460)]: Into 
> jk_uri_worker_map_t::map_uri_to_worker
> [Sun Jan 12 13:37:00 2003]  [jk_uri_worker_map.c (477)]: 
> Attempting to map URI '/webapps/examples/jsp/' [Sun Jan 12 
> 13:37:00 2003]  [jk_uri_worker_map.c (599)]: 
> jk_uri_worker_map_t::map_uri_to_worker, done without a match 
> [Sun Jan 12 13:37:00 2003]  [jk_uri_worker_map.c (460)]: Into 
> jk_uri_worker_map_t::map_uri_to_worker
> [Sun Jan 12 13:37:00 2003]  [jk_uri_worker_map.c (477)]: 
> Attempting to map URI '/webapps/examples/jsp/index.html'
> [Sun Jan 12 13:37:00 2003]  [jk_uri_worker_map.c (599)]: 
> jk_uri_worker_map_t::map_uri_to_worker, done without a match 
> [Sun Jan 12 13:37:00 2003]  [jk_uri_worker_map.c (460)]: Into 
> jk_uri_worker_map_t::map_uri_to_worker
> [Sun Jan 12 13:37:00 2003]  [jk_uri_worker_map.c (477)]: 
> Attempting to map URI '/webapps/examples/jsp/index.html'
> [Sun Jan 12 13:37:00 2003]  [jk_uri_worker_map.c (599)]: 
> jk_uri_worker_map_t::map_uri_to_worker, done without a match 
> [Sun Jan 12 13:37:07 2003]  [jk_uri_worker_map.c (460)]: Into 
> jk_uri_worker_map_t::map_uri_to_worker
> [Sun Jan 12 13:37:07 2003]  [jk_uri_worker_map.c (477)]: 
> Attempting to map URI '/webapps/examples/jsp/num/numguess.jsp'
> [Sun Jan 12 13:37:07 2003]  [jk_uri_worker_map.c (558)]: 
> jk_uri_worker_map_t::map_uri_to_worker, Found a suffix match 
> ajp13 -> *.jsp [Sun Jan 12 13:37:07 2003]  [jk_worker.c 
> (132)]: Into wc_get_worker_for_name ajp13 [Sun Jan 12 
> 13:37:07 2003]  [jk_worker.c (136)]: wc_get_worker_for_name, 
> done  found a worker [Sun Jan 12 13:37:07 2003]  
> [jk_ajp_common.c (1404)]: Into jk_worker_t::get_endpoint [Sun 
> Jan 12 13:37:07 2003]  [jk_ajp_common.c (1116)]: Into 
> jk_endpoint_t::service [S

mod_jk error 404 with Apache 1.3.27, Tomcat 4.1.18

2003-01-12 Thread Randall Perry
Successfully installed tomcat 4.1.18 and can access it on port 8080. Jsp &
servlets run ok.

Installed mod_jk.so v1.2.2, configured apache and get no errors on startup.

But, though I can access the directory pointed to by JKMount, and can load
static .html, no .jsp or servlet examples will run.

My machine is a Mac Xserve running OS 10.2.3 server.

Relevant configs appear below.

Any help is appreciated.


workers.properties

# Setup for Mac OS X
workers.tomcat_home=/usr/local/jakarta-tomcat-4.1.18
workers.java_home=/System/Library/Frameworks/JavaVM.framework/Home
worker.list=ajp13

#Definition for Ajp13 worker
worker.ajp13.port=8009
worker.ajp13.host=127.0.0.1
worker.ajp13.type=ajp13


httpd.conf

LoadModule jk_module/usr/libexec/httpd/mod_jk.so
AddModule mod_jk.c


DocumentRoot /usr/local/jakarta-tomcat-4.1.18
JKMount /*.jsp ajp13
JKMount /webapps/examples/servlet/* ajp13


JkWorkersFile /usr/local/jakarta-tomcat-4.1.18/conf/jk/workers.properties
JkLogFile /usr/local/jakarta-tomcat-4.1.18/logs/mod_jk.log
JkLogLevel debug


mod_jk.log

[Sun Jan 12 13:36:49 2003]  [jk_ajp13_worker.c (108)]: Into
ajp13_worker_factory
[Sun Jan 12 13:36:49 2003]  [jk_worker.c (171)]: wc_create_worker, about to
validate and init ajp13
[Sun Jan 12 13:36:49 2003]  [jk_ajp_common.c (1219)]: Into
jk_worker_t::validate
[Sun Jan 12 13:36:49 2003]  [jk_ajp_common.c (1239)]: In
jk_worker_t::validate for worker ajp13 contact is 127.0.0.1:8009
[Sun Jan 12 13:36:49 2003]  [jk_ajp_common.c (1267)]: Into jk_worker_t::init
[Sun Jan 12 13:36:49 2003]  [jk_ajp_common.c (1287)]: In jk_worker_t::init,
setting socket timeout to 0
[Sun Jan 12 13:36:49 2003]  [jk_worker.c (187)]: wc_create_worker, done
[Sun Jan 12 13:36:49 2003]  [jk_worker.c (238)]: build_worker_map, removing
old ajp13 worker 
[Sun Jan 12 13:36:49 2003]  [jk_worker.c (250)]: build_worker_map, done
[Sun Jan 12 13:36:49 2003]  [jk_worker.c (111)]: wc_open, done 1
[Sun Jan 12 13:36:59 2003]  [jk_uri_worker_map.c (460)]: Into
jk_uri_worker_map_t::map_uri_to_worker
[Sun Jan 12 13:36:59 2003]  [jk_uri_worker_map.c (477)]: Attempting to map
URI '/webapps/examples/jsp'
[Sun Jan 12 13:36:59 2003]  [jk_uri_worker_map.c (599)]:
jk_uri_worker_map_t::map_uri_to_worker, done without a match
[Sun Jan 12 13:37:00 2003]  [jk_uri_worker_map.c (460)]: Into
jk_uri_worker_map_t::map_uri_to_worker
[Sun Jan 12 13:37:00 2003]  [jk_uri_worker_map.c (477)]: Attempting to map
URI '/webapps/examples/jsp/'
[Sun Jan 12 13:37:00 2003]  [jk_uri_worker_map.c (599)]:
jk_uri_worker_map_t::map_uri_to_worker, done without a match
[Sun Jan 12 13:37:00 2003]  [jk_uri_worker_map.c (460)]: Into
jk_uri_worker_map_t::map_uri_to_worker
[Sun Jan 12 13:37:00 2003]  [jk_uri_worker_map.c (477)]: Attempting to map
URI '/webapps/examples/jsp/index.html'
[Sun Jan 12 13:37:00 2003]  [jk_uri_worker_map.c (599)]:
jk_uri_worker_map_t::map_uri_to_worker, done without a match
[Sun Jan 12 13:37:00 2003]  [jk_uri_worker_map.c (460)]: Into
jk_uri_worker_map_t::map_uri_to_worker
[Sun Jan 12 13:37:00 2003]  [jk_uri_worker_map.c (477)]: Attempting to map
URI '/webapps/examples/jsp/index.html'
[Sun Jan 12 13:37:00 2003]  [jk_uri_worker_map.c (599)]:
jk_uri_worker_map_t::map_uri_to_worker, done without a match
[Sun Jan 12 13:37:07 2003]  [jk_uri_worker_map.c (460)]: Into
jk_uri_worker_map_t::map_uri_to_worker
[Sun Jan 12 13:37:07 2003]  [jk_uri_worker_map.c (477)]: Attempting to map
URI '/webapps/examples/jsp/num/numguess.jsp'
[Sun Jan 12 13:37:07 2003]  [jk_uri_worker_map.c (558)]:
jk_uri_worker_map_t::map_uri_to_worker, Found a suffix match ajp13 -> *.jsp
[Sun Jan 12 13:37:07 2003]  [jk_worker.c (132)]: Into wc_get_worker_for_name
ajp13
[Sun Jan 12 13:37:07 2003]  [jk_worker.c (136)]: wc_get_worker_for_name,
done  found a worker
[Sun Jan 12 13:37:07 2003]  [jk_ajp_common.c (1404)]: Into
jk_worker_t::get_endpoint
[Sun Jan 12 13:37:07 2003]  [jk_ajp_common.c (1116)]: Into
jk_endpoint_t::service
[Sun Jan 12 13:37:07 2003]  [jk_ajp_common.c (295)]: Into
ajp_marshal_into_msgb
[Sun Jan 12 13:37:07 2003]  [jk_ajp_common.c (432)]: ajp_marshal_into_msgb -
Done
[Sun Jan 12 13:37:07 2003]  [jk_connect.c (158)]: Into jk_open_socket
[Sun Jan 12 13:37:07 2003]  [jk_connect.c (165)]: jk_open_socket, try to
connect socket = 6
[Sun Jan 12 13:37:07 2003]  [jk_connect.c (174)]: jk_open_socket, after
connect ret = 0
[Sun Jan 12 13:37:07 2003]  [jk_connect.c (183)]: jk_open_socket, set
TCP_NODELAY to on
[Sun Jan 12 13:37:07 2003]  [jk_connect.c (200)]: jk_open_socket, return, sd
= 6
[Sun Jan 12 13:37:07 2003]  [jk_ajp_common.c (614)]: In
jk_endpoint_t::ajp_connect_to_endpoint, connected sd = 6
[Sun Jan 12 13:37:07 2003]  [jk_ajp_common.c (642)]: sending to ajp13 #263
[Sun Jan 12 13:37:07 2003]  [jk_ajp_common.c (884)]: ajp_send_request 2:
request body to send 0 - request body to resend 0
[Sun Jan 12