Re: Apache with Tomcat and session affinity problem
have you set jvmRoute in your engine element (server.xml)? this is how mod_jk does session affinity filipp Sharma, Siddharth wrote: I have IBM HttpServer 2.0 (it is an apache essentially) fronting two tomcat instances (version 5.5.16) using mod_jk over ajp13. I have configured a load balancer worker to spray load across two workers representing these two tomcat instances. And it works. The problem is I do not see a session id cookie in the response, so I am not sure if it is maintaining session affinity. I have configured the load balancer worker for session affinity with this directive in worker.properties: worker.lb_worker.sticky_session=True What am I missing? What is the exact name of the cookie that mod_jk injects? I apologize if this is not the right mailing list for connector questions and will appreciate if someone could point me to it. Thanks in advance -Sidd - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Filip Hanik - 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: Apache with Tomcat and session affinity problem
Yes I did jvmRoute is set to the worker name. still, no jsessionid cookie. -Original Message- From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] Sent: Friday, June 16, 2006 7:18 AM To: Tomcat Users List Subject: Re: Apache with Tomcat and session affinity problem have you set jvmRoute in your engine element (server.xml)? this is how mod_jk does session affinity filipp Sharma, Siddharth wrote: > I have IBM HttpServer 2.0 (it is an apache essentially) fronting two > tomcat instances (version 5.5.16) using mod_jk over ajp13. > I have configured a load balancer worker to spray load across two workers > representing these two tomcat instances. > And it works. > The problem is I do not see a session id cookie in the response, so I am not > sure if it is maintaining session affinity. > I have configured the load balancer worker for session affinity with this > directive in worker.properties: > worker.lb_worker.sticky_session=True > > What am I missing? > What is the exact name of the cookie that mod_jk injects? > > I apologize if this is not the right mailing list for connector questions > and will appreciate if someone could point me to it. > > Thanks in advance > -Sidd > > > > - > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- Filip Hanik - 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]
Re: Apache with Tomcat and session affinity problem
how do you verify that you don't have a cookie? I suggest using LiveHttpHeaders (firefox/mozilla) or TCPMonitor Filip Sharma, Siddharth wrote: Yes I did jvmRoute is set to the worker name. still, no jsessionid cookie. -Original Message- From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] Sent: Friday, June 16, 2006 7:18 AM To: Tomcat Users List Subject: Re: Apache with Tomcat and session affinity problem have you set jvmRoute in your engine element (server.xml)? this is how mod_jk does session affinity filipp Sharma, Siddharth wrote: I have IBM HttpServer 2.0 (it is an apache essentially) fronting two tomcat instances (version 5.5.16) using mod_jk over ajp13. I have configured a load balancer worker to spray load across two workers representing these two tomcat instances. And it works. The problem is I do not see a session id cookie in the response, so I am not sure if it is maintaining session affinity. I have configured the load balancer worker for session affinity with this directive in worker.properties: worker.lb_worker.sticky_session=True What am I missing? What is the exact name of the cookie that mod_jk injects? I apologize if this is not the right mailing list for connector questions and will appreciate if someone could point me to it. Thanks in advance -Sidd - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Filip Hanik - 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: Apache with Tomcat and session affinity problem
JSESSIONID is a non-persistent cookie and you can check its presence easily using a Netscape Navigator or FireFox. In Firefox go to Tools->Options, Options Popup appears. Select Privacy in the left section, to get the privacy options on the right side of the popup Expand the Node "Cookies" and click on button View Cookies. You can see the cookie JSESSIONID with its value. If you don't see the cookie, then definitely there is some issue. From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] Sent: Fri 6/16/2006 7:21 PM To: Tomcat Users List Subject: Re: Apache with Tomcat and session affinity problem how do you verify that you don't have a cookie? I suggest using LiveHttpHeaders (firefox/mozilla) or TCPMonitor Filip Sharma, Siddharth wrote: > Yes I did > jvmRoute is set to the worker name. > still, no jsessionid cookie. > > > > > > -Original Message- > From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] > Sent: Friday, June 16, 2006 7:18 AM > To: Tomcat Users List > Subject: Re: Apache with Tomcat and session affinity problem > > have you set jvmRoute in your engine element (server.xml)? > this is how mod_jk does session affinity > > filipp > > > > Sharma, Siddharth wrote: > >> I have IBM HttpServer 2.0 (it is an apache essentially) fronting two >> tomcat instances (version 5.5.16) using mod_jk over ajp13. >> I have configured a load balancer worker to spray load across two workers >> representing these two tomcat instances. >> And it works. >> The problem is I do not see a session id cookie in the response, so I am >> > not > >> sure if it is maintaining session affinity. >> I have configured the load balancer worker for session affinity with this >> directive in worker.properties: >> worker.lb_worker.sticky_session=True >> >> What am I missing? >> What is the exact name of the cookie that mod_jk injects? >> >> I apologize if this is not the right mailing list for connector questions >> and will appreciate if someone could point me to it. >> >> Thanks in advance >> -Sidd >> >> >> >> - >> To start a new topic, e-mail: users@tomcat.apache.org >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> >> > > > -- Filip Hanik - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] DISCLAIMER: --- The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately. Before opening any mail and attachments please check them for viruses and defect. ---
RE: Apache with Tomcat and session affinity problem
I have an http packet sniffer and it is reporting that there are no cookies returned by apache. Just to recap what I have done: 1. IBM HttpServer 2.0 with mod_jk on redhat linux 2. worker.properties has a load-balancer worker fronting two tomcat workers over ajp13. it's sticky session property is set to True. 3. In the server.xml, the jvMRoute attribute of Engine (in both tomcat instances) have their respective worker names (no case difference or silly spelling mistakes). There is no cookie. Is there another step that I am missing to enable session affinity? -Original Message- From: Sanjeev Kumar Bhat, Noida [mailto:[EMAIL PROTECTED] Sent: Friday, June 16, 2006 10:15 AM To: Tomcat Users List; Tomcat Users List Subject: RE: Apache with Tomcat and session affinity problem JSESSIONID is a non-persistent cookie and you can check its presence easily using a Netscape Navigator or FireFox. In Firefox go to Tools->Options, Options Popup appears. Select Privacy in the left section, to get the privacy options on the right side of the popup Expand the Node "Cookies" and click on button View Cookies. You can see the cookie JSESSIONID with its value. If you don't see the cookie, then definitely there is some issue. From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] Sent: Fri 6/16/2006 7:21 PM To: Tomcat Users List Subject: Re: Apache with Tomcat and session affinity problem how do you verify that you don't have a cookie? I suggest using LiveHttpHeaders (firefox/mozilla) or TCPMonitor Filip Sharma, Siddharth wrote: > Yes I did > jvmRoute is set to the worker name. > still, no jsessionid cookie. > > > > > > -Original Message- > From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] > Sent: Friday, June 16, 2006 7:18 AM > To: Tomcat Users List > Subject: Re: Apache with Tomcat and session affinity problem > > have you set jvmRoute in your engine element (server.xml)? > this is how mod_jk does session affinity > > filipp > > > > Sharma, Siddharth wrote: > >> I have IBM HttpServer 2.0 (it is an apache essentially) fronting two >> tomcat instances (version 5.5.16) using mod_jk over ajp13. >> I have configured a load balancer worker to spray load across two workers >> representing these two tomcat instances. >> And it works. >> The problem is I do not see a session id cookie in the response, so I am >> > not > >> sure if it is maintaining session affinity. >> I have configured the load balancer worker for session affinity with this >> directive in worker.properties: >> worker.lb_worker.sticky_session=True >> >> What am I missing? >> What is the exact name of the cookie that mod_jk injects? >> >> I apologize if this is not the right mailing list for connector questions >> and will appreciate if someone could point me to it. >> >> Thanks in advance >> -Sidd >> >> >> >> - >> To start a new topic, e-mail: users@tomcat.apache.org >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> >> > > > -- Filip Hanik - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] DISCLAIMER: --- The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately. Before opening any mail and attachments please check them for viruses and defect. --- - 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: Apache with Tomcat and session affinity problem
Ok here's a little confusion: In server.xml, there are two Engine tags, one of them is commented out by default. As can be seen I left the commented out 'standalone' engine as is and added jvmRoute to engine named 'Catalina'. Is that the problem? Should I add it to the 'standalone' engine and uncomment it and comment out the 'Catalina' engine? Or should I have both uncommented? I will try the permutations but if someone knows, it will save me some time ;) -Original Message- From: Sharma, Siddharth Sent: Friday, June 16, 2006 10:40 AM To: Tomcat Users List Subject: RE: Apache with Tomcat and session affinity problem I have an http packet sniffer and it is reporting that there are no cookies returned by apache. Just to recap what I have done: 1. IBM HttpServer 2.0 with mod_jk on redhat linux 2. worker.properties has a load-balancer worker fronting two tomcat workers over ajp13. it's sticky session property is set to True. 3. In the server.xml, the jvMRoute attribute of Engine (in both tomcat instances) have their respective worker names (no case difference or silly spelling mistakes). There is no cookie. Is there another step that I am missing to enable session affinity? -Original Message- From: Sanjeev Kumar Bhat, Noida [mailto:[EMAIL PROTECTED] Sent: Friday, June 16, 2006 10:15 AM To: Tomcat Users List; Tomcat Users List Subject: RE: Apache with Tomcat and session affinity problem JSESSIONID is a non-persistent cookie and you can check its presence easily using a Netscape Navigator or FireFox. In Firefox go to Tools->Options, Options Popup appears. Select Privacy in the left section, to get the privacy options on the right side of the popup Expand the Node "Cookies" and click on button View Cookies. You can see the cookie JSESSIONID with its value. If you don't see the cookie, then definitely there is some issue. From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] Sent: Fri 6/16/2006 7:21 PM To: Tomcat Users List Subject: Re: Apache with Tomcat and session affinity problem how do you verify that you don't have a cookie? I suggest using LiveHttpHeaders (firefox/mozilla) or TCPMonitor Filip Sharma, Siddharth wrote: > Yes I did > jvmRoute is set to the worker name. > still, no jsessionid cookie. > > > > > > -Original Message- > From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] > Sent: Friday, June 16, 2006 7:18 AM > To: Tomcat Users List > Subject: Re: Apache with Tomcat and session affinity problem > > have you set jvmRoute in your engine element (server.xml)? > this is how mod_jk does session affinity > > filipp > > > > Sharma, Siddharth wrote: > >> I have IBM HttpServer 2.0 (it is an apache essentially) fronting two >> tomcat instances (version 5.5.16) using mod_jk over ajp13. >> I have configured a load balancer worker to spray load across two workers >> representing these two tomcat instances. >> And it works. >> The problem is I do not see a session id cookie in the response, so I am >> > not > >> sure if it is maintaining session affinity. >> I have configured the load balancer worker for session affinity with this >> directive in worker.properties: >> worker.lb_worker.sticky_session=True >> >> What am I missing? >> What is the exact name of the cookie that mod_jk injects? >> >> I apologize if this is not the right mailing list for connector questions >> and will appreciate if someone could point me to it. >> >> Thanks in advance >> -Sidd >> >> >> >> - >> To start a new topic, e-mail: users@tomcat.apache.org >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> >> > > > -- Filip Hanik - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] DISCLAIMER: --- The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates. Any form of reproduction, dissemination, copyi
Re: Apache with Tomcat and session affinity problem
is your webapplication creating a session? if not, then there wont be a cookie, and mod_jk uses this cookie to determine server affinity. and if you dont have sessions, you don't need session affinity Filip Sharma, Siddharth wrote: I have an http packet sniffer and it is reporting that there are no cookies returned by apache. Just to recap what I have done: 1. IBM HttpServer 2.0 with mod_jk on redhat linux 2. worker.properties has a load-balancer worker fronting two tomcat workers over ajp13. it's sticky session property is set to True. 3. In the server.xml, the jvMRoute attribute of Engine (in both tomcat instances) have their respective worker names (no case difference or silly spelling mistakes). There is no cookie. Is there another step that I am missing to enable session affinity? -Original Message- From: Sanjeev Kumar Bhat, Noida [mailto:[EMAIL PROTECTED] Sent: Friday, June 16, 2006 10:15 AM To: Tomcat Users List; Tomcat Users List Subject: RE: Apache with Tomcat and session affinity problem JSESSIONID is a non-persistent cookie and you can check its presence easily using a Netscape Navigator or FireFox. In Firefox go to Tools->Options, Options Popup appears. Select Privacy in the left section, to get the privacy options on the right side of the popup Expand the Node "Cookies" and click on button View Cookies. You can see the cookie JSESSIONID with its value. If you don't see the cookie, then definitely there is some issue. From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] Sent: Fri 6/16/2006 7:21 PM To: Tomcat Users List Subject: Re: Apache with Tomcat and session affinity problem how do you verify that you don't have a cookie? I suggest using LiveHttpHeaders (firefox/mozilla) or TCPMonitor Filip Sharma, Siddharth wrote: Yes I did jvmRoute is set to the worker name. still, no jsessionid cookie. -Original Message- From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] Sent: Friday, June 16, 2006 7:18 AM To: Tomcat Users List Subject: Re: Apache with Tomcat and session affinity problem have you set jvmRoute in your engine element (server.xml)? this is how mod_jk does session affinity filipp Sharma, Siddharth wrote: I have IBM HttpServer 2.0 (it is an apache essentially) fronting two tomcat instances (version 5.5.16) using mod_jk over ajp13. I have configured a load balancer worker to spray load across two workers representing these two tomcat instances. And it works. The problem is I do not see a session id cookie in the response, so I am not sure if it is maintaining session affinity. I have configured the load balancer worker for session affinity with this directive in worker.properties: worker.lb_worker.sticky_session=True What am I missing? What is the exact name of the cookie that mod_jk injects? I apologize if this is not the right mailing list for connector questions and will appreciate if someone could point me to it. Thanks in advance -Sidd - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Filip Hanik - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] DISCLAIMER: --- The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately. Before opening any mail and attachments please check them for viruses and defect. --- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Filip Hanik - 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: Apache with Tomcat and session affinity problem
It is slightly more complicated that that. We are creating a session but not an HttpSession, a C++ session. The Tomcat web app essentially has a servlet that delegates to the C++ component using JNI. Should we create an HttpSession before delegating? Is that the missing link? Thanks Sidd -Original Message- From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] Sent: Friday, June 16, 2006 10:59 AM To: Tomcat Users List Subject: Re: Apache with Tomcat and session affinity problem is your webapplication creating a session? if not, then there wont be a cookie, and mod_jk uses this cookie to determine server affinity. and if you dont have sessions, you don't need session affinity Filip Sharma, Siddharth wrote: > I have an http packet sniffer and it is reporting that there are no cookies > returned by apache. > > Just to recap what I have done: > 1. IBM HttpServer 2.0 with mod_jk on redhat linux > 2. worker.properties has a load-balancer worker fronting two tomcat workers > over ajp13. it's sticky session property is set to True. > 3. In the server.xml, the jvMRoute attribute of Engine (in both tomcat > instances) have their respective worker names (no case difference or silly > spelling mistakes). > > There is no cookie. Is there another step that I am missing to enable > session affinity? > > > > > -Original Message- > From: Sanjeev Kumar Bhat, Noida [mailto:[EMAIL PROTECTED] > Sent: Friday, June 16, 2006 10:15 AM > To: Tomcat Users List; Tomcat Users List > Subject: RE: Apache with Tomcat and session affinity problem > > > JSESSIONID is a non-persistent cookie and you can check its presence easily > using a Netscape Navigator or FireFox. > In Firefox go to Tools->Options, Options Popup appears. > Select Privacy in the left section, to get the privacy options on the right > side of the popup > Expand the Node "Cookies" and click on button View Cookies. > You can see the cookie JSESSIONID with its value. > > If you don't see the cookie, then definitely there is some issue. > > > ________ > > From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] > Sent: Fri 6/16/2006 7:21 PM > To: Tomcat Users List > Subject: Re: Apache with Tomcat and session affinity problem > > > > how do you verify that you don't have a cookie? > > I suggest using LiveHttpHeaders (firefox/mozilla) or TCPMonitor > > Filip > > > Sharma, Siddharth wrote: > >> Yes I did >> jvmRoute is set to the worker name. >> still, no jsessionid cookie. >> >> >> >> >> >> -Original Message- >> From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] >> Sent: Friday, June 16, 2006 7:18 AM >> To: Tomcat Users List >> Subject: Re: Apache with Tomcat and session affinity problem >> >> have you set jvmRoute in your engine element (server.xml)? >> this is how mod_jk does session affinity >> >> filipp >> >> >> >> Sharma, Siddharth wrote: >> >> >>> I have IBM HttpServer 2.0 (it is an apache essentially) fronting two >>> tomcat instances (version 5.5.16) using mod_jk over ajp13. >>> I have configured a load balancer worker to spray load across two workers >>> representing these two tomcat instances. >>> And it works. >>> The problem is I do not see a session id cookie in the response, so I am >>> >>> >> not >> >> >>> sure if it is maintaining session affinity. >>> I have configured the load balancer worker for session affinity with this >>> directive in worker.properties: >>> worker.lb_worker.sticky_session=True >>> >>> What am I missing? >>> What is the exact name of the cookie that mod_jk injects? >>> >>> I apologize if this is not the right mailing list for connector questions >>> and will appreciate if someone could point me to it. >>> >>> Thanks in advance >>> -Sidd >>> >>> >>> >>> - >>> To start a new topic, e-mail: users@tomcat.apache.org >>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >>> >>> >>> >> >> > > > -- > > > Filip Hanik > > - > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAI
Re: Apache with Tomcat and session affinity problem
yes, JSESSIONID will only get set if you have a HttpSession, so create a HttpSession, store the Id of your C++ session in the HttpSession so that you can associate back Filip Sharma, Siddharth wrote: It is slightly more complicated that that. We are creating a session but not an HttpSession, a C++ session. The Tomcat web app essentially has a servlet that delegates to the C++ component using JNI. Should we create an HttpSession before delegating? Is that the missing link? Thanks Sidd -Original Message- From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] Sent: Friday, June 16, 2006 10:59 AM To: Tomcat Users List Subject: Re: Apache with Tomcat and session affinity problem is your webapplication creating a session? if not, then there wont be a cookie, and mod_jk uses this cookie to determine server affinity. and if you dont have sessions, you don't need session affinity Filip Sharma, Siddharth wrote: I have an http packet sniffer and it is reporting that there are no cookies returned by apache. Just to recap what I have done: 1. IBM HttpServer 2.0 with mod_jk on redhat linux 2. worker.properties has a load-balancer worker fronting two tomcat workers over ajp13. it's sticky session property is set to True. 3. In the server.xml, the jvMRoute attribute of Engine (in both tomcat instances) have their respective worker names (no case difference or silly spelling mistakes). There is no cookie. Is there another step that I am missing to enable session affinity? -Original Message- From: Sanjeev Kumar Bhat, Noida [mailto:[EMAIL PROTECTED] Sent: Friday, June 16, 2006 10:15 AM To: Tomcat Users List; Tomcat Users List Subject: RE: Apache with Tomcat and session affinity problem JSESSIONID is a non-persistent cookie and you can check its presence easily using a Netscape Navigator or FireFox. In Firefox go to Tools->Options, Options Popup appears. Select Privacy in the left section, to get the privacy options on the right side of the popup Expand the Node "Cookies" and click on button View Cookies. You can see the cookie JSESSIONID with its value. If you don't see the cookie, then definitely there is some issue. From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] Sent: Fri 6/16/2006 7:21 PM To: Tomcat Users List Subject: Re: Apache with Tomcat and session affinity problem how do you verify that you don't have a cookie? I suggest using LiveHttpHeaders (firefox/mozilla) or TCPMonitor Filip Sharma, Siddharth wrote: Yes I did jvmRoute is set to the worker name. still, no jsessionid cookie. -Original Message- From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] Sent: Friday, June 16, 2006 7:18 AM To: Tomcat Users List Subject: Re: Apache with Tomcat and session affinity problem have you set jvmRoute in your engine element (server.xml)? this is how mod_jk does session affinity filipp Sharma, Siddharth wrote: I have IBM HttpServer 2.0 (it is an apache essentially) fronting two tomcat instances (version 5.5.16) using mod_jk over ajp13. I have configured a load balancer worker to spray load across two workers representing these two tomcat instances. And it works. The problem is I do not see a session id cookie in the response, so I am not sure if it is maintaining session affinity. I have configured the load balancer worker for session affinity with this directive in worker.properties: worker.lb_worker.sticky_session=True What am I missing? What is the exact name of the cookie that mod_jk injects? I apologize if this is not the right mailing list for connector questions and will appreciate if someone could point me to it. Thanks in advance -Sidd - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Filip Hanik - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] DISCLAIMER: --- The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication o
RE: Apache with Tomcat and session affinity problem
--- Begin Message --- The names of your workers are not correct. It should be alphanumeric only. Refer to http://tomcat.apache.org/connectors-doc/config/workers.html Sanjeev From: Sharma, Siddharth [mailto:[EMAIL PROTECTED] Sent: Fri 6/16/2006 8:23 PM To: Tomcat Users List Subject: RE: Apache with Tomcat and session affinity problem Ok here's a little confusion: In server.xml, there are two Engine tags, one of them is commented out by default. As can be seen I left the commented out 'standalone' engine as is and added jvmRoute to engine named 'Catalina'. Is that the problem? Should I add it to the 'standalone' engine and uncomment it and comment out the 'Catalina' engine? Or should I have both uncommented? I will try the permutations but if someone knows, it will save me some time ;) -Original Message- From: Sharma, Siddharth Sent: Friday, June 16, 2006 10:40 AM To: Tomcat Users List Subject: RE: Apache with Tomcat and session affinity problem I have an http packet sniffer and it is reporting that there are no cookies returned by apache. Just to recap what I have done: 1. IBM HttpServer 2.0 with mod_jk on redhat linux 2. worker.properties has a load-balancer worker fronting two tomcat workers over ajp13. it's sticky session property is set to True. 3. In the server.xml, the jvMRoute attribute of Engine (in both tomcat instances) have their respective worker names (no case difference or silly spelling mistakes). There is no cookie. Is there another step that I am missing to enable session affinity? -Original Message- From: Sanjeev Kumar Bhat, Noida [mailto:[EMAIL PROTECTED] Sent: Friday, June 16, 2006 10:15 AM To: Tomcat Users List; Tomcat Users List Subject: RE: Apache with Tomcat and session affinity problem JSESSIONID is a non-persistent cookie and you can check its presence easily using a Netscape Navigator or FireFox. In Firefox go to Tools->Options, Options Popup appears. Select Privacy in the left section, to get the privacy options on the right side of the popup Expand the Node "Cookies" and click on button View Cookies. You can see the cookie JSESSIONID with its value. If you don't see the cookie, then definitely there is some issue. From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] Sent: Fri 6/16/2006 7:21 PM To: Tomcat Users List Subject: Re: Apache with Tomcat and session affinity problem how do you verify that you don't have a cookie? I suggest using LiveHttpHeaders (firefox/mozilla) or TCPMonitor Filip Sharma, Siddharth wrote: > Yes I did > jvmRoute is set to the worker name. > still, no jsessionid cookie. > > > > > > -Original Message- > From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] > Sent: Friday, June 16, 2006 7:18 AM > To: Tomcat Users List > Subject: Re: Apache with Tomcat and session affinity problem > > have you set jvmRoute in your engine element (server.xml)? > this is how mod_jk does session affinity > > filipp > > > > Sharma, Siddharth wrote: > >> I have IBM HttpServer 2.0 (it is an apache essentially) fronting two >> tomcat instances (version 5.5.16) using mod_jk over ajp13. >> I have configured a load balancer worker to spray load across two workers >> representing these two tomcat instances. >> And it works. >> The problem is I do not see a session id cookie in the response, so I am >> > not > >> sure if it is maintaining session affinity. >> I have configured the load balancer worker for session affinity with this >> directive in worker.properties: >> worker.lb_worker.sticky_session=True >> >> What am I missing? >> What is the exact name of the cookie that mod_jk injects? >> >> I apologize if this is not the right mailing list for connector questions >> and will appreciate if someone could point me to it. >> >> Thanks in advance >> -Sidd >> >> >> >> - >> To start a new topic, e-mail: users@tomcat.apache.org >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> >> > > > -- Filip Hanik - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] DISCLAIMER: --- The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. It shall
RE: Apache with Tomcat and session affinity problem
The names of your workers are not correct. It should be alphanumeric only. Refer to http://tomcat.apache.org/connectors-doc/config/workers.html Sanjeev From: Sharma, Siddharth [mailto:[EMAIL PROTECTED] Sent: Fri 6/16/2006 8:23 PM To: Tomcat Users List Subject: RE: Apache with Tomcat and session affinity problem Ok here's a little confusion: In server.xml, there are two Engine tags, one of them is commented out by default. As can be seen I left the commented out 'standalone' engine as is and added jvmRoute to engine named 'Catalina'. Is that the problem? Should I add it to the 'standalone' engine and uncomment it and comment out the 'Catalina' engine? Or should I have both uncommented? I will try the permutations but if someone knows, it will save me some time ;) -Original Message- From: Sharma, Siddharth Sent: Friday, June 16, 2006 10:40 AM To: Tomcat Users List Subject: RE: Apache with Tomcat and session affinity problem I have an http packet sniffer and it is reporting that there are no cookies returned by apache. Just to recap what I have done: 1. IBM HttpServer 2.0 with mod_jk on redhat linux 2. worker.properties has a load-balancer worker fronting two tomcat workers over ajp13. it's sticky session property is set to True. 3. In the server.xml, the jvMRoute attribute of Engine (in both tomcat instances) have their respective worker names (no case difference or silly spelling mistakes). There is no cookie. Is there another step that I am missing to enable session affinity? -Original Message- From: Sanjeev Kumar Bhat, Noida [mailto:[EMAIL PROTECTED] Sent: Friday, June 16, 2006 10:15 AM To: Tomcat Users List; Tomcat Users List Subject: RE: Apache with Tomcat and session affinity problem JSESSIONID is a non-persistent cookie and you can check its presence easily using a Netscape Navigator or FireFox. In Firefox go to Tools->Options, Options Popup appears. Select Privacy in the left section, to get the privacy options on the right side of the popup Expand the Node "Cookies" and click on button View Cookies. You can see the cookie JSESSIONID with its value. If you don't see the cookie, then definitely there is some issue. From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] Sent: Fri 6/16/2006 7:21 PM To: Tomcat Users List Subject: Re: Apache with Tomcat and session affinity problem how do you verify that you don't have a cookie? I suggest using LiveHttpHeaders (firefox/mozilla) or TCPMonitor Filip Sharma, Siddharth wrote: > Yes I did > jvmRoute is set to the worker name. > still, no jsessionid cookie. > > > > > > -Original Message- > From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] > Sent: Friday, June 16, 2006 7:18 AM > To: Tomcat Users List > Subject: Re: Apache with Tomcat and session affinity problem > > have you set jvmRoute in your engine element (server.xml)? > this is how mod_jk does session affinity > > filipp > > > > Sharma, Siddharth wrote: > >> I have IBM HttpServer 2.0 (it is an apache essentially) fronting two >> tomcat instances (version 5.5.16) using mod_jk over ajp13. >> I have configured a load balancer worker to spray load across two workers >> representing these two tomcat instances. >> And it works. >> The problem is I do not see a session id cookie in the response, so I am >> > not > >> sure if it is maintaining session affinity. >> I have configured the load balancer worker for session affinity with this >> directive in worker.properties: >> worker.lb_worker.sticky_session=True >> >> What am I missing? >> What is the exact name of the cookie that mod_jk injects? >> >> I apologize if this is not the right mailing list for connector questions >> and will appreciate if someone could point me to it. >> >> Thanks in advance >> -Sidd >> >> >> >> - >> To start a new topic, e-mail: users@tomcat.apache.org >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> >> > > > -- Filip Hanik - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] DISCLAIMER: --- The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. It shall not attach any li
RE: Apache with Tomcat and session affinity problem
My bad. Did not read documentation. Thanks -Original Message- From: Sanjeev Kumar Bhat, Noida [mailto:[EMAIL PROTECTED] Sent: Friday, June 16, 2006 12:31 PM To: Tomcat Users List Subject: RE: Apache with Tomcat and session affinity problem The names of your workers are not correct. It should be alphanumeric only. Refer to http://tomcat.apache.org/connectors-doc/config/workers.html Sanjeev From: Sharma, Siddharth [mailto:[EMAIL PROTECTED] Sent: Fri 6/16/2006 8:23 PM To: Tomcat Users List Subject: RE: Apache with Tomcat and session affinity problem Ok here's a little confusion: In server.xml, there are two Engine tags, one of them is commented out by default. As can be seen I left the commented out 'standalone' engine as is and added jvmRoute to engine named 'Catalina'. Is that the problem? Should I add it to the 'standalone' engine and uncomment it and comment out the 'Catalina' engine? Or should I have both uncommented? I will try the permutations but if someone knows, it will save me some time ;) -Original Message- From: Sharma, Siddharth Sent: Friday, June 16, 2006 10:40 AM To: Tomcat Users List Subject: RE: Apache with Tomcat and session affinity problem I have an http packet sniffer and it is reporting that there are no cookies returned by apache. Just to recap what I have done: 1. IBM HttpServer 2.0 with mod_jk on redhat linux 2. worker.properties has a load-balancer worker fronting two tomcat workers over ajp13. it's sticky session property is set to True. 3. In the server.xml, the jvMRoute attribute of Engine (in both tomcat instances) have their respective worker names (no case difference or silly spelling mistakes). There is no cookie. Is there another step that I am missing to enable session affinity? -Original Message- From: Sanjeev Kumar Bhat, Noida [mailto:[EMAIL PROTECTED] Sent: Friday, June 16, 2006 10:15 AM To: Tomcat Users List; Tomcat Users List Subject: RE: Apache with Tomcat and session affinity problem JSESSIONID is a non-persistent cookie and you can check its presence easily using a Netscape Navigator or FireFox. In Firefox go to Tools->Options, Options Popup appears. Select Privacy in the left section, to get the privacy options on the right side of the popup Expand the Node "Cookies" and click on button View Cookies. You can see the cookie JSESSIONID with its value. If you don't see the cookie, then definitely there is some issue. From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] Sent: Fri 6/16/2006 7:21 PM To: Tomcat Users List Subject: Re: Apache with Tomcat and session affinity problem how do you verify that you don't have a cookie? I suggest using LiveHttpHeaders (firefox/mozilla) or TCPMonitor Filip Sharma, Siddharth wrote: > Yes I did > jvmRoute is set to the worker name. > still, no jsessionid cookie. > > > > > > -Original Message- > From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] > Sent: Friday, June 16, 2006 7:18 AM > To: Tomcat Users List > Subject: Re: Apache with Tomcat and session affinity problem > > have you set jvmRoute in your engine element (server.xml)? > this is how mod_jk does session affinity > > filipp > > > > Sharma, Siddharth wrote: > >> I have IBM HttpServer 2.0 (it is an apache essentially) fronting two >> tomcat instances (version 5.5.16) using mod_jk over ajp13. >> I have configured a load balancer worker to spray load across two workers >> representing these two tomcat instances. >> And it works. >> The problem is I do not see a session id cookie in the response, so I am >> > not > >> sure if it is maintaining session affinity. >> I have configured the load balancer worker for session affinity with this >> directive in worker.properties: >> worker.lb_worker.sticky_session=True >> >> What am I missing? >> What is the exact name of the cookie that mod_jk injects? >> >> I apologize if this is not the right mailing list for connector questions >> and will appreciate if someone could point me to it. >> >> Thanks in advance >> -Sidd >> >> >> >> - >> To start a new topic, e-mail: users@tomcat.apache.org >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> >> > > > -- Filip Hanik - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] DISCLAIMER:
RE: Apache with Tomcat and session affinity problem
Ok, the httpsession is enabled with the code request.getSession(true); but I still do not see a jsessionid cookie, even if tomcat is hit directly. Same if hit via apache. Do I have to enable sessions in Tomcat? How do I do that? I do not want to enable session persistence. Thanks Sidd -Original Message- From: Sharma, Siddharth Sent: Friday, June 16, 2006 1:28 PM To: Tomcat Users List Subject: RE: Apache with Tomcat and session affinity problem My bad. Did not read documentation. Thanks -Original Message- From: Sanjeev Kumar Bhat, Noida [mailto:[EMAIL PROTECTED] Sent: Friday, June 16, 2006 12:31 PM To: Tomcat Users List Subject: RE: Apache with Tomcat and session affinity problem The names of your workers are not correct. It should be alphanumeric only. Refer to http://tomcat.apache.org/connectors-doc/config/workers.html Sanjeev From: Sharma, Siddharth [mailto:[EMAIL PROTECTED] Sent: Fri 6/16/2006 8:23 PM To: Tomcat Users List Subject: RE: Apache with Tomcat and session affinity problem Ok here's a little confusion: In server.xml, there are two Engine tags, one of them is commented out by default. As can be seen I left the commented out 'standalone' engine as is and added jvmRoute to engine named 'Catalina'. Is that the problem? Should I add it to the 'standalone' engine and uncomment it and comment out the 'Catalina' engine? Or should I have both uncommented? I will try the permutations but if someone knows, it will save me some time ;) -Original Message- From: Sharma, Siddharth Sent: Friday, June 16, 2006 10:40 AM To: Tomcat Users List Subject: RE: Apache with Tomcat and session affinity problem I have an http packet sniffer and it is reporting that there are no cookies returned by apache. Just to recap what I have done: 1. IBM HttpServer 2.0 with mod_jk on redhat linux 2. worker.properties has a load-balancer worker fronting two tomcat workers over ajp13. it's sticky session property is set to True. 3. In the server.xml, the jvMRoute attribute of Engine (in both tomcat instances) have their respective worker names (no case difference or silly spelling mistakes). There is no cookie. Is there another step that I am missing to enable session affinity? -Original Message- From: Sanjeev Kumar Bhat, Noida [mailto:[EMAIL PROTECTED] Sent: Friday, June 16, 2006 10:15 AM To: Tomcat Users List; Tomcat Users List Subject: RE: Apache with Tomcat and session affinity problem JSESSIONID is a non-persistent cookie and you can check its presence easily using a Netscape Navigator or FireFox. In Firefox go to Tools->Options, Options Popup appears. Select Privacy in the left section, to get the privacy options on the right side of the popup Expand the Node "Cookies" and click on button View Cookies. You can see the cookie JSESSIONID with its value. If you don't see the cookie, then definitely there is some issue. From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] Sent: Fri 6/16/2006 7:21 PM To: Tomcat Users List Subject: Re: Apache with Tomcat and session affinity problem how do you verify that you don't have a cookie? I suggest using LiveHttpHeaders (firefox/mozilla) or TCPMonitor Filip Sharma, Siddharth wrote: > Yes I did > jvmRoute is set to the worker name. > still, no jsessionid cookie. > > > > > > -Original Message- > From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] > Sent: Friday, June 16, 2006 7:18 AM > To: Tomcat Users List > Subject: Re: Apache with Tomcat and session affinity problem > > have you set jvmRoute in your engine element (server.xml)? > this is how mod_jk does session affinity > > filipp > > > > Sharma, Siddharth wrote: > >> I have IBM HttpServer 2.0 (it is an apache essentially) fronting two >> tomcat instances (version 5.5.16) using mod_jk over ajp13. >> I have configured a load balancer worker to spray load across two workers >> representing these two tomcat instances. >> And it works. >> The problem is I do not see a session id cookie in the response, so I am >> > not > >> sure if it is maintaining session affinity. >> I have configured the load balancer worker for session affinity with this >> directive in worker.properties: >> worker.lb_worker.sticky_session=True >> >> What am I missing? >> What is the exact name of the cookie that mod_jk injects? >> >> I apologize if this is not the right mailing list for connector questions >> and will appreciate if someone could point me to it. >> >> Thanks in advance >> -Sidd >> >> >> >> - >> To start a new topic,
Re: Apache with Tomcat and session affinity problem
so if you create a jsp(or servlet) that looks like <%=request.getSession(true).getId()%> and run it, you get nothing? Filip Sharma, Siddharth wrote: Ok, the httpsession is enabled with the code request.getSession(true); but I still do not see a jsessionid cookie, even if tomcat is hit directly. Same if hit via apache. Do I have to enable sessions in Tomcat? How do I do that? I do not want to enable session persistence. Thanks Sidd -Original Message- From: Sharma, Siddharth Sent: Friday, June 16, 2006 1:28 PM To: Tomcat Users List Subject: RE: Apache with Tomcat and session affinity problem My bad. Did not read documentation. Thanks -Original Message- From: Sanjeev Kumar Bhat, Noida [mailto:[EMAIL PROTECTED] Sent: Friday, June 16, 2006 12:31 PM To: Tomcat Users List Subject: RE: Apache with Tomcat and session affinity problem The names of your workers are not correct. It should be alphanumeric only. Refer to http://tomcat.apache.org/connectors-doc/config/workers.html Sanjeev From: Sharma, Siddharth [mailto:[EMAIL PROTECTED] Sent: Fri 6/16/2006 8:23 PM To: Tomcat Users List Subject: RE: Apache with Tomcat and session affinity problem Ok here's a little confusion: In server.xml, there are two Engine tags, one of them is commented out by default. As can be seen I left the commented out 'standalone' engine as is and added jvmRoute to engine named 'Catalina'. Is that the problem? Should I add it to the 'standalone' engine and uncomment it and comment out the 'Catalina' engine? Or should I have both uncommented? I will try the permutations but if someone knows, it will save me some time ;) -Original Message- From: Sharma, Siddharth Sent: Friday, June 16, 2006 10:40 AM To: Tomcat Users List Subject: RE: Apache with Tomcat and session affinity problem I have an http packet sniffer and it is reporting that there are no cookies returned by apache. Just to recap what I have done: 1. IBM HttpServer 2.0 with mod_jk on redhat linux 2. worker.properties has a load-balancer worker fronting two tomcat workers over ajp13. it's sticky session property is set to True. 3. In the server.xml, the jvMRoute attribute of Engine (in both tomcat instances) have their respective worker names (no case difference or silly spelling mistakes). There is no cookie. Is there another step that I am missing to enable session affinity? -Original Message- From: Sanjeev Kumar Bhat, Noida [mailto:[EMAIL PROTECTED] Sent: Friday, June 16, 2006 10:15 AM To: Tomcat Users List; Tomcat Users List Subject: RE: Apache with Tomcat and session affinity problem JSESSIONID is a non-persistent cookie and you can check its presence easily using a Netscape Navigator or FireFox. In Firefox go to Tools->Options, Options Popup appears. Select Privacy in the left section, to get the privacy options on the right side of the popup Expand the Node "Cookies" and click on button View Cookies. You can see the cookie JSESSIONID with its value. If you don't see the cookie, then definitely there is some issue. From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] Sent: Fri 6/16/2006 7:21 PM To: Tomcat Users List Subject: Re: Apache with Tomcat and session affinity problem how do you verify that you don't have a cookie? I suggest using LiveHttpHeaders (firefox/mozilla) or TCPMonitor Filip Sharma, Siddharth wrote: Yes I did jvmRoute is set to the worker name. still, no jsessionid cookie. -Original Message- From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] Sent: Friday, June 16, 2006 7:18 AM To: Tomcat Users List Subject: Re: Apache with Tomcat and session affinity problem have you set jvmRoute in your engine element (server.xml)? this is how mod_jk does session affinity filipp Sharma, Siddharth wrote: I have IBM HttpServer 2.0 (it is an apache essentially) fronting two tomcat instances (version 5.5.16) using mod_jk over ajp13. I have configured a load balancer worker to spray load across two workers representing these two tomcat instances. And it works. The problem is I do not see a session id cookie in the response, so I am not sure if it is maintaining session affinity. I have configured the load balancer worker for session affinity with this directive in worker.properties: worker.lb_worker.sticky_session=True What am I missing? What is the exact name of the cookie that mod_jk injects? I apologize if this is not the right mailing list for connector questions and will appreciate if someone could point me to it. Thanks in advance -Sidd - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additio
RE: Apache with Tomcat and session affinity problem
I do now. It's all working now. Thanks a bunch Sidd -Original Message- From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] Sent: Friday, June 16, 2006 2:06 PM To: Tomcat Users List Subject: Re: Apache with Tomcat and session affinity problem so if you create a jsp(or servlet) that looks like <%=request.getSession(true).getId()%> and run it, you get nothing? Filip Sharma, Siddharth wrote: > Ok, the httpsession is enabled with the code > request.getSession(true); > > but I still do not see a jsessionid cookie, even if tomcat is hit directly. > Same if hit via apache. > > Do I have to enable sessions in Tomcat? How do I do that? > I do not want to enable session persistence. > > Thanks > Sidd > > > -Original Message- > From: Sharma, Siddharth > Sent: Friday, June 16, 2006 1:28 PM > To: Tomcat Users List > Subject: RE: Apache with Tomcat and session affinity problem > > My bad. Did not read documentation. > > Thanks > > > -Original Message- > From: Sanjeev Kumar Bhat, Noida [mailto:[EMAIL PROTECTED] > Sent: Friday, June 16, 2006 12:31 PM > To: Tomcat Users List > Subject: RE: Apache with Tomcat and session affinity problem > > > > The names of your workers are not correct. It should be alphanumeric only. > Refer to http://tomcat.apache.org/connectors-doc/config/workers.html > > Sanjeev > > ________ > > From: Sharma, Siddharth [mailto:[EMAIL PROTECTED] > Sent: Fri 6/16/2006 8:23 PM > To: Tomcat Users List > Subject: RE: Apache with Tomcat and session affinity problem > > > > Ok here's a little confusion: > > In server.xml, there are two Engine tags, one of them is commented out by > default. > As can be seen I left the commented out 'standalone' engine as is and added > jvmRoute to engine named 'Catalina'. > Is that the problem? > Should I add it to the 'standalone' engine and uncomment it and comment out > the 'Catalina' engine? > Or should I have both uncommented? > > I will try the permutations but if someone knows, it will save me some time > ;) > > > > > jvmRoute="tomcat_worker_2"> > > -Original Message- > From: Sharma, Siddharth > Sent: Friday, June 16, 2006 10:40 AM > To: Tomcat Users List > Subject: RE: Apache with Tomcat and session affinity problem > > I have an http packet sniffer and it is reporting that there are no cookies > returned by apache. > > Just to recap what I have done: > 1. IBM HttpServer 2.0 with mod_jk on redhat linux > 2. worker.properties has a load-balancer worker fronting two tomcat workers > over ajp13. it's sticky session property is set to True. > 3. In the server.xml, the jvMRoute attribute of Engine (in both tomcat > instances) have their respective worker names (no case difference or silly > spelling mistakes). > > There is no cookie. Is there another step that I am missing to enable > session affinity? > > > > > -Original Message- > From: Sanjeev Kumar Bhat, Noida [mailto:[EMAIL PROTECTED] > Sent: Friday, June 16, 2006 10:15 AM > To: Tomcat Users List; Tomcat Users List > Subject: RE: Apache with Tomcat and session affinity problem > > > JSESSIONID is a non-persistent cookie and you can check its presence easily > using a Netscape Navigator or FireFox. > In Firefox go to Tools->Options, Options Popup appears. > Select Privacy in the left section, to get the privacy options on the right > side of the popup > Expand the Node "Cookies" and click on button View Cookies. > You can see the cookie JSESSIONID with its value. > > If you don't see the cookie, then definitely there is some issue. > > > > > From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] > Sent: Fri 6/16/2006 7:21 PM > To: Tomcat Users List > Subject: Re: Apache with Tomcat and session affinity problem > > > > how do you verify that you don't have a cookie? > > I suggest using LiveHttpHeaders (firefox/mozilla) or TCPMonitor > > Filip > > > Sharma, Siddharth wrote: > >> Yes I did >> jvmRoute is set to the worker name. >> still, no jsessionid cookie. >> >> >> >> >> >> -Original Message- >> From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] >> Sent: Friday, June 16, 2006 7:18 AM >> To: Tomcat Users List >> Subject: Re: Apache with Tomcat and session affinity problem >> >> have you set jvmRoute in your engine element (server.xml)? >> this is how mod_jk does session affinity >> >> filipp >