Fwd: Tomcat Session Id generation Overriding!!

2010-01-09 Thread Arnab Ghosh
Dear Friends, Tomcat is using ManagerBase generateSessionId() to generate session Id. But I want a generation mechnism where each sessionId will be unique in whole tomcat. Right now it is unique in a single context. But I want uniqueness will be among all context running under the tomcat. How

Re: When running under high load (via load generating tools), Tomcat 6.0.20 stops expiring sessions until the load subsides; causing thrashing on Garbage Collection

2010-01-09 Thread Mark Thomas
On 08/01/2010 23:07, Robin Wilson wrote: OK, I made the following changes (1 at a time) to 'server.xml', and retested: Manager className=org.apache.catalina.ha.session.DeltaManager expireSessionsOnShutdown=false processExpiresFrequency=1

Re: Fwd: Tomcat Session Id generation Overriding!!

2010-01-09 Thread Mark Thomas
On 09/01/2010 11:01, Arnab Ghosh wrote: Dear Friends, Tomcat is using ManagerBase generateSessionId() to generate session Id. But I want a generation mechnism where each sessionId will be unique in whole tomcat. Right now it is unique in a single context. But I want uniqueness will be

Re: How to deploy java app. on Tomcat's virtual domains residing outside CATALINA_HOME?

2010-01-09 Thread Mark Thomas
On 09/01/2010 06:25, Leon Kolchinsky wrote: Hello All, I've installed Apache httpd +mod_jk and tomcat with multiple virtual hosts Used primarily those 2 manuals http://www.alwayssunny.com/blog/?p=174 This one looks pretty good although I wouldn't use the ApacheConfig listener.

Re: When running under high load (via load generating tools), Tomcat 6.0.20 stops expiring sessions until the load subsides; causing thrashing on Garbage Collection

2010-01-09 Thread Rainer Jung
On 09.01.2010 12:13, Mark Thomas wrote: On 08/01/2010 23:07, Robin Wilson wrote: OK, I made the following changes (1 at a time) to 'server.xml', and retested: Manager className=org.apache.catalina.ha.session.DeltaManager expireSessionsOnShutdown=false

Re: How to deploy java app. on Tomcat's virtual domains residing outside CATALINA_HOME?

2010-01-09 Thread Leon Kolchinsky
Hello Mark, Thanks for the link - http://tomcat.apache.org/tomcat-6.0-doc/virtual-hosting-howto.html I don't think that you've read my configs well. CATALINA_HOME != httpd document root That's my case! Where did you got the info that it isn't so? appBase and docBase are also different! And

Re: How to deploy java app. on Tomcat's virtual domains residing outside CATALINA_HOME?

2010-01-09 Thread Mark Thomas
On 09/01/2010 13:42, Leon Kolchinsky wrote: Hello Mark, Thanks for the link - http://tomcat.apache.org/tomcat-6.0-doc/virtual-hosting-howto.html I don't think that you've read my configs well. CATALINA_HOME != httpd document root That's my case! I meant that CATALINA_HOME is not the same

Re: How to deploy java app. on Tomcat's virtual domains residing outside CATALINA_HOME?

2010-01-09 Thread Leon Kolchinsky
Hello again, Yes instructions for Sakai actually say expand it into CATALINA_HOME. O.K I may be wrong but http://sakai26.dyndns.org/servlets-examples/ is working. I'd like to fix my configuration and I'm opened for suggestions. What should I change in my configs (I think that I gave a full

RE: When running under high load (via load generating tools), Tomcat 6.0.20 stops expiring sessions until the load subsides; causing thrashing on Garbage Collection

2010-01-09 Thread Robin Wilson
Well, we encounter this problem in our production environment every so often. If we run at sustained load for 2 hours we hit the wall in production. Keep in mind, our production environment has 4 clustered servers, so it takes about 1/4 the amount of load per server to encounter the problem.

RE: When running under high load (via load generating tools), Tomcat 6.0.20 stops expiring sessions until the load subsides; causing thrashing on Garbage Collection

2010-01-09 Thread Robin Wilson
Thanks. I'll pursue that angle - and see if there is a way, in Tapestry to just not create the session. (If anyone has any suggestions on where I can look for an answer to that - I'm all ears...) -- Robin D. Wilson Director of Web Development KingsIsle Entertainment, Inc. CELL: 512-426-3929

Re: When running under high load (via load generating tools), Tomcat 6.0.20 stops expiring sessions until the load subsides; causing thrashing on Garbage Collection

2010-01-09 Thread Mark Thomas
On 09/01/2010 15:50, Robin Wilson wrote: Well, we encounter this problem in our production environment every so often. If we run at sustained load for 2 hours we hit the wall in production. Keep in mind, our production environment has 4 clustered servers, so it takes about 1/4 the amount of

Re: Tomcat Filter Mapping Issue

2010-01-09 Thread Pid
On 08/01/2010 23:17, Patrick Flaherty wrote: Christopher and Charles. Thanks a lot. I added a ROOT folder off my appBase and cut and pasted everything under that ROOT folder and now I am getting filter mapping hits with my ft.com ! We are not deploying correctly and this sheds all the light on

Re: Uniqueness of a sessionId

2010-01-09 Thread Pid
On 08/01/2010 20:46, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Arnab, On 1/8/2010 8:07 AM, Arnab Ghosh wrote: I have an doubt.Tomcat is using *org.apache.catalina.session.ManagerBase* to generate sessionId. Now I wants to know whether this generated key will be

Re: mod_jk: The worker pick order/scope when sticky_session=false and clusters are grouped by worker.domain

2010-01-09 Thread LiuYan 刘研
Thank you Rainer, it make me clear! And thank you for your creatation of worker.domain directive :) Rainer Jung-3 wrote: On 05.01.2010 09:44, LiuYan 刘研 wrote: I'm currently learning Tomcat clustering these days. I setup 4 Tomcat-6.0.22 instances in Windows XP: server1, server2, server3,

Re: Tomcat Filter Mapping Issue

2010-01-09 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Patrick, On 1/8/2010 6:17 PM, Patrick Flaherty wrote: Thanks a lot. I added a ROOT folder off my appBase and cut and pasted everything under that ROOT folder and now I am getting filter mapping hits with my ft.com ! We are not deploying correctly

Re: Uniqueness of a sessionId

2010-01-09 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Arnab, On 1/9/2010 1:14 AM, Arnab Ghosh wrote: How it will be I create a new manager which will extend standardmanager and then if overload the generateSessionId() method. I will mot change the session Id generation code. Instead of that I will

Re: How to deploy java app. on Tomcat's virtual domains residing outside CATALINA_HOME?

2010-01-09 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Leon, On 1/9/2010 9:38 AM, Leon Kolchinsky wrote: Yes instructions for Sakai actually say expand it into CATALINA_HOME. What are the top-level contents for the Sakai tarball? Is it a single directory? I would expect

Re: Nesting servlets with different credentials

2010-01-09 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Greg, On 1/6/2010 4:09 PM, Greg Allen wrote: I have two servlets, http://localhost:8080/s1 and http://localhost:8080/s2. Both servlets require BASIC authentication. My application will call s1, and then s1 will turn around and call s2.

Re: Tomcat Filter Mapping Issue

2010-01-09 Thread Patrick Flaherty
Chris, Although adding ROOT of my appBase fixed my Filter mapping issue, I'm guessing that I need to put every bit of my app (all classes, libs etc ) into that ROOT folder, correct ? So then if I decide to deploy another app in a virtual host say for instance : Host Name :

401 Error with Basic Auth and Tomcat

2010-01-09 Thread cgswtsu78
Hello, I'm using the below httpd configuration in order to secure a resource (/reportsvcs_ws) using basic auth. When I hit the url https://host/reportsvcs_ws without authing, I'm prompted as expected but I get a http status code of 401 when accessing the resource. I get the same status code

Re: Tomcat Filter Mapping Issue

2010-01-09 Thread Konstantin Kolinko
2010/1/10 Patrick Flaherty pflah...@rampageinc.com: Chris, Although adding ROOT of my appBase fixed my Filter mapping issue, I'm guessing that I need to put every bit of my app (all classes, libs etc ) into that ROOT folder, correct ? So then if I decide to deploy another app in a

Re: Tomcat Filter Mapping Issue

2010-01-09 Thread Patrick Flaherty
-- From: Konstantin Kolinko knst.koli...@gmail.com Sent: Saturday, January 09, 2010 7:00 PM To: Tomcat Users List users@tomcat.apache.org Subject: Re: Tomcat Filter Mapping Issue 2010/1/10 Patrick Flaherty pflah...@rampageinc.com: Chris,

Re: Uniqueness of a sessionId

2010-01-09 Thread Arnab Ghosh
Dear Friends, Actually in my app I will be having 100 - 200 separte application/context which will forward request to a separate application / context running under same tomcat. I am doing this using cross-context mechanism. By this way I can reuse the servlets/jsp instances of that context. But

RE: Tomcat Filter Mapping Issue

2010-01-09 Thread Caldarale, Charles R
From: Patrick Flaherty [mailto:pflah...@rampageinc.com] Subject: Re: Tomcat Filter Mapping Issue Meaning every host should have a ROOT app regardless of whether you are hosting ONE or MORE apps on a host ! Correct. That is what I had. I had the ROOT app off the webapps folder of a