RE: mod_jk runs but doesnt process

2002-10-28 Thread Turner, John

Does the request ever get to Tomcat?  What's in Tomcat's logs?

John


 -Original Message-
 From: Benjamin Charles Tehan [mailto:benjamin;evolutionism.org]
 Sent: Monday, October 28, 2002 5:50 AM
 To: [EMAIL PROTECTED]
 Subject: mod_jk runs but doesnt process
 
 
 I have a small problem with mod_jk
 
 It loads with apache ok, and when I goto 
 http://localhost/index.jsp it runs
 but I get no result back from the web server, though I can 
 see the connection 
 in mod_jk.log (attached below)
 
 Once it gets to Into ajpv12_handle_response it stops and 
 the browser stays 
 connected with no responce, i tried a simple hello word jsp script.
 
 I'm Running linux (debian 3.0)
 I'm Running jakarta-tomcat-4.1.12 binary version
 I'm Running jakarta-tomcat-connectors-4.1.12-src compiled from source
 apxs -o /usr/lib/apache/mod_jk.so -I../common/ 
 -I${JAVA_HOME}/include/ \
 -I${JAVA_HOME}/include/linux -c *.c ../common/*.c
 
 This has previously worked, I'm sure missed something small 
 in the config 
 files some where
 
 -
 httpd.conf is simply
 -
 
 LoadModule jk_modulelib/apache/mod_jk.so 
 AddModule mod_jk.c 
  
 IfModule mod_jk.c 
   JkWorkersFile /usr/local/tomcat/conf/workers.properties 
   JkLogFile /usr/local/tomcat/logs/mod_jk.log 
   JkLogLevel debug 
   JkMount /*.jsp ajp13 
   JkMount /servlet/* ajp13 
 /IfModule
 
 --
 workers.properties is simply
 --
 
 workers.tomcat_home=/usr/local/tomcat 
 workers.catalina_home=/usr/local/tomcat 
 workers.java_home=/usr/local/j2sdk1.4.0_01 
  
 ps=/ 
 worker.list=ajp12, ajp13 
 worker.ajp13.port=8009 
 worker.ajp13.host=127.0.0.1 
 worker.ajp12.type=ajp13
 
 
 Part of the mod_jk.log
 
 
 [Tue Oct 29 06:45:47 2002]  [jk_uri_worker_map.c (460)]: Into 
 jk_uri_worker_map_t::map_uri_to_worker
 [Tue Oct 29 06:45:47 2002]  [jk_uri_worker_map.c (477)]: 
 Attempting to map 
 URI '/index.jsp'
 [Tue Oct 29 06:45:47 2002]  [jk_uri_worker_map.c (558)]: 
 jk_uri_worker_map_t::map_uri_to_worker, Found a suffix match ajp13
 - *.jsp
 [Tue Oct 29 06:45:47 2002]  [jk_worker.c (132)]: Into 
 wc_get_worker_for_name 
 ajp13
 [Tue Oct 29 06:45:47 2002]  [jk_worker.c (136)]: 
 wc_get_worker_for_name, done 
  found a worker
 [Tue Oct 29 06:45:47 2002]  [jk_ajp12_worker.c (242)]: Into 
 jk_worker_t::get_endpoint
 [Tue Oct 29 06:45:47 2002]  [jk_ajp12_worker.c (137)]: Into 
 jk_endpoint_t::service
 [Tue Oct 29 06:45:47 2002]  [jk_connect.c (132)]: Into jk_open_socket
 [Tue Oct 29 06:45:47 2002]  [jk_connect.c (139)]: 
 jk_open_socket, try to 
 connect socket = 7
 [Tue Oct 29 06:45:47 2002]  [jk_connect.c (148)]: 
 jk_open_socket, after 
 connect ret = 0
 [Tue Oct 29 06:45:47 2002]  [jk_connect.c (157)]: jk_open_socket, set 
 TCP_NODELAY to on
 [Tue Oct 29 06:45:47 2002]  [jk_connect.c (174)]: 
 jk_open_socket, return, sd 
 = 7
 [Tue Oct 29 06:45:47 2002]  [jk_ajp12_worker.c (151)]: In 
 jk_endpoint_t::service, sd = 7
 [Tue Oct 29 06:45:47 2002]  [jk_ajp12_worker.c (398)]: Into 
 ajpv12_handle_request
 [Tue Oct 29 06:45:47 2002]  [jk_ajp12_worker.c (402)]: 
 ajpv12_handle_request, 
 sending the ajp12 start sequence
 [Tue Oct 29 06:45:47 2002]  [jk_ajp12_worker.c (466)]: 
 ajpv12_handle_request, 
 sending the headers
 [Tue Oct 29 06:45:47 2002]  [jk_ajp12_worker.c (485)]: 
 ajpv12_handle_request, 
 sending the terminating mark
 [Tue Oct 29 06:45:47 2002]  [jk_ajp12_worker.c (530)]: 
 ajpv12_handle_request 
 done
 [Tue Oct 29 06:45:47 2002]  [jk_ajp12_worker.c (165)]: In 
 jk_endpoint_t::service, sent request
 [Tue Oct 29 06:45:47 2002]  [jk_ajp12_worker.c (546)]: Into 
 ajpv12_handle_response
 
 --
 To unsubscribe, e-mail:   
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: mod_jk runs but doesnt process

2002-10-28 Thread mlh





workers.tomcat_home=/usr/local/tomcat 
workers.catalina_home=/usr/local/tomcat 
workers.java_home=/usr/local/j2sdk1.4.0_01 

ps=/ 
worker.list=ajp12, ajp13 
worker.ajp13.port=8009 
worker.ajp13.host=127.0.0.1 
worker.ajp12.type=ajp13


You have a curious workers.properties file there.

Don't you want:

worker.list=ajp13 
worker.ajp13.port=8009 
worker.ajp13.host=127.0.0.1
worker.ajp13.type=ajp13

Regards,
Matt






--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org



RE: mod_jk runs but doesnt process

2002-10-28 Thread Turner, John

I assumed worker.ajp12.type=ajp13 was a typo...if it's not, it definitely
needs to be changed.

John


 -Original Message-
 From: mlh [mailto:mlh;zip.com.au]
 Sent: Monday, October 28, 2002 8:20 AM
 To: Tomcat Users List
 Subject: Re: mod_jk runs but doesnt process
 
 
 
 
 
 
 workers.tomcat_home=/usr/local/tomcat 
 workers.catalina_home=/usr/local/tomcat 
 workers.java_home=/usr/local/j2sdk1.4.0_01 
  
 ps=/ 
 worker.list=ajp12, ajp13 
 worker.ajp13.port=8009 
 worker.ajp13.host=127.0.0.1 
 worker.ajp12.type=ajp13
 
 
 You have a curious workers.properties file there.
 
 Don't you want:
 
 worker.list=ajp13 
 worker.ajp13.port=8009 
 worker.ajp13.host=127.0.0.1
 worker.ajp13.type=ajp13
 
 Regards,
 Matt
  
 
 
 
 
 
 --
 To unsubscribe, e-mail:   
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail: 
mailto:tomcat-user-help;jakarta.apache.org


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: mod_jk runs but doesnt process

2002-10-28 Thread MURAT BALKAS

I need some help about apache + tomcat + virtual hosts.

I'm using jakarta-tomcat-4.0.4 and I've a working system. I need to make
the working system support virtual hosting.
When looking at the documentation I always see some config files which I do
not have. e.g. : workers.properties,  mod_jk.conf-auto, ...
I'm really confused.

Is there any step by step HOWTO which explains mod_jk installation for
binary tomcat releases.

Any help would be greatly appreciated.

Murat BALKAS



   

  Turner, John   

  [EMAIL PROTECTED]To:   'Tomcat Users List' 
[EMAIL PROTECTED]  
   cc: 

  10/28/2002 03:09 Subject:  RE: mod_jk runs but doesnt 
process
  PM   

  Please respond to

  Tomcat Users

  List

   

   






Does the request ever get to Tomcat?  What's in Tomcat's logs?

John


 -Original Message-
 From: Benjamin Charles Tehan [mailto:benjamin;evolutionism.org]
 Sent: Monday, October 28, 2002 5:50 AM
 To: [EMAIL PROTECTED]
 Subject: mod_jk runs but doesnt process


 I have a small problem with mod_jk

 It loads with apache ok, and when I goto
 http://localhost/index.jsp it runs
 but I get no result back from the web server, though I can
 see the connection
 in mod_jk.log (attached below)

 Once it gets to Into ajpv12_handle_response it stops and
 the browser stays
 connected with no responce, i tried a simple hello word jsp script.

 I'm Running linux (debian 3.0)
 I'm Running jakarta-tomcat-4.1.12 binary version
 I'm Running jakarta-tomcat-connectors-4.1.12-src compiled from source
 apxs -o /usr/lib/apache/mod_jk.so -I../common/
 -I${JAVA_HOME}/include/ \
 -I${JAVA_HOME}/include/linux -c *.c ../common/*.c

 This has previously worked, I'm sure missed something small
 in the config
 files some where

 -
 httpd.conf is simply
 -

 LoadModule jk_modulelib/apache/mod_jk.so
 AddModule mod_jk.c

 IfModule mod_jk.c
   JkWorkersFile /usr/local/tomcat/conf/workers.properties
   JkLogFile /usr/local/tomcat/logs/mod_jk.log
   JkLogLevel debug
   JkMount /*.jsp ajp13
   JkMount /servlet/* ajp13
 /IfModule

 --
 workers.properties is simply
 --

 workers.tomcat_home=/usr/local/tomcat
 workers.catalina_home=/usr/local/tomcat
 workers.java_home=/usr/local/j2sdk1.4.0_01

 ps=/
 worker.list=ajp12, ajp13
 worker.ajp13.port=8009
 worker.ajp13.host=127.0.0.1
 worker.ajp12.type=ajp13

 
 Part of the mod_jk.log
 

 [Tue Oct 29 06:45:47 2002]  [jk_uri_worker_map.c (460)]: Into
 jk_uri_worker_map_t::map_uri_to_worker
 [Tue Oct 29 06:45:47 2002]  [jk_uri_worker_map.c (477)]:
 Attempting to map
 URI '/index.jsp'
 [Tue Oct 29 06:45:47 2002]  [jk_uri_worker_map.c (558)]:
 jk_uri_worker_map_t::map_uri_to_worker, Found a suffix match ajp13
 - *.jsp
 [Tue Oct 29 06:45:47 2002]  [jk_worker.c (132)]: Into
 wc_get_worker_for_name
 ajp13
 [Tue Oct 29 06:45:47 2002]  [jk_worker.c (136)]:
 wc_get_worker_for_name, done
  found a worker
 [Tue Oct 29 06:45:47 2002]  [jk_ajp12_worker.c (242)]: Into
 jk_worker_t::get_endpoint
 [Tue Oct 29 06:45:47 2002]  [jk_ajp12_worker.c (137)]: Into
 jk_endpoint_t::service
 [Tue Oct 29 06:45:47 2002]  [jk_connect.c (132)]: Into jk_open_socket
 [Tue Oct 29 06:45:47 2002]  [jk_connect.c (139)]:
 jk_open_socket, try to
 connect socket = 7
 [Tue Oct 29 06:45:47 2002]  [jk_connect.c (148)]:
 jk_open_socket, after
 connect ret = 0
 [Tue Oct 29 06:45:47 2002]  [jk_connect.c (157)]: jk_open_socket, set
 TCP_NODELAY to on
 [Tue Oct 29 06:45:47 2002]  [jk_connect.c (174)]:
 jk_open_socket, return, sd
 = 7
 [Tue Oct 29 06:45:47 2002]  [jk_ajp12_worker.c (151)]: In
 jk_endpoint_t::service, sd = 7
 [Tue Oct 29 06:45:47 2002

Re: mod_jk runs but doesnt process

2002-10-28 Thread Umberto Nicoletti
Take a look at my howto (if you're on Linux). If you're on win2k
I think John Turner has posted an howto for that platform (I apologize
if I'm not correct).

Search for jk2 vhost howto (it is quite recent, was posted last week) or
email me directly.

HTH,
umberto

MURAT BALKAS wrote:
 
 I need some help about apache + tomcat + virtual hosts.
 
 I'm using jakarta-tomcat-4.0.4 and I've a working system. I need to make
 the working system support virtual hosting.
 When looking at the documentation I always see some config files which I do
 not have. e.g. : workers.properties,  mod_jk.conf-auto, ...
 I'm really confused.
 
 Is there any step by step HOWTO which explains mod_jk installation for
 binary tomcat releases.
 
 Any help would be greatly appreciated.
 
 Murat BALKAS
 
 
   Turner, John
   [EMAIL PROTECTED]To:   'Tomcat Users List' 
[EMAIL PROTECTED]
cc:
   10/28/2002 03:09 Subject:  RE: mod_jk runs but doesnt 
process
   PM
   Please respond to
   Tomcat Users
   List
 
 
 
 Does the request ever get to Tomcat?  What's in Tomcat's logs?
 
 John
 
  -Original Message-
  From: Benjamin Charles Tehan [mailto:benjamin;evolutionism.org]
  Sent: Monday, October 28, 2002 5:50 AM
  To: [EMAIL PROTECTED]
  Subject: mod_jk runs but doesnt process
 
 
  I have a small problem with mod_jk
 
  It loads with apache ok, and when I goto
  http://localhost/index.jsp it runs
  but I get no result back from the web server, though I can
  see the connection
  in mod_jk.log (attached below)
 
  Once it gets to Into ajpv12_handle_response it stops and
  the browser stays
  connected with no responce, i tried a simple hello word jsp script.
 
  I'm Running linux (debian 3.0)
  I'm Running jakarta-tomcat-4.1.12 binary version
  I'm Running jakarta-tomcat-connectors-4.1.12-src compiled from source
  apxs -o /usr/lib/apache/mod_jk.so -I../common/
  -I${JAVA_HOME}/include/ \
  -I${JAVA_HOME}/include/linux -c *.c ../common/*.c
 
  This has previously worked, I'm sure missed something small
  in the config
  files some where
 
  -
  httpd.conf is simply
  -
 
  LoadModule jk_modulelib/apache/mod_jk.so
  AddModule mod_jk.c
 
  IfModule mod_jk.c
JkWorkersFile /usr/local/tomcat/conf/workers.properties
JkLogFile /usr/local/tomcat/logs/mod_jk.log
JkLogLevel debug
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13
  /IfModule
 
  --
  workers.properties is simply
  --
 
  workers.tomcat_home=/usr/local/tomcat
  workers.catalina_home=/usr/local/tomcat
  workers.java_home=/usr/local/j2sdk1.4.0_01
 
  ps=/
  worker.list=ajp12, ajp13
  worker.ajp13.port=8009
  worker.ajp13.host=127.0.0.1
  worker.ajp12.type=ajp13
 
  
  Part of the mod_jk.log
  
 
  [Tue Oct 29 06:45:47 2002]  [jk_uri_worker_map.c (460)]: Into
  jk_uri_worker_map_t::map_uri_to_worker
  [Tue Oct 29 06:45:47 2002]  [jk_uri_worker_map.c (477)]:
  Attempting to map
  URI '/index.jsp'
  [Tue Oct 29 06:45:47 2002]  [jk_uri_worker_map.c (558)]:
  jk_uri_worker_map_t::map_uri_to_worker, Found a suffix match ajp13
  - *.jsp
  [Tue Oct 29 06:45:47 2002]  [jk_worker.c (132)]: Into
  wc_get_worker_for_name
  ajp13
  [Tue Oct 29 06:45:47 2002]  [jk_worker.c (136)]:
  wc_get_worker_for_name, done
   found a worker
  [Tue Oct 29 06:45:47 2002]  [jk_ajp12_worker.c (242)]: Into
  jk_worker_t::get_endpoint
  [Tue Oct 29 06:45:47 2002]  [jk_ajp12_worker.c (137)]: Into
  jk_endpoint_t::service
  [Tue Oct 29 06:45:47 2002]  [jk_connect.c (132)]: Into jk_open_socket
  [Tue Oct 29 06:45:47 2002]  [jk_connect.c (139)]:
  jk_open_socket, try to
  connect socket = 7
  [Tue Oct 29 06:45:47 2002]  [jk_connect.c (148)]:
  jk_open_socket, after
  connect ret = 0
  [Tue Oct 29 06:45:47 2002]  [jk_connect.c (157)]: jk_open_socket, set
  TCP_NODELAY to on
  [Tue Oct 29 06:45:47 2002]  [jk_connect.c (174)]:
  jk_open_socket, return, sd
  = 7
  [Tue Oct 29 06:45:47 2002]  [jk_ajp12_worker.c (151)]: In
  jk_endpoint_t::service, sd = 7
  [Tue Oct 29 06:45:47 2002]  [jk_ajp12_worker.c (398)]: Into
  ajpv12_handle_request
  [Tue Oct 29 06:45:47 2002]  [jk_ajp12_worker.c (402)]:
  ajpv12_handle_request,
  sending the ajp12 start sequence
  [Tue Oct 29 06:45:47 2002]  [jk_ajp12_worker.c (466)]:
  ajpv12_handle_request,
  sending the headers
  [Tue Oct 29 06:45:47 2002]  [jk_ajp12_worker.c (485)]:
  ajpv12_handle_request,
  sending the terminating mark
  [Tue Oct 29 06:45:47 2002]  [jk_ajp12_worker.c (530)]:
  ajpv12_handle_request
  done
  [Tue Oct 29 06:45:47 2002]  [jk_ajp12_worker.c (165)]: In
  jk_endpoint_t::service, sent request
  [Tue Oct 29 06:45:47 2002]  [jk_ajp12_worker.c (546)]: Into
  ajpv12_handle_response

RE: mod_jk runs but doesnt process

2002-10-28 Thread Turner, John

http://www.johnturner.com/howto

workers.properties is a file used by mod_jk.  Mod_jk is used by Apache to
connect to Tomcat to serve JSP and servlet requests.  If you do not have
Apache or use Apache, you do not need mod_jk.so or workers.properties.

mod_jk.conf-auto is also known as mod_jk.conf.  This file is created by
Tomcat on startup if Tomcat is configured to create it.  It contains the
Apache directives that belong in httpd.conf in order to use mod_jk.so to
connect to Tomcat.

Tomcat supports virtual hosts out of the box.  In the default server.xml,
there is already a virtual host configured, it is called localhost.

If you could be more clear what you want to do, plenty of people here can
help.  You might also want to start a new thread instead of hijacking this
one.

John

 -Original Message-
 From: MURAT BALKAS [mailto:murat.balkas;o2.net.tr]
 Sent: Monday, October 28, 2002 10:52 AM
 To: Tomcat Users List
 Subject: RE: mod_jk runs but doesnt process
 
 
 
 I need some help about apache + tomcat + virtual hosts.
 
 I'm using jakarta-tomcat-4.0.4 and I've a working system. I 
 need to make
 the working system support virtual hosting.
 When looking at the documentation I always see some config 
 files which I do
 not have. e.g. : workers.properties,  mod_jk.conf-auto, ...
 I'm really confused.
 
 Is there any step by step HOWTO which explains mod_jk installation for
 binary tomcat releases.
 
 Any help would be greatly appreciated.
 
 Murat BALKAS
 
 
 
   
   

   Turner, John  
   

   [EMAIL PROTECTED]To:   
 'Tomcat Users List' [EMAIL PROTECTED]  
 
cc:
   

   10/28/2002 03:09 Subject:  RE: 
 mod_jk runs but doesnt process
 
   PM  
   

   Please respond to   
   

   Tomcat Users   
   

   List   
   

   
   

   
   

 
 
 
 
 
 Does the request ever get to Tomcat?  What's in Tomcat's logs?
 
 John
 
 
  -Original Message-
  From: Benjamin Charles Tehan [mailto:benjamin;evolutionism.org]
  Sent: Monday, October 28, 2002 5:50 AM
  To: [EMAIL PROTECTED]
  Subject: mod_jk runs but doesnt process
 
 
  I have a small problem with mod_jk
 
  It loads with apache ok, and when I goto
  http://localhost/index.jsp it runs
  but I get no result back from the web server, though I can
  see the connection
  in mod_jk.log (attached below)
 
  Once it gets to Into ajpv12_handle_response it stops and
  the browser stays
  connected with no responce, i tried a simple hello word jsp script.
 
  I'm Running linux (debian 3.0)
  I'm Running jakarta-tomcat-4.1.12 binary version
  I'm Running jakarta-tomcat-connectors-4.1.12-src compiled 
 from source
  apxs -o /usr/lib/apache/mod_jk.so -I../common/
  -I${JAVA_HOME}/include/ \
  -I${JAVA_HOME}/include/linux -c *.c ../common/*.c
 
  This has previously worked, I'm sure missed something small
  in the config
  files some where
 
  -
  httpd.conf is simply
  -
 
  LoadModule jk_modulelib/apache/mod_jk.so
  AddModule mod_jk.c
 
  IfModule mod_jk.c
JkWorkersFile /usr/local/tomcat/conf/workers.properties
JkLogFile /usr/local/tomcat/logs/mod_jk.log
JkLogLevel debug
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13
  /IfModule
 
  --
  workers.properties is simply
  --
 
  workers.tomcat_home=/usr/local/tomcat
  workers.catalina_home=/usr/local/tomcat
  workers.java_home=/usr/local/j2sdk1.4.0_01
 
  ps=/
  worker.list=ajp12, ajp13
  worker.ajp13.port=8009
  worker.ajp13.host=127.0.0.1
  worker.ajp12.type=ajp13
 
  
  Part of the mod_jk.log
  
 
  [Tue Oct 29 06:45:47 2002]  [jk_uri_worker_map.c (460)]: Into
  jk_uri_worker_map_t::map_uri_to_worker
  [Tue

Re: mod_jk runs but doesnt process

2002-10-28 Thread Benjamin Charles Tehan
Thanks alot Matt

Solved the problem.

I got those details from 2 seperate sources on the net, the 2 different 
howto's had the same thing.

I guess they arnt very good howto's

Thanks for the fix.

Regards,

   Benjamin Charles Tehan

On Mon 28 Oct 02 21:20, you wrote:
 workers.tomcat_home=/usr/local/tomcat
 workers.catalina_home=/usr/local/tomcat
 workers.java_home=/usr/local/j2sdk1.4.0_01
 
 ps=/
 worker.list=ajp12, ajp13
 worker.ajp13.port=8009
 worker.ajp13.host=127.0.0.1
 worker.ajp12.type=ajp13

 You have a curious workers.properties file there.

 Don't you want:

 worker.list=ajp13
 worker.ajp13.port=8009
 worker.ajp13.host=127.0.0.1
 worker.ajp13.type=ajp13

 Regards,
 Matt

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: mod_jk runs but doesnt process

2002-10-28 Thread Matthew Hannigan
On Tue, Oct 29, 2002 at 03:41:09AM +0800, Benjamin Charles Tehan wrote:
 Thanks alot Matt
 
 Solved the problem.
 
 I got those details from 2 seperate sources on the net, the 2 different 
 howto's had the same thing.
 
 I guess they arnt very good howto's

Be sure to tell the owners of those howtos the problem,
open source is all about helping each other!


 Thanks for the fix.

You're welcome.

Matt

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org