mod_jk stop after 'done found a worker'

2002-12-04 Thread Geoff Howard
SDK 1.4.1_01
Tomcat 4.1.12-LE binary
Apache 1.3.27 with ssl/eapi
mod_jk-1.3-eapi.so (symlinked to mod_jk.so)
obtained from
http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1.2.1/bin/linux/i386/
Linux

Tomcat works fine on 8080, Apache works fine on 80.  The server is
remote (hosting facility) so I'm not using local host.  As DNS is not
propagated fully, I'm using IP address as ServerName in httpd.conf, and
in Engine and Host declarations in server.xml.  Accessing
http://{ipaddress}/examples/ no response in browser (actually it looks
like 404, but using telnet directly showed literally no response, just
connection lost.  Below are mod_jk.log, server.xml snippets,
workers.properties, mod_jk.conf, and httpd.conf include line.

[Wed Dec 04 08:53:09 2002]  [jk_uri_worker_map.c (460)]: Into
jk_uri_worker_map_t::map_uri_to_worker
[Wed Dec 04 08:53:09 2002]  [jk_uri_worker_map.c (477)]: Attempting to
map URI '/examples/'
[Wed Dec 04 08:53:09 2002]  [jk_uri_worker_map.c (502)]:
jk_uri_worker_map_t::map_uri_to_worker, Found a context mat
ch ajp13 - /examples/
[Wed Dec 04 08:53:09 2002]  [jk_worker.c (132)]: Into
wc_get_worker_for_name ajp13
[Wed Dec 04 08:53:09 2002]  [jk_worker.c (136)]:
wc_get_worker_for_name, done  found a worker
[Wed Dec 04 08:55:00 2002]  [jk_uri_worker_map.c (460)]: Into
jk_uri_worker_map_t::map_uri_to_worker
[Wed Dec 04 08:55:00 2002]  [jk_uri_worker_map.c (477)]: Attempting to
map URI '/whm-server-status'

The last two entries are for a different request, two seconds later. So
it appears that the processing stops after 'found a worker'
-
Server port=8005 shutdown=SHUTDOWN debug=0
Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
jkDebug=debug/
... (mbeans listeners commented out because of errors at startup)

  !-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 --
  !-- Connector className=org.apache.coyote.tomcat4.CoyoteConnector
commented out
--
!-- Define an AJP 1.3 Connector on port 8009 --
Connector className=org.apache.ajp.tomcat4.Ajp13Connector
   port=8009 minProcessors=5 maxProcessors=75
   acceptCount=10 debug=10/
...
Engine name=Standalone defaultHost={ipaddress} debug=0
...
  !-- Define the default virtual host --
  Host name={ipaddress} debug=0 appBase=webapps
   unpackWARs=true autoDeploy=true
Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
  append=true jkDebug=debug/
Aliaslocalhost/Alias !-- so I can try from lynx - no luck --
Alias127.0.0.1/Alias
...
mod_webapp commented out

--
workers.tomcat_home=/opt/tomcat
workers.java_home=/opt/java
ps=/
worker.list=ajp12, ajp13

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

## Auto generated on Wed Dec 04 08:49:31 EST 2002##

IfModule !mod_jk.c
  LoadModule jk_module libexec/mod_jk.so
/IfModule

JkWorkersFile /opt/tomcat/conf/jk/workers.properties
JkLogFile /opt/tomcat/logs/mod_jk.log

JkLogLevel debug

VirtualHost 64.91.232.157
ServerName 64.91.232.157
ServerAlias localhost 127.0.0.1

JkMount /admin ajp13
JkMount /admin/* ajp13

JkMount /webdav ajp13
JkMount /webdav/* ajp13
JkMount /examples ajp13
JkMount /examples/* ajp13

JkMount /tomcat-docs ajp13
JkMount /tomcat-docs/* ajp13

JkMount /manager ajp13
JkMount /manager/* ajp13
/VirtualHost

---
Include /opt/tomcat/conf/auto/mod_jk.conf

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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




RE: mod_jk stop after 'done found a worker'

2002-12-04 Thread Geoff Howard
thanks for the reply - just did so with no effect.  

Am I right in interpreting the mod_jk log to mean that Apache has
started it's end of the connector, finds the configured worker, but
then Tomcat is not responding?  If so, it seems like some possible
problems are:
1) VirtualHost mismatches - i've tried to protect against this but am
open to suggestions.
2) Port communication problems.  I can telnet to 8009 using both
localhost and ip address, so that rules that out?
3) Problem with mod_jk on my config combination?  Changing Apache
version is not really practical in my situation, but everything else
is.  

Any more advice?
Geoff Howard

--- Turner, John [EMAIL PROTECTED] wrote:
 
 I would delete references to ajp12 from workers.properties.
 
 John
 
  -Original Message-
  From: Geoff Howard [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, December 04, 2002 10:41 AM
  To: [EMAIL PROTECTED]
  Subject: mod_jk stop after 'done found a worker'
  
  
  SDK 1.4.1_01
  Tomcat 4.1.12-LE binary
  Apache 1.3.27 with ssl/eapi
  mod_jk-1.3-eapi.so (symlinked to mod_jk.so)
  obtained from
  http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/
  release/v1.2.1/bin/linux/i386/
  Linux
  
  Tomcat works fine on 8080, Apache works fine on 80.  The server is
  remote (hosting facility) so I'm not using local host.  As DNS is
 not
  propagated fully, I'm using IP address as ServerName in 
  httpd.conf, and
  in Engine and Host declarations in server.xml.  Accessing
  http://{ipaddress}/examples/ no response in browser (actually it
 looks
  like 404, but using telnet directly showed literally no response,
 just
  connection lost.  Below are mod_jk.log, server.xml snippets,
  workers.properties, mod_jk.conf, and httpd.conf include line.
  
  [Wed Dec 04 08:53:09 2002]  [jk_uri_worker_map.c (460)]: Into
  jk_uri_worker_map_t::map_uri_to_worker
  [Wed Dec 04 08:53:09 2002]  [jk_uri_worker_map.c (477)]: Attempting
 to
  map URI '/examples/'
  [Wed Dec 04 08:53:09 2002]  [jk_uri_worker_map.c (502)]:
  jk_uri_worker_map_t::map_uri_to_worker, Found a context mat
  ch ajp13 - /examples/
  [Wed Dec 04 08:53:09 2002]  [jk_worker.c (132)]: Into
  wc_get_worker_for_name ajp13
  [Wed Dec 04 08:53:09 2002]  [jk_worker.c (136)]:
  wc_get_worker_for_name, done  found a worker
  [Wed Dec 04 08:55:00 2002]  [jk_uri_worker_map.c (460)]: Into
  jk_uri_worker_map_t::map_uri_to_worker
  [Wed Dec 04 08:55:00 2002]  [jk_uri_worker_map.c (477)]: Attempting
 to
  map URI '/whm-server-status'
  
  The last two entries are for a different request, two seconds 
  later. So
  it appears that the processing stops after 'found a worker'
  -
  Server port=8005 shutdown=SHUTDOWN debug=0
  Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
  jkDebug=debug/
  ... (mbeans listeners commented out because of errors at startup)
  
!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 --
!-- Connector 
  className=org.apache.coyote.tomcat4.CoyoteConnector
  commented out
  --
  !-- Define an AJP 1.3 Connector on port 8009 --
  Connector className=org.apache.ajp.tomcat4.Ajp13Connector
 port=8009 minProcessors=5 maxProcessors=75
 acceptCount=10 debug=10/
  ...
  Engine name=Standalone defaultHost={ipaddress} debug=0
  ...
!-- Define the default virtual host --
Host name={ipaddress} debug=0 appBase=webapps
 unpackWARs=true autoDeploy=true
  Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
append=true jkDebug=debug/
  Aliaslocalhost/Alias !-- so I can try from lynx - no luck --
  Alias127.0.0.1/Alias
  ...
  mod_webapp commented out
  
  --
  workers.tomcat_home=/opt/tomcat
  workers.java_home=/opt/java
  ps=/
  worker.list=ajp12, ajp13
  
  # Definition for Ajp13 worker
  #
  worker.ajp13.port=8009
  worker.ajp13.host=64.91.232.157
  worker.ajp13.type=ajp13
  
  ## Auto generated on Wed Dec 04 08:49:31 EST 2002##
  
  IfModule !mod_jk.c
LoadModule jk_module libexec/mod_jk.so
  /IfModule
  
  JkWorkersFile /opt/tomcat/conf/jk/workers.properties
  JkLogFile /opt/tomcat/logs/mod_jk.log
  
  JkLogLevel debug
  
  VirtualHost 64.91.232.157
  ServerName 64.91.232.157
  ServerAlias localhost 127.0.0.1
  
  JkMount /admin ajp13
  JkMount /admin/* ajp13
  
  JkMount /webdav ajp13
  JkMount /webdav/* ajp13
  JkMount /examples ajp13
  JkMount /examples/* ajp13
  
  JkMount /tomcat-docs ajp13
  JkMount /tomcat-docs/* ajp13
  
  JkMount /manager ajp13
  JkMount /manager/* ajp13
  /VirtualHost
  
  ---
  Include /opt/tomcat/conf/auto/mod_jk.conf
  
  __
  Do you Yahoo!?
  Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
  http://mailplus.yahoo.com
  
  --
  To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 --
 To unsubscribe, e-mail

Fwd: RE: mod_jk stop after 'done found a worker'

2002-12-04 Thread Geoff Howard

--- Geoff Howard [EMAIL PROTECTED] wrote:
 Date: Wed, 4 Dec 2002 08:51:59 -0800 (PST)
 From: Geoff Howard [EMAIL PROTECTED]
 Subject: RE: mod_jk stop after 'done  found a worker'
 To: Tomcat Users List [EMAIL PROTECTED]
 
 thanks for the reply - just did so with no effect.  
 
 Am I right in interpreting the mod_jk log to mean that Apache has
 started it's end of the connector, finds the configured worker, but
 then Tomcat is not responding?  If so, it seems like some possible
 problems are:
 1) VirtualHost mismatches - i've tried to protect against this but am
 open to suggestions.
 2) Port communication problems.  I can telnet to 8009 using both
 localhost and ip address, so that rules that out?
 3) Problem with mod_jk on my config combination?  Changing Apache
 version is not really practical in my situation, but everything else
 is.  
 
 Any more advice?
 Geoff Howard
 
 --- Turner, John [EMAIL PROTECTED] wrote:
  
  I would delete references to ajp12 from workers.properties.
  
  John
  
   -Original Message-
   From: Geoff Howard [mailto:[EMAIL PROTECTED]]
   Sent: Wednesday, December 04, 2002 10:41 AM
   To: [EMAIL PROTECTED]
   Subject: mod_jk stop after 'done found a worker'
   
   
   SDK 1.4.1_01
   Tomcat 4.1.12-LE binary
   Apache 1.3.27 with ssl/eapi
   mod_jk-1.3-eapi.so (symlinked to mod_jk.so)
   obtained from
   http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/
   release/v1.2.1/bin/linux/i386/
   Linux
   
   Tomcat works fine on 8080, Apache works fine on 80.  The server
 is
   remote (hosting facility) so I'm not using local host.  As DNS is
  not
   propagated fully, I'm using IP address as ServerName in 
   httpd.conf, and
   in Engine and Host declarations in server.xml.  Accessing
   http://{ipaddress}/examples/ no response in browser (actually it
  looks
   like 404, but using telnet directly showed literally no response,
  just
   connection lost.  Below are mod_jk.log, server.xml snippets,
   workers.properties, mod_jk.conf, and httpd.conf include line.
   
   [Wed Dec 04 08:53:09 2002]  [jk_uri_worker_map.c (460)]: Into
   jk_uri_worker_map_t::map_uri_to_worker
   [Wed Dec 04 08:53:09 2002]  [jk_uri_worker_map.c (477)]:
 Attempting
  to
   map URI '/examples/'
   [Wed Dec 04 08:53:09 2002]  [jk_uri_worker_map.c (502)]:
   jk_uri_worker_map_t::map_uri_to_worker, Found a context mat
   ch ajp13 - /examples/
   [Wed Dec 04 08:53:09 2002]  [jk_worker.c (132)]: Into
   wc_get_worker_for_name ajp13
   [Wed Dec 04 08:53:09 2002]  [jk_worker.c (136)]:
   wc_get_worker_for_name, done  found a worker
   [Wed Dec 04 08:55:00 2002]  [jk_uri_worker_map.c (460)]: Into
   jk_uri_worker_map_t::map_uri_to_worker
   [Wed Dec 04 08:55:00 2002]  [jk_uri_worker_map.c (477)]:
 Attempting
  to
   map URI '/whm-server-status'
   
   The last two entries are for a different request, two seconds 
   later. So
   it appears that the processing stops after 'found a worker'
   -
   Server port=8005 shutdown=SHUTDOWN debug=0
   Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
   jkDebug=debug/
   ... (mbeans listeners commented out because of errors at startup)
   
 !-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 --
 !-- Connector 
   className=org.apache.coyote.tomcat4.CoyoteConnector
   commented out
   --
   !-- Define an AJP 1.3 Connector on port 8009 --
   Connector className=org.apache.ajp.tomcat4.Ajp13Connector
  port=8009 minProcessors=5 maxProcessors=75
  acceptCount=10 debug=10/
   ...
   Engine name=Standalone defaultHost={ipaddress}
 debug=0
   ...
 !-- Define the default virtual host --
 Host name={ipaddress} debug=0 appBase=webapps
  unpackWARs=true autoDeploy=true
   Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
 append=true jkDebug=debug/
   Aliaslocalhost/Alias !-- so I can try from lynx - no luck
 --
   Alias127.0.0.1/Alias
   ...
   mod_webapp commented out
   
   --
   workers.tomcat_home=/opt/tomcat
   workers.java_home=/opt/java
   ps=/
   worker.list=ajp12, ajp13
   
   # Definition for Ajp13 worker
   #
   worker.ajp13.port=8009
   worker.ajp13.host=64.91.232.157
   worker.ajp13.type=ajp13
   
   ## Auto generated on Wed Dec 04 08:49:31 EST
 2002##
   
   IfModule !mod_jk.c
 LoadModule jk_module libexec/mod_jk.so
   /IfModule
   
   JkWorkersFile /opt/tomcat/conf/jk/workers.properties
   JkLogFile /opt/tomcat/logs/mod_jk.log
   
   JkLogLevel debug
   
   VirtualHost 64.91.232.157
   ServerName 64.91.232.157
   ServerAlias localhost 127.0.0.1
   
   JkMount /admin ajp13
   JkMount /admin/* ajp13
   
   JkMount /webdav ajp13
   JkMount /webdav/* ajp13
   JkMount /examples ajp13
   JkMount /examples/* ajp13
   
   JkMount /tomcat-docs ajp13
   JkMount /tomcat-docs/* ajp13
   
   JkMount /manager ajp13
   JkMount /manager/* ajp13

Re: mod_jk stop after 'done found a worker'

2002-12-04 Thread Geoff Howard
Thanks for the reply.  
Not much info there - localhost_log has only 
2002-12-04 14:15:18 HostConfig[xx.xx.xx.xx]: Deploying discovered web
applications
around the request times.

catalina_log has only 
2002-12-04 14:16:59 Ajp13Connector[8009] active threads=6

and catalina.out only
Ajp13Connector active threads=6
java.lang.ThreadGroup[name=Ajp13Connector[8009],maxpri=10]
Thread[Ajp13Connector[8009],5,Ajp13Connector[8009]]
Thread[Ajp13Processor[8009][0],5,Ajp13Connector[8009]]
Thread[Ajp13Processor[8009][1],5,Ajp13Connector[8009]]
Thread[Ajp13Processor[8009][2],5,Ajp13Connector[8009]]
Thread[Ajp13Processor[8009][3],5,Ajp13Connector[8009]]
Thread[Ajp13Processor[8009][4],5,Ajp13Connector[8009]]
===

What should I be seeing where in a healthy system under jk?  The reason
I jumped to the conclusion that there should be more after 'found a
worker' was because of other sample output I found searching the
archive before writing the list.  For instance, I found this apparently
complete log for one successful request (do you have these in your
log?):

[jk_uri_worker_map.c (344)]: Into
jk_uri_worker_map_t::map_uri_to_worker
[jk_uri_worker_map.c (406)]: jk_uri_worker_map_t::map_uri_to_worker,
Found a match 65245
[jk_worker.c (123)]: Into wc_get_worker_for_name 65245
[jk_worker.c (127)]: wc_get_worker_for_name, done  found a worker
[jk_ajp12_worker.c (223)]: Into jk_worker_t::get_endpoint
[jk_ajp12_worker.c (121)]: Into jk_endpoint_t::service
[jk_connect.c (108)]: Into jk_open_socket
[jk_connect.c (115)]: jk_open_socket, try to connect socket = 9
[jk_connect.c (124)]: jk_open_socket, after connect ret = 0
[jk_connect.c (132)]: jk_open_socket, set TCP_NODELAY to on
[jk_connect.c (140)]: jk_open_socket, return, sd = 9
[jk_ajp12_worker.c (134)]: In jk_endpoint_t::service, sd = 9
[jk_ajp12_worker.c (357)]: Into ajpv12_handle_request
[jk_ajp12_worker.c (361)]: ajpv12_handle_request, sending the ajp12
start sequence
[jk_ajp12_worker.c (413)]: ajpv12_handle_request, sending the headers
[jk_ajp12_worker.c (432)]: ajpv12_handle_request, sending the
terminating mark
[jk_ajp12_worker.c (472)]: ajpv12_handle_request done
[jk_ajp12_worker.c (148)]: In jk_endpoint_t::service, sent request
[jk_ajp12_worker.c (488)]: Into ajpv12_handle_response
[jk_ajp12_worker.c (502)]: ajpv12_handle_response, read Status: 200 OK
[jk_ajp12_worker.c (530)]: ajpv12_handle_response, read Status=200 OK
[jk_ajp12_worker.c (502)]: ajpv12_handle_response, read Content-Type:
text/html;charset=8859_1
[jk_ajp12_worker.c (530)]: ajpv12_handle_response, read
Content-Type=text/html;charset=8859_1
[jk_ajp12_worker.c (542)]: ajpv12_handle_response, allocating header
arrays
[jk_ajp12_worker.c (502)]: ajpv12_handle_response, read Servlet-Engine:
Tomcat Web Server/3.2 beta 2 (JSP 1.1; Servlet 2.2; Java 1.3.0; Linux
2.2.16-3smp x86; java.vendor=IBM Corporation)
[jk_ajp12_worker.c (530)]: ajpv12_handle_response, read
Servlet-Engine=Tomcat Web Server/3.2 beta 2 (JSP 1.1; Servlet 2.2; Java
1.3.0; Linux 2.2.16-3smp x86; java.vendor=IBM Corporation)
[jk_ajp12_worker.c (502)]: ajpv12_handle_response, read 
[jk_ajp12_worker.c (504)]: ajpv12_handle_response, headers are done
[jk_ajp12_worker.c (563)]: ajpv12_handle_response, starting response
[jk_ajp12_worker.c (574)]: ajpv12_handle_response, reading response
body
[jk_ajp12_worker.c (590)]: ajpv12_handle_response, response body is
done
[jk_ajp12_worker.c (602)]: ajpv12_handle_response done
[jk_ajp12_worker.c (163)]: Into jk_endpoint_t::done

Many thanks,
Geoff

--- Milt Epstein [EMAIL PROTECTED] wrote:
 On Wed, 4 Dec 2002, Geoff Howard wrote:
 
  SDK 1.4.1_01
  Tomcat 4.1.12-LE binary
  Apache 1.3.27 with ssl/eapi
  mod_jk-1.3-eapi.so (symlinked to mod_jk.so)
  obtained from
 

http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1.2.1/bin/linux/i386/
  Linux
 
  Tomcat works fine on 8080, Apache works fine on 80.  The server is
  remote (hosting facility) so I'm not using local host.  As DNS is
 not
  propagated fully, I'm using IP address as ServerName in httpd.conf,
 and
  in Engine and Host declarations in server.xml.  Accessing
  http://{ipaddress}/examples/ no response in browser (actually it
 looks
  like 404, but using telnet directly showed literally no response,
 just
  connection lost.  Below are mod_jk.log, server.xml snippets,
  workers.properties, mod_jk.conf, and httpd.conf include line.
 
  [Wed Dec 04 08:53:09 2002]  [jk_uri_worker_map.c (460)]: Into
  jk_uri_worker_map_t::map_uri_to_worker
  [Wed Dec 04 08:53:09 2002]  [jk_uri_worker_map.c (477)]: Attempting
 to
  map URI '/examples/'
  [Wed Dec 04 08:53:09 2002]  [jk_uri_worker_map.c (502)]:
  jk_uri_worker_map_t::map_uri_to_worker, Found a context mat
  ch ajp13 - /examples/
  [Wed Dec 04 08:53:09 2002]  [jk_worker.c (132)]: Into
  wc_get_worker_for_name ajp13
  [Wed Dec 04 08:53:09 2002]  [jk_worker.c (136)]:
  wc_get_worker_for_name, done  found a worker
  [Wed Dec 04 08:55:00

[solved] mod_jk stop after 'done found a worker'

2002-12-04 Thread Geoff Howard
The solution was to download the mod_jk 1.2.1 source and compile it,
following the instructions in the BUILDING doc included in the source. 
Many thanks for both of your help.

I also had to specify modJk=/usr/local/apache/libexec/mod_jk.so even
though the docs say that libexec/mod_jk.so is the default.  It turns
out that the reference is resolved relative to the tomcat directory (or
maybe tomcat/conf?).  If this is correct behaviour, perhaps that should
be spelled out more in the docs.

By the way, the log output at the bottom is more correct (with
jkDebug=debug)

Geoff
(unsubscribing now - feel free to write directly if I can help with
something)

--- Geoff Howard [EMAIL PROTECTED] wrote:
 Thanks for the reply.  
 Not much info there - localhost_log has only 
 2002-12-04 14:15:18 HostConfig[xx.xx.xx.xx]: Deploying discovered web
 applications
 around the request times.
 
 catalina_log has only 
 2002-12-04 14:16:59 Ajp13Connector[8009] active threads=6
 
 and catalina.out only
 Ajp13Connector active threads=6
 java.lang.ThreadGroup[name=Ajp13Connector[8009],maxpri=10]
 Thread[Ajp13Connector[8009],5,Ajp13Connector[8009]]
 Thread[Ajp13Processor[8009][0],5,Ajp13Connector[8009]]
 Thread[Ajp13Processor[8009][1],5,Ajp13Connector[8009]]
 Thread[Ajp13Processor[8009][2],5,Ajp13Connector[8009]]
 Thread[Ajp13Processor[8009][3],5,Ajp13Connector[8009]]
 Thread[Ajp13Processor[8009][4],5,Ajp13Connector[8009]]
 ===
 
 What should I be seeing where in a healthy system under jk?  The
 reason
 I jumped to the conclusion that there should be more after 'found a
 worker' was because of other sample output I found searching the
 archive before writing the list.  For instance, I found this
 apparently
 complete log for one successful request (do you have these in your
 log?):
 
 [jk_uri_worker_map.c (344)]: Into
 jk_uri_worker_map_t::map_uri_to_worker
 [jk_uri_worker_map.c (406)]: jk_uri_worker_map_t::map_uri_to_worker,
 Found a match 65245
 [jk_worker.c (123)]: Into wc_get_worker_for_name 65245
 [jk_worker.c (127)]: wc_get_worker_for_name, done  found a worker
 [jk_ajp12_worker.c (223)]: Into jk_worker_t::get_endpoint
 [jk_ajp12_worker.c (121)]: Into jk_endpoint_t::service
 [jk_connect.c (108)]: Into jk_open_socket
 [jk_connect.c (115)]: jk_open_socket, try to connect socket = 9
 [jk_connect.c (124)]: jk_open_socket, after connect ret = 0
 [jk_connect.c (132)]: jk_open_socket, set TCP_NODELAY to on
 [jk_connect.c (140)]: jk_open_socket, return, sd = 9
 [jk_ajp12_worker.c (134)]: In jk_endpoint_t::service, sd = 9
 [jk_ajp12_worker.c (357)]: Into ajpv12_handle_request
 [jk_ajp12_worker.c (361)]: ajpv12_handle_request, sending the ajp12
 start sequence
 [jk_ajp12_worker.c (413)]: ajpv12_handle_request, sending the headers
 [jk_ajp12_worker.c (432)]: ajpv12_handle_request, sending the
 terminating mark
 [jk_ajp12_worker.c (472)]: ajpv12_handle_request done
 [jk_ajp12_worker.c (148)]: In jk_endpoint_t::service, sent request
 [jk_ajp12_worker.c (488)]: Into ajpv12_handle_response
 [jk_ajp12_worker.c (502)]: ajpv12_handle_response, read Status: 200
 OK
 [jk_ajp12_worker.c (530)]: ajpv12_handle_response, read Status=200 OK
 [jk_ajp12_worker.c (502)]: ajpv12_handle_response, read Content-Type:
 text/html;charset=8859_1
 [jk_ajp12_worker.c (530)]: ajpv12_handle_response, read
 Content-Type=text/html;charset=8859_1
 [jk_ajp12_worker.c (542)]: ajpv12_handle_response, allocating header
 arrays
 [jk_ajp12_worker.c (502)]: ajpv12_handle_response, read
 Servlet-Engine:
 Tomcat Web Server/3.2 beta 2 (JSP 1.1; Servlet 2.2; Java 1.3.0; Linux
 2.2.16-3smp x86; java.vendor=IBM Corporation)
 [jk_ajp12_worker.c (530)]: ajpv12_handle_response, read
 Servlet-Engine=Tomcat Web Server/3.2 beta 2 (JSP 1.1; Servlet 2.2;
 Java
 1.3.0; Linux 2.2.16-3smp x86; java.vendor=IBM Corporation)
 [jk_ajp12_worker.c (502)]: ajpv12_handle_response, read 
 [jk_ajp12_worker.c (504)]: ajpv12_handle_response, headers are done
 [jk_ajp12_worker.c (563)]: ajpv12_handle_response, starting response
 [jk_ajp12_worker.c (574)]: ajpv12_handle_response, reading response
 body
 [jk_ajp12_worker.c (590)]: ajpv12_handle_response, response body is
 done
 [jk_ajp12_worker.c (602)]: ajpv12_handle_response done
 [jk_ajp12_worker.c (163)]: Into jk_endpoint_t::done
 
 Many thanks,
 Geoff
 
 --- Milt Epstein [EMAIL PROTECTED] wrote:
  On Wed, 4 Dec 2002, Geoff Howard wrote:
  
   SDK 1.4.1_01
   Tomcat 4.1.12-LE binary
   Apache 1.3.27 with ssl/eapi
   mod_jk-1.3-eapi.so (symlinked to mod_jk.so)
   obtained from
  
 

http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1.2.1/bin/linux/i386/
   Linux
  
   Tomcat works fine on 8080, Apache works fine on 80.  The server
 is
   remote (hosting facility) so I'm not using local host.  As DNS is
  not
   propagated fully, I'm using IP address as ServerName in
 httpd.conf,
  and
   in Engine and Host declarations in server.xml.  Accessing
   http://{ipaddress}/examples

RE: Tomact and Apache

2001-11-19 Thread Geoff Howard

with mod_webapp.  both the tomcat docs and the archive of this list have
plenty of information on getting this set up.  Unfortunately, you may find
that the current implementation on win2k is buggy.  If you have problems, my
advice would be to wait for later releases of mod_webapp, use tomcat
standalone if you can, or try mod_jk (or chip in to help develop
mod_webapp).  Unfortunately, you'll have to search the archive of this list
for info on using mod_jk with tomcat 4.0.  The basic route is to follow the
instructions that ship with tomcat 3.x for mod_jk use.

Geoff

-Original Message-
From: Yaron Standel [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 19, 2001 11:51 AM
To: [EMAIL PROTECTED]
Subject: Tomact and Apache


How can I use Apache 1.3 and Tomcat 4.0 on Window 2000 platform?
Thanks
   Yaron Standel


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Trouble connecting Apache 1.3 Tomcat 4 w/ mod_webApp for window NT

2001-11-16 Thread Geoff Howard

Try turning off image display in your browser preferences.  If the pages
then work, the problem is an unresolved one with mod_webpp.  You can search
the archive for nightly snapshot and you should find a link to the latest
version of the source, which may have fixed this by now, but the last time I
tried the same problem persisted.  This problem is apparently not universal,
since a coworker is using the same conf files and build of tomcat, apache,
and mod_webapp on his machine and things work smoothly.  

Geoff

-Original Message-
From: Lin, Zhongwu [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 15, 2001 10:41 PM
To: 'Tomcat Users List'
Subject: Trouble connecting Apache 1.3  Tomcat 4 w/ mod_webApp for
window NT


I can't make Apache 1.3  Tomcat 4 w/ mod_webApp to work.

This is what I do(follow install guide):

1) copy mod_webapp.so and libapr.dll to directory
apache install dir \modules   
2)edit httpd.conf like this

ServerName localhost  
LoadModule webapp_module modules/mod_webapp.so

WebAppConnection conn warp localhost:8008
WebAppDeploy examples conn /examples

3) my  tomcat 4 has server.xml like this:

 !-- Define an Apache-Connector Service --
  Service name=Tomcat-Apache

Connector className=org.apache.catalina.connector.warp.WarpConnector
 port=8008 minProcessors=5 maxProcessors=75
 enableLookups=true
 acceptCount=10 debug=0/

!-- Replace localhost with what your Apache ServerName is set to
--
Engine className=org.apache.catalina.connector.warp.WarpEngine
name=Apache defaultHost=localhost debug=0 appBase=webapps

  !-- Global logger unless overridden at lower levels --
  Logger className=org.apache.catalina.logger.FileLogger
  prefix=apache_log. suffix=.txt
  timestamp=true/

  !-- Because this Realm is here, an instance will be shared globally
--
  Realm className=org.apache.catalina.realm.MemoryRealm /

/Engine

  /Service

4) start tomcat 4 and then apache, I can see apache home on port 80 and
tomcat home on port 8080 like this
http://localhost/
http://localhost:8080
http://localhost:8080/examples

but the following 
http://localhost/examples

give me error of page not found


any idea why


any help would be greatly appreciated


John








 -Original Message-
 From: David Smith [SMTP:[EMAIL PROTECTED]]
 Sent: Thursday, November 15, 2001 4:04 PM
 To:   Tomcat Users List
 Subject:  Re: Trouble connecting Apache 1.3  Tomcat 4 w/ mod_webApp
 
 I'm guessing you changed the port for the Connector statement in the 
 Tomcat-Apache service of server.xml to 9090?  If so, that's correct.  If
 not, 
 try using 8008 instead.  
 
 The second WebAppConnection line isn't needed unless it's connecting to a 
 different machine and/or port.  The way your config is below, there should
 
 only be one with both WebAppDeploy lines referencing it.  This might be
 the 
 source of your error.
 
 Good luck and hope this helps some.
 
 --David Smith
 
 On Thursday 15 November 2001 12:09 pm, you wrote:
  FreeBSD, Tomcat 4, Apache 1.3.19
 
 
  Here's my config;
 
  Alias /myapp /usr/local/jakarta-tomcat-4.0/webapps/myapp/
  WebAppConnection tomcat4  warp  localhost:9090
  WebAppDeploy myapp  tomcat4  /myapp
  WebAppConnection conn  warp  localhost:9090
  WebAppDeploy examples  conn  /examples
 
 
  Here's the result from the apache error log;
 
  [Thu Nov 15 10:40:00 2001] [error] Cannot receive handshake WARP packet
  [Thu Nov 15 10:40:00 2001] [error] Cannot read packet
  (pr_warp_config.c:139) [Thu Nov 15 10:40:00 2001] [error] Cannot
 configure
  connection tomcat4 [Thu Nov 15 10:40:00 2001] [error] Cannot receive
  handshake WARP packet [Thu Nov 15 10:40:00 2001] [error] Cannot read
 packet
  (pr_warp_config.c:139) [Thu Nov 15 10:40:00 2001] [error] Cannot
 configure
  connection tomcat4
 
  Might this be an error with compiling?
 
 
 
 
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Sessions being shared... (TC 3.2.3)

2001-11-15 Thread Geoff Howard

I've heard of this type of thing as a classic example of non-thread-safe
code.  Is there any possibility it could be this?

Geoff 

-Original Message-
From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 15, 2001 11:43 AM
To: Tomcat Users List
Subject: AW: Sessions being shared... (TC 3.2.3)


Typically this kind of errors doesn't mean
that the users access the same session
but the jsp's/servlets you use store
information in place that is not local to
the session. (e.g.: class or instance variables)

To verify that the users have different sessions,
have a look at the session id. If they differ
it's probably an application problem.

 -Ursprüngliche Nachricht-
 Von: Paul Rubenis [mailto:[EMAIL PROTECTED]]
 Gesendet: Donnerstag, 15. November 2001 17:32
 An: Tomcat Users List
 Betreff: Sessions being shared... (TC 3.2.3)
 
 
   I have some strangeness happening when using Tomcat 
 3.2.3, Apache and
 an EJB Server.  Though it appears to be a session issue.  The
 application is using SSL via Apache.
 
   Basically people log into the application via a jsp, 
 the jsp creates a
 session for that person and stuffs information about them 
 into it.  What
 is happening is that somehow sessions are being shared 
 between people. 
 So person A logs in just fine, does some stuff.  Person B 
 then logs in,
 gets the session id for person A and therefore can see 
 everything person
 A can in the application.  Obviously this is bad.  What 
 perplexes me is
 how anyone could EVER get another persons sessionid.
 
 Here are the specs for the environment:
 
 Solaris 7
 java 1.3.1
 jakarta 3.2.3
 apache-ssl 1.3.19
 
   Thanks for any insight people might have on this.
 
 -- 
 +-- mailto:[EMAIL PROTECTED] +
 | Paul M Rubenis - System Administrator |
 | Phone: (612) 624-8337 |
 | Fax:   (612) 625-6853   
 |
 +---+
 | Any connection between your reality and mine is purely|
 | coincidental. |
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 
 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: REPOST: NEED HELP URGENT:: internet explorer nullifies session on open new window

2001-11-14 Thread Geoff Howard

I only meant to ask if you were using the default Tomcat sessions, or
perhaps some customized implementation via an app server, etc.  

I'm not entirely clear from your description exactly what is going on, but
if you have the examples context installed somewhere, try this: 

- Go to /examples/servlet/SessionExample
- note the session id you've been assigned.
- In the IE browser address line type in
javascript:void(window.open('/examples/servlet/SessionExample'));
- In the new window that opens, note that the session id is identical
- Close the new window.
- Refresh the original page.
- Note the session id remains active.

I'm a little suspicious that opening a window like this is not entirely the
same as placing the window.open directly into the page -- you may want to
try modifying the default SessionExample.java to include a window.open for
testing.

Does this represent a simplified version of the situation you have, but with
opposite behavior?  If so, then I'd be suspicious that something else in
your code is really the culprit.  If not, can you modify the above example
to clarify what is going on in the background.

Geoff


-Original Message-
From: Amit Kelkar [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 13, 2001 8:38 PM
To: Geoff Howard
Subject: RE: REPOST: NEED HELP URGENT:: internet explorer nullifies
session on open new window


I'm not quite sure I understand what you mean. I am using the default
tomcat4 settings, so I am using cookies I guess...



Amit

-Original Message-
From: Geoff Howard [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 14 November 2001 4:24 AM
To: 'Amit Kelkar'
Subject: RE: REPOST: NEED HELP URGENT:: internet explorer nullifies session
on open new window

How are you implementing your sessions?

Geoff

-Original Message-
From: Amit Kelkar [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 13, 2001 10:01 AM
To: Tomcat Users List
Subject: REPOST: NEED HELP URGENT:: internet explorer nullifies session
on open new window




-Original Message-
From: Amit Kelkar [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 13 November 2001 6:41 PM
To: Tomcat Users List
Subject: internet explorer nullifies session on open new window

The application we are coding requires a new window to be opened. This new
window may just contain a JavaScript calendar or a JSP page (dispatched by a
servlet).

We have been using Internet Explorer 5 till recently to run the application
and this has been fine. But we recently upgraded to I.E. 5.5 and 6.0. In
both of the new versions, when a new window is opened and then closed, the
session in the original window gets nullified.

For example, there are places where I need to see a calendar, so I open this
calendar in a new window, I use the calendar, then I close the calendar
window. I then press a button (in the main window) to go to another page in
my application, where all the session values are now displayed as null.
Subsequent system error statements show that the session is indeed null.

I am not sure this is a tomcat problem or a IE problem (probably a IE
problem), but was wondering if anybody has experienced anything similar and
if they have solved the problem...

Note: I am using tomcat 4.01

Thanks much in advance,


Amit Kelkar

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: REPOST: NEED HELP URGENT:: internet explorer nullifies session on open new window

2001-11-13 Thread Geoff Howard

We have recently discovered a (P3P?) default in IE 6 that affects accepting
cookies across domains.  For example, we had a frameset in foo.com that had
one frame in foomail.com that was setting a cookie in its own domain, but
was refused by IE6's default presumably because the frameset was in a
different domain.  We were able to change this behavior by editing the
preferences mentioned below which were found at ToolsInternet
OptionsPrivacy(New tab in IE6)Edit and then adding foomail.com in the list
of accepted cookies domains (which was empty).

Geoff


-Original Message-
From: Martin van den Bemt [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 13, 2001 12:04 PM
To: Tomcat Users List
Subject: RE: REPOST: NEED HELP URGENT:: internet explorer nullifies
session on open new window


Thanx for the valuable info!

Mvgr,
Martin

 -Original Message-
 From: David Hamilton [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, November 13, 2001 6:09 PM
 To: Tomcat Users List
 Subject: Re: REPOST: NEED HELP URGENT:: internet explorer nullifies
 session on open new window


 P3P = Platform for Privacy Preferences
 W3C spec for what sites do with your personal info.

 IIRC, default option for IE6 will not accept cookies (other that session
 scope ones) if a site does not have a P3P descriptor on your site.
 Obviously this can be changed, but since most IE users never get round to
 changing the default preferences...

 More info on setting your site to be P3P compliant:
 http://www.w3.org/P3P/usep3p.html

 HTH
 david

 - Original Message -
 From: Martin van den Bemt [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Tuesday, November 13, 2001 4:42 PM
 Subject: RE: REPOST: NEED HELP URGENT:: internet explorer
 nullifies session
 on open new window


  I don't know what p3p is ... Enlighten me ;))
 
 
  Mvgr,
  Martin
 
   -Original Message-
   From: David Hamilton [mailto:[EMAIL PROTECTED]]
   Sent: Tuesday, November 13, 2001 5:45 PM
   To: Tomcat Users List
   Subject: Re: REPOST: NEED HELP URGENT:: internet explorer nullifies
   session on open new window
  
  
   Would that be a P3P issue?
  
   If so, you need to define P3P policy descriptors on your site...
  
   david
  
  
   - Original Message -
   From: Martin van den Bemt [EMAIL PROTECTED]
   To: Tomcat Users List [EMAIL PROTECTED]
   Sent: Tuesday, November 13, 2001 3:54 PM
   Subject: RE: REPOST: NEED HELP URGENT:: internet explorer
   nullifies session
   on open new window
  
  
It seems that ie 6 isn't accepting cookies by default (collegue
   of mine is
also using ie 6 and had the same problem, even in 1
 window). He set a
certain option and everything was working again.  Can you
 confirm that
   that
is the default, else everyone must start using url rewriting to keep
 ie6
users happy
   
Mvgr,
Martin
   
 -Original Message-
 From: Jim Urban [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, November 13, 2001 4:21 PM
 To: Tomcat Users List
 Subject: RE: REPOST: NEED HELP URGENT:: internet explorer
 nullifies
 session on open new window


 Our application does the same thing (openning child browser
   windows and
 closing them) and we have no problems with IE 5.5.  We have not
 tried
   I.E.
 6.0 yet, so I can't comment on that.  We are running Tomcat 4.0 on
 Win
   NT
 and 2K.

 Jim

 -Original Message-
 From: Amit Kelkar [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, November 13, 2001 9:01 AM
 To: Tomcat Users List
 Subject: REPOST: NEED HELP URGENT:: internet explorer
   nullifies session
 on open new window




 -Original Message-
 From: Amit Kelkar [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, 13 November 2001 6:41 PM
 To: Tomcat Users List
 Subject: internet explorer nullifies session on open new window

 The application we are coding requires a new window to be opened.
 This
   new
 window may just contain a JavaScript calendar or a JSP page
 (dispatched by a
 servlet).

 We have been using Internet Explorer 5 till recently to run the
 application
 and this has been fine. But we recently upgraded to I.E. 5.5
   and 6.0. In
 both of the new versions, when a new window is opened and then
 closed,
   the
 session in the original window gets nullified.

 For example, there are places where I need to see a calendar, so
 I open this
 calendar in a new window, I use the calendar, then I close
   the calendar
 window. I then press a button (in the main window) to go to
 another page in
 my application, where all the session values are now
   displayed as null.
 Subsequent system error statements show that the session is
   indeed null.

 I am not sure this is a tomcat problem or a IE problem (probably a
 IE
 problem), but was wondering if anybody has 

RE: Viewing this mailing list online

2001-10-27 Thread Geoff Howard

Yes, there are lots of places -- here is one that is mentioned on mailing
lists page at the jakarta site (http://jakarta.apache.org/site/mail2.html): 

http://mikal.org/interests/java/tomcat/archive/list


You also should be able to recieve a digest version, although this post
seems to imply that you cannot.  I'll let you know what I find out.
http://mikal.org/interests/java/tomcat/archive/view?mesg=44206

Geoff
-Original Message-
From: Donie Kelly [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 26, 2001 5:56 AM
To: '[EMAIL PROTECTED]'
Subject: Viewing this mailing list online


Can we view this mailing list online rather that receive it by e-mail. It's
currently running at hundreds of messages per day (a testament to how
popular Tomcat is)

Regards
Donie



RE: Providing for persistent files in a web-app

2001-10-26 Thread Geoff Howard

I assume you're running tomcat standalone -- otherwise, wouldn't you just
put the files somewhere under the docroot of Apache/IIS, or are the files
not static?

Geoff

-Original Message-
From: Frank Lawlor [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 25, 2001 3:07 PM
To: Tomcat (E-mail)
Subject: Providing for persistent files in a web-app


I have a web app that allows users to add files to 
the app, some of which can be displayed via URL
references (many different file types).

Currently these files are in a subdirectory (New) of the
web-app.  This creates a maintenance problem
since replacing the web-app (erase webapps/MyApp.war,
erase webapps/MyApp directory, and deploy new 
MyApp.war) also destroys the New directory.

Rather that having a complicated process of saving
and restoring the New directory it seems like it 
would be better to keep it elsewhere.  However, the
contents still need to be displayable in a browser as URLs.

The best approach I could think of was to add a 
simple tomcat web-app whose only purpose is to
hold the contents of New.

Any problems with this approach?  Is there a 
better/simpler approach?

Frank Lawlor
Athens Group, Inc.
(512) 345-0600 x151
Athens Group, an employee-owned consulting firm integrating technology
strategy and software solutions.





RE: tomcat session problem

2001-10-25 Thread Geoff Howard

just out of curiosity, what browser are you using, and how are you beginning
the second browser session?

Geoff

-Original Message-
From: Rinku Randhawa [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 24, 2001 2:46 PM
To: [EMAIL PROTECTED]
Subject: tomcat session problem


Hi there,

I am using jakarta-tomcat - 3.2.3 server to run my project. I am finding
that session tracking, when more than one browser window is opened at one
time, doesn't come out to be correct. I am using its inbuilt session object
and the cookies are enabled in my browser. When more than one sessions are
running then the page presented is unpredictable.Sometimes correct page
displays and sometimes totally diferent page gets displayed. It works great
except if I have 2 browsers sessions up - then it gets confused and losses
track of which is the current session.

Are there any issues with the Tomcat server regarding session tracking?

Thanks in advance,
-Rinku




RE: tomcat session problem

2001-10-25 Thread Geoff Howard

I am pretty sure from having been through this before that Netscape and IE
differ on this issue.  The description below holds for IE, but not Netscape
which will share a session no matter how you open the 2nd window.

Geoff

-Original Message-
From: Shah, Chintan V (Chintan) [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 25, 2001 3:39 AM
To: '[EMAIL PROTECTED]'
Subject: RE: tomcat session problem


Hi Rinku,

Your application should work fine in both the browsers opened
simultaneously...only if the second browser window is not opened from the
first browser window using Ctrl+N

If you are opening the 2nd browser window from 1st one only... as said
above, then the session object will be single and both of the browsers will
be interacting(i.e. reading, writing or get/set) with the single session
object...and in that case, it will not behave properly.. 

ya, but if you have opened two browser windows separately, then there will
be two different session objects for each of them, you must be able to work
on both of them simultaneously..

I hope, this will help you.

regards,
Chintan.

-Original Message-
From: Rinku Randhawa [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 25, 2001 12:16 AM
To: [EMAIL PROTECTED]
Subject: tomcat session problem


Hi there,

I am using jakarta-tomcat - 3.2.3 server to run my project. I am finding
that session tracking, when more than one browser window is opened at one
time, doesn't come out to be correct. I am using its inbuilt session object
and the cookies are enabled in my browser. When more than one sessions are
running then the page presented is unpredictable.Sometimes correct page
displays and sometimes totally diferent page gets displayed. It works great
except if I have 2 browsers sessions up - then it gets confused and losses
track of which is the current session.

Are there any issues with the Tomcat server regarding session tracking?

Thanks in advance,
-Rinku



Warp connector hangs on images (W2K)

2001-10-24 Thread Geoff Howard

I have had a consistent problem with images being served via the warp
connector in trying to install TC4.0.  I originally tried to piggy back this
on what seemed to be the same problem in another thread -- sorry, I guess
that was poor etiquette.  I don't do these lists much and didn't see that in
the suggestions for proper posting.

Here's the short of it:after installing the binary download of 4.0.1 on
Apache 1.3.20, I first attempt the examples context on port 8080, which
works fine.  I then attempt it on :80.  The text of the page displays fine
but the images never download.  The browser displays the message
Downloading picture ... code.gif.  If I disable image display in my browser
prefs, everything screams along.  I confirm that the examples are actually
running by going to the session servlet example and see that it's tracking
me correctly, which it is.

The further confusing point is that my co-worker has no problem using the
same setup.  I also had everything working fine under TC3.2.

I've tried using the nightly snapshots (although there are enough quirks to
compiling them that I'm not convinced I got it right).

Does anyone have any suggestions?

Geoff Howard



RE: TC4 classpath when NT_Service

2001-10-22 Thread Geoff Howard

I think the point is probably that bootstrap dynamically loads the other
necessary classes at runtime, but uses the conf files to do so.  I'm pretty
sure that the startup scripts setup the classpath the way they want them,
ignoring your system classpath, except to restore it at shutdown.  Granted,
I haven't looked into this exhaustively (and am not a Tomcat guru) but I
don't think running as a service does anything differently with the
classpath.  The docs call for putting classes needed at runtime in 
webapps\{app-home}\WEB-INF\classes, and
webapps\{app-home}\WEB-INF\lib for jars

unless it needs to be shared by other apps, then in:
$CATALINA_HOME/common/classes, and 
$CATALINA_HOME/common/lib directory for jars.

Does this get at the problem?

Geoff

-Original Message-
From: Marcel Stoer [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 22, 2001 4:34 PM
To: [EMAIL PROTECTED]
Subject: Re: TC4 classpath when NT_Service



  Hi all
 
  Which classpath does TC4 use when it's started as the (default) NT
 Service?
  The one specified in catalina.bat or the one in the system env? Got a
  NoClassDef found Exception when asking for a class that is in my system
 env
  classpath from a servlet.

 None of them, actually. The classpath used is specified in the Windows
 registry.
 HKLM/SYSTEM/CurrentControlSet/Services/Apache Tomcat/Parameters/JVM Option
 Number 0

 Remy


that would then be $Catalina_Home/bin/bootstrap.jar??? As classpath?? What
about all the other classes required from the JRE?




mod_webapp for NT compiled from daily snapshot

2001-10-22 Thread Geoff Howard

Does anyone have a compiled version of mod_webapp for NT (Win2k) compiled
recently from the daily snapshots Pier has been providing?  If so, would you
mind forwarding?  I don't know if libapr.dll needs to be rebuilt along with
that, but if so I'd need that as well.

Geoff
[EMAIL PROTECTED]



RE: WebApp: Error 500 (File: pr_warp.c Line: 434) -- bugzilla crossref

2001-10-19 Thread Geoff Howard

By the way, I believe this problem is related to a bug listed at bugzilla -
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3160 which was (I believe
incorrectly) classified resolved invalid probably because the explanation is
not very clear.  I contacted the original poster of that bug and found that
he had not sucessfully corrected the problem, and Pier's response to that
bug does not seem to work considering the fact I mentioned in my first post
on this thread that my coworker used the exact same files as I did.

Pier, could you take a second look at the above bug in light of the
observations I made in my post yesterday related to this issue?  Also, could
you clarify the advice you gave to replace the warp.jar distributed with
Tomcat?  I don't understand how rebuilding mod_webapp.so can affect the
contents of a jar file, unless I am grossly misunderstanding something.

Thank you for your time,
Geoff



RE: WebApp: Error 500 (File: pr_warp.c Line: 434)

2001-10-18 Thread Geoff Howard

I have had a lot of trouble with what seems to be a similar problem and can
add the following observations, but unfortunately, no solution.  I've looked
pretty hard through this and other lists and have found nothing that works.

To clarify, the symptoms I get are: the examples context (and presumably
other) never works correctly through the warp connector -- sometimes the
examples context page hangs, sometimes it gives the 500 error mentioned.
The index page (/examples/servlets/index.html) does not even load.  The
error logs show: 

1) I've noticed that everything works fine if I for testing purposes turn
off images display in my browser options (ie5.5 and netscape 4.7).
Conclusion: images may be the issue.
2) The examples (including images) all work flawlessly going straight to
Tomcat through :8080.
3) Apache works fine for all pages that don't go through warp (doc root set
to apache/htdocs, so static files and images there are fine)
4) My co-worker had no such trouble on his machine which is nearly identical
to mine, using the same builds (tomcat 4.0 release, Apache 1.3.20) and
identical conf files, both on apache and server.xml.
5) The same co-worker gets the same results hitting my machine from his.
6) I've since tried moving up to tomcat 4.0.1 with no luck.
7) I've tried both our own compiled version of mod_webapp.so and libapr.dll
(before the win32 binaries were released) and the binaries available at the
download site. 
8) I previously had tomcat and apache cooperating nicely under tomcat 3.2,
using mod_jk.
9) I'm using Win2K professional sp2, jdk1.3, +300M ram, 400MhzPII 
10) Just for kicks, I tried renaming mod_webapp.so to mod_webapp.dll and
changed the LoadModule call to match.  No luck.
11) I've tried both manual install as well as the .exe installers available
for both Apache and Tomcat.

Can anyone either add observations of their own of this issue, or point to a
potential cure?

Geoff

-Original Message-
From: Kishor K [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 18, 2001 5:19 AM
To: Tomcat User Mailing List
Subject: WebApp: Error 500 (File: pr_warp.c Line: 434) 


hi,
 
I have installed TC4.0.1 and Apache on Win NT.
Connected them using mod_webapp and Warp.
 
Sometimes nothing comes and browser waits for the output.
But sometimes i am getting the following error.
++
WebApp: Error 500
 
 (File: pr_warp.c Line: 434) 
 
(null) 
+
 
httpd.conf
 
LoadModule webapp_module modules/mod_webapp.so
AddModule   mod_webapp.c 

 
NameVirtualHost *
   VirtualHost *
ServerName www.myserver.com
DocumentRoot D:/Program Files/Apache/htdocs
 #start for tomcat4.0.1@@@
WebAppConnection conn  warp  www.myserver.com:8008
WebAppDeploy examples  conn  /examples
   WebAppDeploy myapp  conn  /myapp   
   WebAppInfo   /webapp-info
#end for tomcat4.0.1@@@
/VirtualHost
VirtualHost *
ServerName www.yourserver.com
DocumentRoot D:/Program Files/Apache/yourdocs
/VirtualHost

server.xml
 
i hvnt added anything to the server.xml
No contexts added to the server.xml.
 
Any idea?
 
kishor
 






_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com



RE: WebApp: Error 500 (File: pr_warp.c Line: 434) updated

2001-10-18 Thread Geoff Howard

sorry, forgot to paste the error log snippet.  The error log
({CATALINA_HOME}\logs\apache_log) shows:

2001-10-11 14:22:13 WarpHost[geoffpc.didax.com]: Mapping request for Host
2001-10-11 14:22:13 StandardContext[/examples]: Mapping
contextPath='/examples' with requestURI='/examples/servlets/index.html' and
relativeURI='/servlets/index.html'
2001-10-11 14:22:13 StandardContext[/examples]: Decoded
relativeURI='/servlets/index.html'
2001-10-11 14:22:13 StandardContext[/examples]:  Mapped to servlet 'default'
with servlet path '/servlets/index.html' and path info 'null' and
update=true
2001-10-11 14:22:13 [org.apache.catalina.connector.warp.WarpConnection]
Exception on socket
java.net.SocketException: Connection aborted by peer: socket write error
at java.net.SocketOutputStream.socketWrite(Native Method)
at java.net.SocketOutputStream.write(SocketOutputStream.java:62)
at org.apache.catalina.connector.warp.WarpConnection.send(Unknown
Source)
at
org.apache.catalina.connector.warp.WarpResponse$Stream.close(Unknown Source)
at
org.apache.catalina.connector.warp.WarpResponse$Stream.finish(Unknown
Source)
at
org.apache.catalina.connector.warp.WarpResponse.finishResponse(Unknown
Source)
at
org.apache.catalina.connector.warp.WarpRequestHandler.handle(Unknown Source)
at org.apache.catalina.connector.warp.WarpConnection.run(Unknown
Source)
at java.lang.Thread.run(Thread.java:484)

-Original Message-
From: Geoff Howard 
Sent: Thursday, October 18, 2001 4:51 PM
To: '[EMAIL PROTECTED]'
Subject: RE: WebApp: Error 500 (File: pr_warp.c Line: 434) 


I have had a lot of trouble with what seems to be a similar problem and can
add the following observations, but unfortunately, no solution.  I've looked
pretty hard through this and other lists and have found nothing that works.

To clarify, the symptoms I get are: the examples context (and presumably
other) never works correctly through the warp connector -- sometimes the
examples context page hangs, sometimes it gives the 500 error mentioned.
The index page (/examples/servlets/index.html) does not even load.  The
error logs show: 

1) I've noticed that everything works fine if I for testing purposes turn
off images display in my browser options (ie5.5 and netscape 4.7).
Conclusion: images may be the issue.
2) The examples (including images) all work flawlessly going straight to
Tomcat through :8080.
3) Apache works fine for all pages that don't go through warp (doc root set
to apache/htdocs, so static files and images there are fine)
4) My co-worker had no such trouble on his machine which is nearly identical
to mine, using the same builds (tomcat 4.0 release, Apache 1.3.20) and
identical conf files, both on apache and server.xml.
5) The same co-worker gets the same results hitting my machine from his.
6) I've since tried moving up to tomcat 4.0.1 with no luck.
7) I've tried both our own compiled version of mod_webapp.so and libapr.dll
(before the win32 binaries were released) and the binaries available at the
download site. 
8) I previously had tomcat and apache cooperating nicely under tomcat 3.2,
using mod_jk.
9) I'm using Win2K professional sp2, jdk1.3, +300M ram, 400MhzPII 
10) Just for kicks, I tried renaming mod_webapp.so to mod_webapp.dll and
changed the LoadModule call to match.  No luck.
11) I've tried both manual install as well as the .exe installers available
for both Apache and Tomcat.

Can anyone either add observations of their own of this issue, or point to a
potential cure?

Geoff

-Original Message-
From: Kishor K [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 18, 2001 5:19 AM
To: Tomcat User Mailing List
Subject: WebApp: Error 500 (File: pr_warp.c Line: 434) 


hi,
 
I have installed TC4.0.1 and Apache on Win NT.
Connected them using mod_webapp and Warp.
 
Sometimes nothing comes and browser waits for the output.
But sometimes i am getting the following error.
++
WebApp: Error 500
 
 (File: pr_warp.c Line: 434) 
 
(null) 
+
 
httpd.conf
 
LoadModule webapp_module modules/mod_webapp.so
AddModule   mod_webapp.c 

 
NameVirtualHost *
   VirtualHost *
ServerName www.myserver.com
DocumentRoot D:/Program Files/Apache/htdocs
 #start for tomcat4.0.1@@@
WebAppConnection conn  warp  www.myserver.com:8008
WebAppDeploy examples  conn  /examples
   WebAppDeploy myapp  conn  /myapp   
   WebAppInfo   /webapp-info
#end for tomcat4.0.1@@@
/VirtualHost
VirtualHost *
ServerName www.yourserver.com
DocumentRoot D:/Program Files/Apache/yourdocs
/VirtualHost

server.xml
 
i hvnt added anything to the server.xml
No contexts added to the server.xml.
 
Any idea?
 
kishor
 






_
Do You Yahoo!?
Get your free @yahoo.com

clarify troubleshoot

2001-04-10 Thread Geoff Howard

I'm attempting to set up jakarta v3.2.1 on a Win2000Professional using
IIS/PWS 5.
I've followed the setup and troubleshooting procedures carefully, but do not
see anything resembling: "Check the jakarta filter you added and make sure
its status shows a green upward-pointing arrow. "
I had to use regedit to setup the filter, and am not sure I can verify that
it has been setup properly.  I don't have /examples/jsp/index.html already
installed, so have been using a simple test.jsp script:

HTML
BODY
Hello!  The time is now %= new java.util.Date() %
/BODY
/HTML

which I can get in my browser, but the % command has not been processed.

the log file in system32\LogFiles\W3SVC1 ends with:

#Software: Microsoft Internet Information Services 5.0
#Version: 1.0
#Date: 2001-04-11 02:00:16
#Fields: time c-ip cs-method cs-uri-stem sc-status
02:00:16 127.0.0.1 GET /examples/test.jsp 304

Is there anything I'm missing?

Geoff Howard