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

2010-01-08 Thread Leon Kolchinsky
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 http://www.howtoforge.com/apache2_tomcat5_mod_jk_p2 and a lot of reading through apache docs. The virt. domains working and java requests

Re: Uniqueness of a sessionId

2010-01-08 Thread Arnab Ghosh
Dear Friends, 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 add a new static set and will store all generated sessionId there. I will continue th

Re: Cross - context forwarding event!!!!!!!!!!!

2010-01-08 Thread Konstantin Kolinko
2010/1/8 Arnab Ghosh : > Dear Friends, > > Is there any way to capture event while forwarding a request from one > context to another context. Can I put a filter for that?? but it should > execute only if it is a cross-context forwarding. Is there any listener > available to capture that event?? >

Re: Tomcat Filter Mapping Issue

2010-01-08 Thread Patrick Flaherty
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 that fact. Curiously I was not able to ge

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-08 Thread Robin Wilson
OK, I made the following changes (1 at a time) to 'server.xml', and retested: No discernable difference was noted on the retest (NOTE: I have measured the sessions vs. the number of 'threads requesting pages', and I think that the sessions are actually expiring - just _much_ slower than my

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-08 Thread Robin Wilson
Thanks, I'll give that a try. Just out of curiosity, what is the downside of doing this? (Performance hit, ???) -- Robin D. Wilson Director of Web Development KingsIsle Entertainment, Inc. CELL: 512-426-3929 DESK: 512-623-5913 www.KingsIsle.com -Original Message- From: Mark Thomas [mai

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-08 Thread Mark Thomas
On 08/01/2010 21:53, Robin Wilson wrote: > Is there a setting we're missing that tells Tomcat to make session expiration > a higher priority? Session expirations are processed every Engine.backgroundProcessorDelay * Manager.processExpiresFrequency seconds which by default is 10 * 6 = 60 seconds

Re: Cross Context Session Creation-

2010-01-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Arnab, On 1/8/2010 5:34 AM, Arnab Ghosh wrote: > Can I disable the session creation in context A and C? Sure: make sure all your JSPs have session="false" in their headers, and make sure that you call request.getSession(false) and check for NULL ever

Re: about the version of HTTP protocol

2010-01-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Peter, On 1/8/2010 3:00 AM, Peter Chen wrote: > I am using Tomcat 5.5.26, and the configuration of Connector is > like this: > > It's clear that the HTTP protocol version is HTTP/1.1. The web > service provided by this Tomcat will be used all ov

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-08 Thread Robin Wilson
I am trying to get a clustered Tomcat 6.0.20 environment to operate in a high load environment. As part of the testing regime, we want to be able to run continuous high load against a QA setup - and validate that Tomcat operates continuously without a hiccup. The SETUP: 1) Apache front-end (do

Re: Incompatabilities?

2010-01-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Peter, On 1/8/2010 3:24 AM, Peter Crowther wrote: > 2010/1/8 Alexander Skwar : >> Besides the "load issue", they claim, that a different app of theirs doesn't >> work with Tomcat, but it's supposed to work with WebLogic and jBoss. Am >> I right in ass

Re: limit number of connections tomcat accepts

2010-01-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Peter, On 1/8/2010 3:02 AM, Peter Beichert wrote: > Thank you for your help. The good new is, that Tomcat really works like it > supposed to. The problem is, that the operating system holds all the > connections which did not receive an acknowledgem

Re: Tomcat Filter Mapping Issue

2010-01-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Patrick, On 1/8/2010 3:49 PM, Patrick Flaherty wrote: > If I use a host name of ft.com with a appBase of c:/FilterTest then > doesn't c:/FilterTest become my web server root for ft.com? As Chuck points out, no: C:\FilterTest\ROOT is the "server root"

Re: Max heap size

2010-01-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, On 1/8/2010 3:34 PM, Caldarale, Charles R wrote: >> From: Christopher Schultz [mailto:ch...@christopherschultz.net] >> Subject: Re: Max heap size >> >> Here's an updated script to check for maximum heap. > > Just remember that this measures th

RE: Tomcat Filter Mapping Issue

2010-01-08 Thread Caldarale, Charles R
> From: Patrick Flaherty [mailto:pflah...@rampageinc.com] > Subject: Re: Tomcat Filter Mapping Issue > > If I use a host name of ft.com with a appBase of c:/FilterTest then > doesn't c:/FilterTest become my web server root for ft.com? No. The default webapp is *always* named ROOT (case sensitive

Re: Uniqueness of a sessionId

2010-01-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tim, On 1/8/2010 8:38 AM, Tim Funk wrote: > The way things work now by default ... The session cookie is set at the > path level and is different per context. So you may have multiple > sessino id cookies set for a given server (but given the path con

Re: Tomcat Filter Mapping Issue

2010-01-08 Thread Patrick Flaherty
If I use a host name of ft.com with a appBase of c:/FilterTest then doesn't c:/FilterTest become my web server root for ft.com? Is seems to work that way for us although it may not be the correct way to deploy a web app. The proofs folder is just that a folder off the (Our c:/FilterTest) web ro

Re: Uniqueness of a sessionId

2010-01-08 Thread Christopher Schultz
-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 > unique in all context running under a tomcat s

Re: Tomcat Mail log

2010-01-08 Thread Greg Morphis
Yes we're using Java mail. Thanks for the info, have a great weekend On Fri, Jan 8, 2010 at 2:26 PM, Christopher Schultz wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Greg, > > On 1/8/2010 1:45 PM, Greg Morphis wrote: >> I've got Tomcat 5.5 and using log4j for logging purposes, how

RE: Max heap size

2010-01-08 Thread Caldarale, Charles R
> From: Christopher Schultz [mailto:ch...@christopherschultz.net] > Subject: Re: Max heap size > > Here's an updated script to check for maximum heap. Just remember that this measures the maximum heap available to an extremely simple process. For a complex execution like Tomcat or some other ap

Re: Tomcat Filter Mapping Issue

2010-01-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, On 1/8/2010 2:16 PM, Caldarale, Charles R wrote: > You appear to have placed your webapp named Proofs under the default > 's appBase, and everything works as expected. Not quite, since a webapp called "Proofs" would require a filter-mapped URL

Re: Tomcat Mail log

2010-01-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Greg, On 1/8/2010 1:45 PM, Greg Morphis wrote: > I've got Tomcat 5.5 and using log4j for logging purposes, how do I > enable logging of mail so I can see mail errors, unsent mail, etc? What do you use to send email? Tomcat does not provide email serv

Re: Max heap size

2010-01-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, Here's an updated script to check for maximum heap. I'm also including the (simple) code for the MemoryInfo class referenced in the script (the lack of this class being available was why the script failed for me earlier). Enjoy, - -chris maxhea

RE: Tomcat Filter Mapping Issue

2010-01-08 Thread Caldarale, Charles R
> From: Patrick Flaherty [mailto:pflah...@rampageinc.com] > Subject: Re: Tomcat Filter Mapping Issue > > I could not get it to work using our shipping configuration > which is appBase pointing to a folder off the c:\ drive. That's because you don't seem to understand the function of appBase: it

Tomcat Mail log

2010-01-08 Thread Greg Morphis
I've got Tomcat 5.5 and using log4j for logging purposes, how do I enable logging of mail so I can see mail errors, unsent mail, etc? Thanks - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-

Re: How to Configure Basic Auth When Using mod_jk

2010-01-08 Thread cgswtsu78
Thanks for the quick response Mark. I think we have what your discussing on the perl side (see example below). If the resource is a java resource, what should be supplied for the SetHandler or can that be left blank? SetHandler perl-script PerlResponseHandler Proofpoint::Apiservice::R

Re: How to Configure Basic Auth When Using mod_jk

2010-01-08 Thread Mark Thomas
On 08/01/2010 16:51, cgswtsu78 wrote: > > Hello, > > I'm using mod_jk to forward all apache requests to /reportsvcs_ws/* to > tomcat and I have a question regarding basic auth. I need to ensure the > user has been authorized prior to the /reportsvcs_ws/* request and I'm > unsure as the best ang

Re: Tomcat Filter Mapping Issue

2010-01-08 Thread Patrick Flaherty
Hello, Thanks for your response. I don't intend to run 2 apps (virtual hosts) on the server, just one. I have 2 setup on the same server so I could compare results from the different setups. I could not get it to work using our shipping configuration which is appBase pointing to a folder off

How to Configure Basic Auth When Using mod_jk

2010-01-08 Thread cgswtsu78
Hello, I'm using mod_jk to forward all apache requests to /reportsvcs_ws/* to tomcat and I have a question regarding basic auth. I need to ensure the user has been authorized prior to the /reportsvcs_ws/* request and I'm unsure as the best angle to take. Is there anything that can be configure

Re: Max heap size

2010-01-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, On 1/8/2010 9:37 AM, Caldarale, Charles R wrote: > Experimenting to find the largest -Xmx value for your environment > should only take a few minutes. I used this script long ago and got something like 2600 MiB as the max I could use. I just t

6.0.19 feature to not swallow input if the connection is going to be closed

2010-01-08 Thread Lock Ian IC
Hi There was a feature introduced in 6.0.19 to not swallow the inputStream if the servlet throws an exception and the connection is going to be closed. Without this, Tomcat drains the inputStream, so for example If you're uploading a large file it ties up the thread until input is drained - wh

Re: Running two tomcat servers on same system?

2010-01-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, On 1/7/2010 4:56 PM, Caldarale, Charles R wrote: >> From: John Tangney [mailto:jo...@industriallogic.com] >> Subject: Re: Running two tomcat servers on same system? >> >>> Also is it possible to share >>> shutdown ports of tomcat servers? >> >>

Re: Tomcat Filter Mapping Issue

2010-01-08 Thread Pid
On 08/01/2010 14:55, Patrick Flaherty wrote: Hello, I'm trying to get filter mapping working in Windows Tomcat 6.0.20. I can get it to work one way but not another. I have 2 virtual hosts where filter mapping on one host is working (I get a hit) and another host that does not work (no hits) He

Re: High Load examples?

2010-01-08 Thread Rainer Jung
On 07.01.2010 12:24, Alexander Skwar wrote: Right now, we're using Bea WebLogic as our application server. We'd like to change to Tomcat 6. Now the creator of the application being run on the App Server said, that Tomcat works very well under low usage / low load situations. But if there are "man

Tomcat Filter Mapping Issue

2010-01-08 Thread Patrick Flaherty
Hello, I'm trying to get filter mapping working in Windows Tomcat 6.0.20. I can get it to work one way but not another. I have 2 virtual hosts where filter mapping on one host is working (I get a hit) and another host that does not work (no hits) Here are the 2 virtual hosts as seen in Se

RE: Uniqueness of a sessionId

2010-01-08 Thread Joseph Morgan
So, can you setup a service in A to generate all session ids for all contexts? -Original Message- From: Arnab Ghosh [mailto:gh...@glenwoodsystems.com] Sent: Friday, January 08, 2010 8:15 AM To: Tomcat Users List Subject: Re: Uniqueness of a sessionId Dear Joseph, Actually I am working o

RE: Max heap size

2010-01-08 Thread Caldarale, Charles R
> From: V Jayakumar [mailto:v...@hotmail.com] > Subject: Max heap size > > OS : 32 Bit Redt Hat Enterprise Linux > $ java -version > java version "1.6.0_14" > Java(TM) SE Runtime Environment (build 1.6.0_14-b08) > Java HotSpot(TM) Client VM (build 14.0-b16, mixed mode, sharing) > apache-tomcat-5.5

Re: Uniqueness of a sessionId

2010-01-08 Thread Arnab Ghosh
Dear Joseph, Actually I am working on a cross-context application. There is one main application say A . It is a very big application . Now I want to create some more separate context which will reuse the context A. These other context will be very lightweight and will contain only one servlet and

Re: Max heap size

2010-01-08 Thread Paolo Santarsiero
Well, it depends on the jvm memory usage. I use for my system this JAVA_HOME jvm parameters in catalina.sh: -Xms64m -Xmx512m -XX:MaxPermSize=200m It is not certain that this configuration is good for your system. I set 200Mb for max permgen size because the objects in permgen on average occupy 120

Re: Uniqueness of a sessionId

2010-01-08 Thread Tim Funk
The way things work now by default ... The session cookie is set at the path level and is different per context. So you may have multiple sessino id cookies set for a given server (but given the path constraint on the cookie - you only get one of those cookies (typically)) But (IIRC) you can a

RE: Uniqueness of a sessionId

2010-01-08 Thread Joseph Morgan
Arnab, I've been silently following your thread (mainly because I'm not even remotely as smart as the folks out here), but it seems you have an issue of architecture, and not of Tomcat capabilities. I'm still not sure what you are doing, but it seems you want to be able to pass (and cache as a se

RE: Running two tomcat servers on same system?

2010-01-08 Thread Joseph Morgan
Ok then, Dean, why the two entirely different app servers instead of just two different applications in the same server? You stated two primary goals: 1) Separate public/private apps and 2) Not have them interfere with one another. A 10 hit a month app isn't going to interfere with anything unle

Uniqueness of a sessionId

2010-01-08 Thread Arnab Ghosh
Dear Friends, 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 unique in all context running under a tomcat service or it will be unique under a particular context?? Thanks, Ghosh

Re: How to change effective user id on Windows

2010-01-08 Thread Jim Ma
勹 发自我的 iPod 在 Jan 7, 2010,22:42,"Looijmans, Mike" 写到: The current configuration is correct in terms of security - the 'SYSTEM' user is a limited account that has no access to the desktop nor shared network resources. Be warned that running a service under other credentials than the syste

Re: Cross Context Session Creation-

2010-01-08 Thread Arnab Ghosh
> In that case - suppose a session with a *D52869941C38BC234** > > CD9A940429C403A > > * Id is already present in context B (forwarded from context C ). Now a > new > > request with same jsessionID came to context A . Then context A forwarded > > the request to context B .then will it override the

Re: Cross Context Session Creation-

2010-01-08 Thread Mark Thomas
On 08/01/2010 09:44, Arnab Ghosh wrote: > Dear Friends, > > In that case - suppose a session with a *D52869941C38BC234**CD9A940429C403A > * Id is already present in context B (forwarded from context C ). Now a new > request with same jsessionID came to context A . Then context A forwarded > the r

Re: Cross Context Session Creation-

2010-01-08 Thread Arnab Ghosh
Dear Friends, In that case - suppose a session with a *D52869941C38BC234**CD9A940429C403A * Id is already present in context B (forwarded from context C ). Now a new request with same jsessionID came to context A . Then context A forwarded the request to context B .then will it override the exist

Max heap size

2010-01-08 Thread V Jayakumar
Hello OS : 32 Bit Redt Hat Enterprise Linux $ java -version java version "1.6.0_14" Java(TM) SE Runtime Environment (build 1.6.0_14-b08) Java HotSpot(TM) Client VM (build 14.0-b16, mixed mode, sharing) apache-tomcat-5.5.20 Server has 4 GB of RAM. What is the maximum value that

Cross - context forwarding event!!!!!!!!!!!

2010-01-08 Thread Arnab Ghosh
Dear Friends, Is there any way to capture event while forwarding a request from one context to another context. Can I put a filter for that?? but it should execute only if it is a cross-context forwarding. Is there any listener available to capture that event?? I am looking for a request listener

Re: Cross Context Session Creation-

2010-01-08 Thread Mark Thomas
On 08/01/2010 07:18, Arnab Ghosh wrote: > I found that session created in A and B are different and invisible to each > other. But the session ID is same. I want to know is there any chance of > overriding existing session in context B?? Is it a mere coincidence or is > there any logic behind this

RE: about the version of HTTP protocol

2010-01-08 Thread Looijmans, Mike
> I want to know does this Tomcat support HTTP/1.0 or HTTP/0.9 > protocol. > Pleas help me make sure of it. > I think the version of used HTTP protocol is > determined by browser, is it right? Tomcat still supports the older protocols. The browser determines the version. Browsers have

Re: Incompatabilities?

2010-01-08 Thread Peter Crowther
2010/1/8 Alexander Skwar : > Besides the "load issue", they claim, that a different app of theirs doesn't > work with Tomcat, but it's supposed to work with WebLogic and jBoss. Am > I right in assuming, that this is most probably caused by bugs in their app, > which (somehow only) get triggered by

Re: How to change effective user id on Windows

2010-01-08 Thread Peter Crowther
2010/1/8 Amit Agarwal : > HOw do we start TOmcat programatically using Bootstrap.start() API if we > need to pass the user ? You don't do it that way ;-). By the time you start the Java virtual machine (JVM) that runs Tomcat, that JVM must *already* be running as the user you want to use for Tomc

Re: limit number of connections tomcat accepts

2010-01-08 Thread Peter Beichert
Thank you for your help. The good new is, that Tomcat really works like it supposed to. The problem is, that the operating system holds all the connections which did not receive an acknowledgement from the server. When monitoring the tcp-connections during the tests with netstat, I could see, t

about the version of HTTP protocol

2010-01-08 Thread Peter Chen
Hi, all I am using Tomcat 5.5.26, and the configuration of Connector is like this: It's clear that the HTTP protocol version is HTTP/1.1. The web service provided by this Tomcat will be used all over the world. So, maybe someone will use HTTP/1.0 or HTTP/0.9