IIS Experience Anyone?

2007-03-02 Thread Scott Danforth

Hi,

I'm still looking for anyone who has experience with the IIS plugin 
(ISAPI_redirect.dll).


So far, nobody will admit to it. :-(

(I understand. I don't want to use IIS either, but a customer is 
requiring it)


   -- Scott.




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: IIS Experience Anyone?

2007-03-02 Thread Scott Danforth
Hi! Yes, I have problems. The filter shows up correctly in IIS, and it 
executes fine up to the point where it needs to talk to Tomcat. Then 
nothing further on that page request appears in the log, and  The 
specified module could not be found is returned as the result of the 
page request.


My previous messages to the group were submitted wth the subject:  IIS 
Plugin can't find Module ??  It seems like this is just about the only 
symptom of failure that anyone reports.


Here's from my the last submission:

Because I'm getting Windows Active/X error messages in response to 
servlet requests, it appears that my problem has to do with 
environmental assumptions that are not satisfied by my version of IIS 
5.0 on Windows XP. I've read that the version of IIS included with XP is 
not the full version, so perhaps that's the problem. Who knows...


But, my reason for experimenting is that I need to use Tomcat servlets 
on Unix servers from IIS 6.0 on a Windows 2003 system to which I do not 
yet have access. And now, since I've struck out trying to experiment 
with my desktop system, I'm curious about other people's experiences.


If you've tried to use ISAPI_redirect.dll v 1.2.20 (successfully, or 
not), could you reply with a few words? For example, what Windows OS and 
IIS versions we're you using?



Jost Richstein wrote:


I admit: we are using it for several customers. To make it
short: there is no reason to be scared.

Do you have any special problems?

Scott Danforth schrieb:


Hi,

I'm still looking for anyone who has experience with the IIS plugin 
(ISAPI_redirect.dll).


So far, nobody will admit to it. :-(

(I understand. I don't want to use IIS either, but a customer is 
requiring it)


   -- Scott.




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--

Scott Danforth, Ph.D.
Director of Technology
ePath Learning, Inc.
70 Howard Street, Suite C
New London, CT 06320
Phone: (860) 444-6989 ext. 3
Fax: (215) 243-7454
email: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: IIS Experience Anyone?

2007-03-02 Thread Scott Danforth
It's XP version 2002. IIS is in Settings -- Control 
Panel/Administrative Tools


Thanks for the feeback. I guess it's a limitation of my IIS version.

-- Scott.


Nelson, Tracy M. wrote:


| From: Scott Danforth [mailto:[EMAIL PROTECTED]
| Sent: Friday, 02 March, 2007 14:16
| 
| If you've tried to use ISAPI_redirect.dll v 1.2.20 (successfully, or

| not), could you reply with a few words? For example, what Windows OS and
| IIS versions we're you using?

This was a few years ago, but I installed IIS 5 and Tomcat (4.0.3?) on
Windows 2000 and didn't have any problems.  I just followed the instructions
in the installation guide and everything just worked.  This was a full IIS 5
installation (from an MSDN subscription), I wonder if ISAPI support has been
dropped from your bundled version.  What version of XP are you running?  I'm
using XP Professional and I don't see any reference to IIS on my system.

-

 





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: mod_jk sticky session still not working

2007-02-27 Thread Scott Danforth

Hi, Rasool.

Yes,  I missed the actual Engine element that follows the comment.

   Thanks,
   -- Scott.


[EMAIL PROTECTED] wrote:


Scott

Ensure that the following line is commented out. You may have already
done this

!-- Define the top level container in our container hierarchy --
   !-- Engine name=Catalina defaultHost=localhost -- 



And uncomment


Engine name=Standalone defaultHost=localhost jvmRoute=worker1


Hope that will help.

Rasool Asal

-Original Message-
From: Scott Danforth [mailto:[EMAIL PROTECTED] 
Sent: 23 February 2007 15:04

To: Tomcat Users List
Subject: Re: mod_jk sticky session still not working

P.S. I see a mention of cluster in the documentation for jvmRoute. Do
I need to configure a cluster perhaps?

   -- Scott.


Scott Danforth wrote:

 


Mladen Turk wrote:

   


Scott Danforth wrote:

 


I'm trying to use jk1.2.20 mod_jk with Apache 1.3 for load balancing
   



 


two tomcat services and sticky sessions aren't working.
   



You don't have session affinity mark
For each instance add jvmRoute=tomcat1 or
jvmRoute=tomcat2 for a second instance. See:
http://tomcat.apache.org/tomcat-5.5-doc/config/engine.html
 



Thanks for your help. That sounds very reasonable, and I modifed the 
two server.xml Engine elements as suggested, but it appears to make no difference.
   




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



IIS Plugin Experience Anyone?

2007-02-27 Thread Scott Danforth
So far, there have been no responses to my recent requests for help with 
the IIS plugin (ISAPI_redirect.dll v 1.2.20).


Because I'm getting Windows Active/X error messages in response to 
servlet requests, it appears that my problem has to do with 
environmental assumptions that are not satisfied by my version of IIS 
5.0 on Windows XP. I've read that the version of IIS included with XP is 
not the full version, so perhaps that's the problem. Who knows...


But, my reason for experimenting is that I need to use Tomcat servlets 
on Unix servers from IIS 6.0 on a Windows 2003 system to which I do not 
yet have access. And now, since I've struck out trying to experiment 
with my desktop system, I'm curious about other people's experiences.


If you've tried to use ISAPI_redirect.dll v 1.2.20 (successfully, or 
not), could you reply with a few words? For example, what Windows OS and 
IIS versions we're you using?


   Thanks for the help,
   -- Scott.







-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



IIS Plugin won't load balance?

2007-02-26 Thread Scott Danforth
I've got jk load balancing working from Apache, but need it to work from 
IIS. I'm using the


My workers.properties and uriworkermap.properties files are the same for 
Apache and IIS.


#workers.properties
worker.list=loadbalancer
worker.tomcat1.type=ajp13
worker.tomcat1.host=192.168.1.7
worker.tomcat1.port=8009
worker.tomcat2.type=ajp13
worker.tomcat2.host=192.168.1.7
worker.tomcat2.port=9009
worker.loadbalancer.type=lb
worker.loadbalancer.balance_workers=tomcat1,tomcat2

#uriworkermap.properties
/servlets/*=loadbalancer

When I access servlets/Build from Apache everything works fine.

When I try to access servlets/Build from IIS, I get the following output 
in my browser window:  The specified module could not be found.


And the last thing in the isapi.log file is:

[Mon Feb 26 12:14:29 2007] [2036:3200] [debug] jk_uri_worker_map.c 
(602): Found a wildchar match '/servlets/*=loadbalancer'
[Mon Feb 26 12:14:29 2007] [2036:3200] [debug] jk_isapi_plugin.c (885): 
check if [/servlets/Build] is points to the web-inf directory
[Mon Feb 26 12:14:29 2007] [2036:3200] [debug] jk_isapi_plugin.c (903): 
[/servlets/Build] is a servlet url - should redirect to loadbalancer


Anybody know what The specified module could not be found. means?

The note about the web-inf directory seems a bit wierd, and I don't see 
it in the Apache mod_jk log.



-- Scott.




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: IIS Plugin can't find Module ??

2007-02-26 Thread Scott Danforth
Maybe I should walk before running. The plugin fails the same way with a 
single worker (i.e., without load balancing). My current theory is that 
maybe the problem is that I'm using the root context. It's all I can 
think of as a cause for The specified module could not be found. 


I just love error messages that refer to specified items :-\

Anybody else have any ideas?

   -- Scott.


Scott Danforth wrote:

I've got jk load balancing working from Apache, but need it to work 
from IIS. I'm using the


My workers.properties and uriworkermap.properties files are the same 
for Apache and IIS.


#workers.properties
worker.list=loadbalancer
worker.tomcat1.type=ajp13
worker.tomcat1.host=192.168.1.7
worker.tomcat1.port=8009
worker.tomcat2.type=ajp13
worker.tomcat2.host=192.168.1.7
worker.tomcat2.port=9009
worker.loadbalancer.type=lb
worker.loadbalancer.balance_workers=tomcat1,tomcat2

#uriworkermap.properties
/servlets/*=loadbalancer

When I access servlets/Build from Apache everything works fine.

When I try to access servlets/Build from IIS, I get the following 
output in my browser window:  The specified module could not be found.


And the last thing in the isapi.log file is:

[Mon Feb 26 12:14:29 2007] [2036:3200] [debug] jk_uri_worker_map.c 
(602): Found a wildchar match '/servlets/*=loadbalancer'
[Mon Feb 26 12:14:29 2007] [2036:3200] [debug] jk_isapi_plugin.c 
(885): check if [/servlets/Build] is points to the web-inf directory
[Mon Feb 26 12:14:29 2007] [2036:3200] [debug] jk_isapi_plugin.c 
(903): [/servlets/Build] is a servlet url - should redirect to 
loadbalancer


Anybody know what The specified module could not be found. means?

The note about the web-inf directory seems a bit wierd, and I don't 
see it in the Apache mod_jk log.



-- Scott.




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--

Scott Danforth, Ph.D.
Director of Technology
ePath Learning, Inc.
70 Howard Street, Suite C
New London, CT 06320
Phone: (860) 444-6989 ext. 3
Fax: (215) 243-7454
email: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: IIS Plugin can't find Module ??

2007-02-26 Thread Scott Danforth

Apparently, The specified module could not be found is a Windows Message.

Although the ISAPI_redirect dll is being loaded, it must be using 
COM/ActiveX/.NET to ask for something else that isn't available on my 
system once it decides to forward a page request to Tomcat.. What module 
would that be? Beats me. I'm using the version of IIS 5.0 that comes 
with XP.


As before, suggestions would be appreciated.

   -- Scott.

Scott Danforth wrote:

Nope. It fails the same way for HelloWordExample in the 
servlets-examples context.


Any ideas appreciated. Anybody ever seen The specified module could 
not be found  when using isaspi_redirect.dll?


   -- Scott.


[Mon Feb 26 14:10:58 2007] [2020:1756] [debug] jk_uri_worker_map.c 
(575): Attempting to map URI '/localhost/servlets-examples/' from 2 maps
[Mon Feb 26 14:10:58 2007] [2020:1756] [debug] jk_uri_worker_map.c 
(587): Attempting to map context URI 
'/servlets-examples/servlet/*=tomcat1' source 'uriworkermap'
[Mon Feb 26 14:10:58 2007] [2020:1756] [debug] jk_uri_worker_map.c 
(587): Attempting to map context URI '/servlets/*=tomcat1' source 
'uriworkermap'
[Mon Feb 26 14:10:58 2007] [2020:1756] [debug] jk_isapi_plugin.c 
(875): Default redirection of /servlets-examples/
[Mon Feb 26 14:10:58 2007] [2020:1756] [debug] jk_uri_worker_map.c 
(575): Attempting to map URI '/servlets-examples/' from 2 maps
[Mon Feb 26 14:10:58 2007] [2020:1756] [debug] jk_uri_worker_map.c 
(587): Attempting to map context URI 
'/servlets-examples/servlet/*=tomcat1' source 'uriworkermap'
[Mon Feb 26 14:10:58 2007] [2020:1756] [debug] jk_uri_worker_map.c 
(587): Attempting to map context URI '/servlets/*=tomcat1' source 
'uriworkermap'
[Mon Feb 26 14:10:58 2007] [2020:1756] [debug] jk_isapi_plugin.c 
(885): check if [/servlets-examples/] is points to the web-inf directory
[Mon Feb 26 14:10:58 2007] [2020:1756] [debug] jk_isapi_plugin.c 
(1004): [/servlets-examples/] is not a servlet url
[Mon Feb 26 14:11:28 2007] [2020:1756] [debug] jk_isapi_plugin.c 
(801): Filter started
[Mon Feb 26 14:11:28 2007] [2020:1756] [debug] jk_isapi_plugin.c 
(868): Virtual Host redirection of 
/192.168.1.50/servlets-examples/servlet/HelloWordExample
[Mon Feb 26 14:11:28 2007] [2020:1756] [debug] jk_uri_worker_map.c 
(575): Attempting to map URI 
'/192.168.1.50/servlets-examples/servlet/HelloWordExample' from 2 maps
[Mon Feb 26 14:11:28 2007] [2020:1756] [debug] jk_uri_worker_map.c 
(587): Attempting to map context URI 
'/servlets-examples/servlet/*=tomcat1' source 'uriworkermap'
[Mon Feb 26 14:11:28 2007] [2020:1756] [debug] jk_uri_worker_map.c 
(587): Attempting to map context URI '/servlets/*=tomcat1' source 
'uriworkermap'
[Mon Feb 26 14:11:28 2007] [2020:1756] [debug] jk_isapi_plugin.c 
(875): Default redirection of /servlets-examples/servlet/HelloWordExample
[Mon Feb 26 14:11:28 2007] [2020:1756] [debug] jk_uri_worker_map.c 
(575): Attempting to map URI 
'/servlets-examples/servlet/HelloWordExample' from 2 maps
[Mon Feb 26 14:11:28 2007] [2020:1756] [debug] jk_uri_worker_map.c 
(587): Attempting to map context URI 
'/servlets-examples/servlet/*=tomcat1' source 'uriworkermap'
[Mon Feb 26 14:11:28 2007] [2020:1756] [debug] jk_uri_worker_map.c 
(602): Found a wildchar match '/servlets-examples/servlet/*=tomcat1'
[Mon Feb 26 14:11:28 2007] [2020:1756] [debug] jk_isapi_plugin.c 
(885): check if [/servlets-examples/servlet/HelloWordExample] is 
points to the web-inf directory
[Mon Feb 26 14:11:28 2007] [2020:1756] [debug] jk_isapi_plugin.c 
(903): [/servlets-examples/servlet/HelloWordExample] is a servlet url 
- should redirect to tomcat1



Scott Danforth wrote:

Maybe I should walk before running. The plugin fails the same way 
with a single worker (i.e., without load balancing). My current 
theory is that maybe the problem is that I'm using the root context. 
It's all I can think of as a cause for The specified module could 
not be found.

I just love error messages that refer to specified items :-\

Anybody else have any ideas?

   -- Scott.


Scott Danforth wrote:

I've got jk load balancing working from Apache, but need it to work 
from IIS. I'm using the


My workers.properties and uriworkermap.properties files are the same 
for Apache and IIS.


#workers.properties
worker.list=loadbalancer
worker.tomcat1.type=ajp13
worker.tomcat1.host=192.168.1.7
worker.tomcat1.port=8009
worker.tomcat2.type=ajp13
worker.tomcat2.host=192.168.1.7
worker.tomcat2.port=9009
worker.loadbalancer.type=lb
worker.loadbalancer.balance_workers=tomcat1,tomcat2

#uriworkermap.properties
/servlets/*=loadbalancer

When I access servlets/Build from Apache everything works fine.

When I try to access servlets/Build from IIS, I get the following 
output in my browser window:  The specified module could not be 
found.


And the last thing in the isapi.log file is:

[Mon Feb 26 12:14:29 2007] [2036:3200] [debug] jk_uri_worker_map.c 
(602): Found a wildchar match '/servlets/*=loadbalancer'
[Mon Feb 26 12:14:29 2007] [2036:3200

mod_jk sticky session still not working

2007-02-23 Thread Scott Danforth

Mladen Turk wrote:


Scott Danforth wrote:

I'm trying to use jk1.2.20 mod_jk with Apache 1.3 for load balancing 
two tomcat services and sticky sessions aren't working.



You don't have session affinity mark
For each instance add jvmRoute=tomcat1 or
jvmRoute=tomcat2 for a second instance. See:
http://tomcat.apache.org/tomcat-5.5-doc/config/engine.html



Thanks for your help. That sounds very reasonable, and I modifed the two 
server.xml Engine elements as suggested, but it appears to make no 
difference.


Below are 3 segments from mod_jk.log.

The first segment shows the initial request coming in without a 
sessionid. The request is routed to tomcat1 with route=tomcat1.


The second segment shows the response coming back from tomcat1, with a 
new session id.


The third segment shows the second request coming in with the expected 
session id, and shows tomcat2 being selected with route=tomcat2.


You say I don't have session affinity mark. How would that show up in 
the log? Is the partial sessionid an indication of the problem?


   -- Scott.


[Fri Feb 23 09:08:53 2007] [6000:] [debug] 
map_uri_to_worker::jk_uri_worker_map.c (575): Attempting to map URI 
'/servlets/Build' from 1 maps
[Fri Feb 23 09:34:59 2007] [6266:] [debug] 
map_uri_to_worker::jk_uri_worker_map.c (587): Attempting to map context 
URI '/servlets/*=loadbalancer' source 'JkMount'
[Fri Feb 23 09:34:59 2007] [6266:] [debug] 
map_uri_to_worker::jk_uri_worker_map.c (602): Found a wildchar match 
'/servlets/*=loadbalancer'
[Fri Feb 23 09:34:59 2007] [6266:] [debug] 
wc_get_worker_for_name::jk_worker.c (114): found a worker loadbalancer
[Fri Feb 23 09:34:59 2007] [6266:] [debug] wc_maintain::jk_worker.c 
(321): Maintaining worker loadbalancer
[Fri Feb 23 09:34:59 2007] [6266:] [debug] 
wc_get_name_for_type::jk_worker.c (290): Found worker type 'lb'
[Fri Feb 23 09:34:59 2007] [6266:] [debug] init_ws_service::mod_jk.c 
(561): Service protocol=HTTP/1.1 method=GET host=(null) 
addr=192.168.1.50 name=build port=8008 auth=(null) user=(null) 
laddr=192.168.1.7 raddr=192.168.1.50
[Fri Feb 23 09:34:59 2007] [6266:] [debug] service::jk_lb_worker.c 
(840): service sticky_session=1 id='empty'
[Fri Feb 23 09:34:59 2007] [6266:] [debug] 
get_most_suitable_worker::jk_lb_worker.c (785): found best worker 
tomcat1 (tomcat1) using method 'Request'
[Fri Feb 23 09:34:59 2007] [6266:] [debug] service::jk_lb_worker.c 
(860): service worker=tomcat1 route=tomcat1


...

[Fri Feb 23 09:35:00 2007] [6266:] [debug] 
ajp_unmarshal_response::jk_ajp_common.c (603): status = 200
[Fri Feb 23 09:35:00 2007] [6266:] [debug] 
ajp_unmarshal_response::jk_ajp_common.c (610): Number of headers is = 2
[Fri Feb 23 09:35:00 2007] [6266:] [debug] 
ajp_unmarshal_response::jk_ajp_common.c (666): Header[0] [Set-Cookie] = 
[JSESSIONID=9E36E3DC58A09ED9045B25F839E37A2C; Path=/]
[Fri Feb 23 09:35:00 2007] [6266:] [debug] 
ajp_unmarshal_response::jk_ajp_common.c (666): Header[1] [Content-Type] 
= [text/html;charset=ISO-8859-1]
[Fri Feb 23 09:35:00 2007] [6266:] [debug] 
ajp_connection_tcp_get_message::jk_ajp_common.c (1029): received from 
ajp13 pos=0 len=2309 max=8192


...

[Fri Feb 23 09:35:10 2007] [6266:] [debug] 
map_uri_to_worker::jk_uri_worker_map.c (575): Attempting to map URI 
'/servlets/Build' from 1 maps
[Fri Feb 23 09:35:10 2007] [6266:] [debug] 
map_uri_to_worker::jk_uri_worker_map.c (587): Attempting to map context 
URI '/servlets/*=loadbalancer' source 'JkMount'
[Fri Feb 23 09:35:10 2007] [6266:] [debug] 
map_uri_to_worker::jk_uri_worker_map.c (602): Found a wildchar match 
'/servlets/*=loadbalancer'
[Fri Feb 23 09:35:10 2007] [6266:] [debug] 
wc_get_worker_for_name::jk_worker.c (114): found a worker loadbalancer
[Fri Feb 23 09:35:10 2007] [6266:] [debug] 
wc_get_name_for_type::jk_worker.c (290): Found worker type 'lb'
[Fri Feb 23 09:35:10 2007] [6266:] [debug] init_ws_service::mod_jk.c 
(561): Service protocol=HTTP/1.1 method=POST host=(null) 
addr=192.168.1.50 name=build port=8008 auth=(null) user=(null) 
laddr=192.168.1.7 raddr=192.168.1.50
[Fri Feb 23 09:35:10 2007] [6266:] [debug] service::jk_lb_worker.c 
(840): service sticky_session=1 id='9E36E3DC58A09ED9045B25F839E37A2C'
[Fri Feb 23 09:35:10 2007] [6266:] [debug] 
get_most_suitable_worker::jk_lb_worker.c (733): searching worker for 
partial sessionid 9E36E3DC58A09ED9045B25F839E37A2C
[Fri Feb 23 09:35:10 2007] [6266:] [debug] 
get_most_suitable_worker::jk_lb_worker.c (785): found best worker 
tomcat2 (tomcat2) using method 'Request'
[Fri Feb 23 09:35:10 2007] [6266:] [debug] service::jk_lb_worker.c 
(860): service worker=tomcat2 route=tomcat2




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: mod_jk sticky session still not working

2007-02-23 Thread Scott Danforth
P.S. I see a mention of cluster in the documentation for jvmRoute. Do 
I need to configure a cluster perhaps?


   -- Scott.


Scott Danforth wrote:


Mladen Turk wrote:


Scott Danforth wrote:

I'm trying to use jk1.2.20 mod_jk with Apache 1.3 for load balancing 
two tomcat services and sticky sessions aren't working.




You don't have session affinity mark
For each instance add jvmRoute=tomcat1 or
jvmRoute=tomcat2 for a second instance. See:
http://tomcat.apache.org/tomcat-5.5-doc/config/engine.html




Thanks for your help. That sounds very reasonable, and I modifed the 
two server.xml Engine elements as suggested, but it appears to make no 
difference.


Below are 3 segments from mod_jk.log.

The first segment shows the initial request coming in without a 
sessionid. The request is routed to tomcat1 with route=tomcat1.


The second segment shows the response coming back from tomcat1, with a 
new session id.


The third segment shows the second request coming in with the expected 
session id, and shows tomcat2 being selected with route=tomcat2.


You say I don't have session affinity mark. How would that show up in 
the log? Is the partial sessionid an indication of the problem?


   -- Scott.


[Fri Feb 23 09:08:53 2007] [6000:] [debug] 
map_uri_to_worker::jk_uri_worker_map.c (575): Attempting to map URI 
'/servlets/Build' from 1 maps
[Fri Feb 23 09:34:59 2007] [6266:] [debug] 
map_uri_to_worker::jk_uri_worker_map.c (587): Attempting to map 
context URI '/servlets/*=loadbalancer' source 'JkMount'
[Fri Feb 23 09:34:59 2007] [6266:] [debug] 
map_uri_to_worker::jk_uri_worker_map.c (602): Found a wildchar match 
'/servlets/*=loadbalancer'
[Fri Feb 23 09:34:59 2007] [6266:] [debug] 
wc_get_worker_for_name::jk_worker.c (114): found a worker loadbalancer
[Fri Feb 23 09:34:59 2007] [6266:] [debug] 
wc_maintain::jk_worker.c (321): Maintaining worker loadbalancer
[Fri Feb 23 09:34:59 2007] [6266:] [debug] 
wc_get_name_for_type::jk_worker.c (290): Found worker type 'lb'
[Fri Feb 23 09:34:59 2007] [6266:] [debug] 
init_ws_service::mod_jk.c (561): Service protocol=HTTP/1.1 method=GET 
host=(null) addr=192.168.1.50 name=build port=8008 auth=(null) 
user=(null) laddr=192.168.1.7 raddr=192.168.1.50
[Fri Feb 23 09:34:59 2007] [6266:] [debug] service::jk_lb_worker.c 
(840): service sticky_session=1 id='empty'
[Fri Feb 23 09:34:59 2007] [6266:] [debug] 
get_most_suitable_worker::jk_lb_worker.c (785): found best worker 
tomcat1 (tomcat1) using method 'Request'
[Fri Feb 23 09:34:59 2007] [6266:] [debug] service::jk_lb_worker.c 
(860): service worker=tomcat1 route=tomcat1


...

[Fri Feb 23 09:35:00 2007] [6266:] [debug] 
ajp_unmarshal_response::jk_ajp_common.c (603): status = 200
[Fri Feb 23 09:35:00 2007] [6266:] [debug] 
ajp_unmarshal_response::jk_ajp_common.c (610): Number of headers is = 2
[Fri Feb 23 09:35:00 2007] [6266:] [debug] 
ajp_unmarshal_response::jk_ajp_common.c (666): Header[0] [Set-Cookie] 
= [JSESSIONID=9E36E3DC58A09ED9045B25F839E37A2C; Path=/]
[Fri Feb 23 09:35:00 2007] [6266:] [debug] 
ajp_unmarshal_response::jk_ajp_common.c (666): Header[1] 
[Content-Type] = [text/html;charset=ISO-8859-1]
[Fri Feb 23 09:35:00 2007] [6266:] [debug] 
ajp_connection_tcp_get_message::jk_ajp_common.c (1029): received from 
ajp13 pos=0 len=2309 max=8192


...

[Fri Feb 23 09:35:10 2007] [6266:] [debug] 
map_uri_to_worker::jk_uri_worker_map.c (575): Attempting to map URI 
'/servlets/Build' from 1 maps
[Fri Feb 23 09:35:10 2007] [6266:] [debug] 
map_uri_to_worker::jk_uri_worker_map.c (587): Attempting to map 
context URI '/servlets/*=loadbalancer' source 'JkMount'
[Fri Feb 23 09:35:10 2007] [6266:] [debug] 
map_uri_to_worker::jk_uri_worker_map.c (602): Found a wildchar match 
'/servlets/*=loadbalancer'
[Fri Feb 23 09:35:10 2007] [6266:] [debug] 
wc_get_worker_for_name::jk_worker.c (114): found a worker loadbalancer
[Fri Feb 23 09:35:10 2007] [6266:] [debug] 
wc_get_name_for_type::jk_worker.c (290): Found worker type 'lb'
[Fri Feb 23 09:35:10 2007] [6266:] [debug] 
init_ws_service::mod_jk.c (561): Service protocol=HTTP/1.1 method=POST 
host=(null) addr=192.168.1.50 name=build port=8008 auth=(null) 
user=(null) laddr=192.168.1.7 raddr=192.168.1.50
[Fri Feb 23 09:35:10 2007] [6266:] [debug] service::jk_lb_worker.c 
(840): service sticky_session=1 id='9E36E3DC58A09ED9045B25F839E37A2C'
[Fri Feb 23 09:35:10 2007] [6266:] [debug] 
get_most_suitable_worker::jk_lb_worker.c (733): searching worker for 
partial sessionid 9E36E3DC58A09ED9045B25F839E37A2C
[Fri Feb 23 09:35:10 2007] [6266:] [debug] 
get_most_suitable_worker::jk_lb_worker.c (785): found best worker 
tomcat2 (tomcat2) using method 'Request'
[Fri Feb 23 09:35:10 2007] [6266:] [debug] service::jk_lb_worker.c 
(860): service worker=tomcat2 route=tomcat2




-
To start a new topic, e-mail: users@tomcat.apache.org

mod_jk sticky session now working !! My bad.

2007-02-23 Thread Scott Danforth

Aha!!!

I was confused by the XML. I was changing the Engine element that was 
previously commented out, and this, of course, is followed by another 
(the real one, which wins, and didn't have a jvmRoute).


Thanks so much! Your comments helped me find my problem.

   Thanks,
   -- Scott.


Scott Danforth wrote:


Hi Mladen,

I really appreciate your help, and am happy that you're seeing a 
problem in the log output.


I think I've got the Engine attributes specified correctly, and the 
two different jvmRoute values do show up in the mod_jk log.


Engine name=Standalone defaultHost=localhost debug=0 
jvmRoute=tomcat1 /
Engine name=Standalone defaultHost=localhost debug=0 
jvmRoute=tomcat2 /  
Maybe if I give the Engines different names? It sounds like we're 
expecting the jvmRoute to be appended to the sessionId that is 
returned in the Set-Cookie header? If so, I guess mod_jk is working as 
expected, and I'm just not getting the right sessionid created by Tomcat.


I'm not using Boss. Just Apache and Tomcat on a single Solaris machine.

   -- Scott.


Mladen Turk wrote:


Scott Danforth wrote:


Mladen Turk wrote:


Thanks for your help. That sounds very reasonable, and I modifed the 
two server.xml Engine elements as suggested, but it appears to make 
no difference.


get_most_suitable_worker::jk_lb_worker.c (733): searching worker for 
partial sessionid 9E36E3DC58A09ED9045B25F839E37A2C




You still don't have jvmRoute appended.
Check if jvmRoute (param name is case sensitive!) is
correctly set up.
Also, if you use JBoss add attribute name=UseJKtrue/attribute
see:
http://www.jboss.org/wiki/Wiki.jsp?page=UsingMod_jk1.2WithJBoss


Regards,
Mladen.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]









-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



mod_jk sticky session not working??

2007-02-22 Thread Scott Danforth
I'm trying to use jk1.2.20 mod_jk with Apache 1.3 for load balancing two 
tomcat services and sticky sessions aren't working.


My application requires authentication, and displays a login on a new 
session. When I kill one of the tomcats, the application works fine 
(i.e., the authenticated session is retained and used for each 
subsequent request). But if both workers are running, mod_jk ping-pongs 
between them (which results in new sessions being created on each request).


The thing I think is most revealing is that when I run with only one 
worker alive (so the application works), mod_jk is still trying to 
round-robin the two workers.


Here's are some excerpts from mod_jk.log that clearly show mod_jk trying 
to use both tomcat1 and tomcat2 for the same session. (is partial 
sessionid a clue??)


What's going on, and how do I fix this?

   -- Scott.


service sticky_session=1 id='B4FE8293E8E81F8071F39EDD1E594BEC'
[Thu Feb 22 19:08:13 2007] [3786:] [debug] 
get_most_suitable_worker::jk_lb_worker.c (733): searching worker for 
partial sessionid B4FE8293E8E81F8071F39EDD1E594BEC
[Thu Feb 22 19:08:13 2007] [3786:] [debug] 
get_most_suitable_worker::jk_lb_worker.c (785): found best worker 
tomcat1 (tomcat1) using method 'Request'


service sticky_session=1 id='B4FE8293E8E81F8071F39EDD1E594BEC'
[Thu Feb 22 19:08:16 2007] [3786:] [debug] 
get_most_suitable_worker::jk_lb_worker.c (733): searching worker for 
partial sessionid B4FE8293E8E81F8071F39EDD1E594BEC
[Thu Feb 22 19:08:16 2007] [3786:] [debug] 
get_most_suitable_worker::jk_lb_worker.c (785): found best worker 
tomcat2 (tomcat2) using method 'Request'


service sticky_session=1 id='B4FE8293E8E81F8071F39EDD1E594BEC'
[Thu Feb 22 19:08:16 2007] [3786:] [debug] 
get_most_suitable_worker::jk_lb_worker.c (733): searching worker for 
partial sessionid B4FE8293E8E81F8071F39EDD1E594BEC
[Thu Feb 22 19:08:16 2007] [3786:] [debug] 
get_most_suitable_worker::jk_lb_worker.c (785): found best worker 
tomcat1 (tomcat1) using method 'Request'


service sticky_session=1 id='B4FE8293E8E81F8071F39EDD1E594BEC'
[Thu Feb 22 19:10:47 2007] [3788:] [debug] 
get_most_suitable_worker::jk_lb_worker.c (733): searching worker for 
partial sessionid B4FE8293E8E81F8071F39EDD1E594BEC
[Thu Feb 22 19:10:47 2007] [3788:] [debug] 
get_most_suitable_worker::jk_lb_worker.c (785): found best worker 
tomcat2 (tomcat2) using method 'Request'
[Thu Feb 22 19:10:47 2007] [3788:] [debug] service::jk_lb_worker.c 
(860): service worker=tomcat2 route=tomcat2


service sticky_session=1 id='B4FE8293E8E81F8071F39EDD1E594BEC'
[Thu Feb 22 19:10:47 2007] [3788:] [debug] 
get_most_suitable_worker::jk_lb_worker.c (733): searching worker for 
partial sessionid B4FE8293E8E81F8071F39EDD1E594BEC
[Thu Feb 22 19:10:47 2007] [3788:] [debug] 
get_most_suitable_worker::jk_lb_worker.c (785): found best worker 
tomcat1 (tomcat1) using method 'Request'
[Thu Feb 22 19:10:47 2007] [3788:] [debug] service::jk_lb_worker.c 
(860): service worker=tomcat1 route=tomcat1


service sticky_session=1 id='B4FE8293E8E81F8071F39EDD1E594BEC'
[Thu Feb 22 19:11:57 2007] [3790:] [debug] 
get_most_suitable_worker::jk_lb_worker.c (733): searching worker for 
partial sessionid B4FE8293E8E81F8071F39EDD1E594BEC
[Thu Feb 22 19:11:57 2007] [3790:] [debug] 
get_most_suitable_worker::jk_lb_worker.c (785): found best worker 
tomcat2 (tomcat2) using method 'Request'
[Thu Feb 22 19:11:57 2007] [3790:] [debug] service::jk_lb_worker.c 
(860): service worker=tomcat2 route=tomcat2





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



soft shutdown

2007-02-13 Thread Scott Danforth
We want to convert an application currently based on JServ to Tomcat. 
Does Tomcat allow you to rotate servers using a soft shutdown that 
routes new sessions to a different container while continuing to support 
existing sessions?


   Thanks,
   -- Scott.

--

Scott Danforth, Ph.D.
Director of Technology
ePath Learning, Inc.
70 Howard Street, Suite C
New London, CT 06320
Phone: (860) 444-6989 ext. 3
Fax: (215) 243-7454
email: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



2nd Try for Advice on Tomcat Shutdown

2007-02-13 Thread Scott Danforth
Hmmm. I just joined this mailing list today, and I'm happy to see that 
there's lots of action.


But, so far, nobody has responded to my posting. Maybe I'm asking about 
something so trivial that

everybody thinks somebody else will respond...

Anyway, having said that, I'll try again. Hopefully, somebody will 
respond with a comment.


I want to convert an application that currently uses JServ (with load 
balancing) to Tomcat. In reading about Tomcat
everything looks good, but there's one aspect of our current approach 
that I don't see any support for: putting a worker
into shutdown mode without completely stopping it, and then waiting 
for all of its current sessions to be concluded.


Load balancing on JServ was based on a memory-mapped file that
stored the current state of  different JServ instances, and you could 
write to this file to change that state. One of the
useful states was called shutdown. In this state, mod_jserv would 
continue to route page requests for existing  sessions
to their corresponding Jserv instance, but no new requests would be 
routed there.


So you could put a Jserv worker into shutdown mode, and then wait for it 
to become quiescent, after which you could
kill the worker and perform maintenance on that system. This was 
sometimes called a soft shutdown.  We run a 24/7
application and use this approach to rotate through servers while 
releasing new code.


I found archived mail (from 2002) with a query along these lines that 
suggested a way of accomplishing this for Tomcat, but don't

know what the ultimate outcome of that suggestion was (if anything).

http://mail-archives.apache.org/mod_mbox/tomcat-dev/200205.mbox/[EMAIL 
PROTECTED]

I kind of expect there must be something in Tomcat like JServ's soft 
shutdown for people that want to run 24/7 while bringing

workers up and down. Can somebody tell me what the Tomcat solution is?

   Thanks in advance for any comments
   -- Scott.








-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: 2nd Try for Advice on Tomcat Shutdown

2007-02-13 Thread Scott Danforth

Thanks, Hassan,

I've seen session replication mentioned and suspected that might be the 
answer now. 


Just stopping a worker and letting its sessions go elsewhere is certainly
more elegant than waiting around for sessions to be concluded.

The only problem is that my session data isn't serializable. So it isn't 
going

anywhere in the near term.

But, again thanks. I appreciate your help. :-)

   -- Scott.


Hassan Schroeder wrote:


On 2/13/07, Scott Danforth [EMAIL PROTECTED] wrote:


Hmmm. I just joined this mailing list today,




But, so far, nobody has responded to my posting. Maybe I'm asking about
something so trivial



or maybe you're just a wee bit impatient? :-)


I kind of expect there must be something in Tomcat like JServ's soft
shutdown



Not that it' s definitive, but I've never heard of such a thing.


Can somebody tell me what the Tomcat solution is?



Yeah, don't worry, be happy; use session replication and just pull the
plug whenever. At least that's worked for me  :-)

FWIW,



--

Scott Danforth, Ph.D.
Director of Technology
ePath Learning, Inc.
70 Howard Street, Suite C
New London, CT 06320
Phone: (860) 444-6989 ext. 3
Fax: (215) 243-7454
email: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]