Re: url prefixes behind proxy

2011-01-06 Thread Gabor Pinter
Dear Christopher, Thank you for your reply. >> Tomcat is version 6.0 > > 6.0.what? We're just dying to know. Sorry, it's 6.0.29 . (Though at my level, the third digit may be of minor importance :) > http://localhost:8080/tom ->path/to/tomcat/webapps/tom >> http://localhost:80/tom/

Re: Accessing context information remotely - Context.getAvailable() etc.

2011-01-06 Thread Pid
On 1/6/11 7:33 PM, Ziggy wrote: > I have gone through all the mbeans by using Jconsole but i cant find the one > i need that tells me that the application is active and running. You want Catalina:type=WebModule or Catalina:type=Manager depending on what your requirements are. I'm pretty sure I've

RE: Simple Question about reading http transmission using mod_jk

2011-01-06 Thread Caldarale, Charles R
> From: Mohit Anchlia [mailto:mohitanch...@gmail.com] > Subject: Simple Question about reading http transmission using mod_jk > does it just sends the handle to the stream and then tomcat > reads from it. It's little confusing. Think about it: the connection between httpd and Tomcat is a comm l

Re: Accessing context information remotely - Context.getAvailable() etc.

2011-01-06 Thread Mark Eggers
- Original Message (edited) From: André Warnier To: Tomcat Users List Sent: Thu, January 6, 2011 12:43:32 PM Subject: Re: Accessing context information remotely - Context.getAvailable() etc. You may also want to have a look at http://code.google.com/p/jmxsh/ - Original Message (edi

Simple Question about reading http transmission using mod_jk

2011-01-06 Thread Mohit Anchlia
We are using mod_jk. My question is when apache receives a request with http payload does it first read the entire payload and then transfers it to tomcat or does it just sends the handle to the stream and then tomcat reads from it. It's little confusing. --

Re: Accessing context information remotely - Context.getAvailable() etc.

2011-01-06 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ziggy, On 1/6/2011 2:33 PM, Ziggy wrote: > I am writing an external java application that reads this values > periodically. This will be launched from a unix cron job. Its just a simple > tools that periodically checks that the application is availabl

[OT] facepalm (was: Re: Trouble configuring the manager :()

2011-01-06 Thread Markus Schönhaber
06.01.2011 22:12, Christopher Schultz: > Is there an emoticon for smacking yourself in the forehead? There doesn't seem to be a "standard" one, though googling for "facepalm smiley" or "facepalm emoticon" lists quite a few. Nevertheless, I *really* like that non-emoticon one http://www.thefacepal

RE: How to disable chunked encoding for the Http11NioProtocol connector.

2011-01-06 Thread ilya goberman
Got it, thanks > Date: Thu, 6 Jan 2011 16:34:40 -0500 > From: ch...@christopherschultz.net > To: users@tomcat.apache.org > Subject: Re: How to disable chunked encoding for the Http11NioProtocol > connector. > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Ilya, > > On 1/6/2011 4:17 PM,

Re: How to disable chunked encoding for the Http11NioProtocol connector.

2011-01-06 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ilya, On 1/6/2011 4:17 PM, ilya goberman wrote: > OK. All I wanted to say is that disabling keepAlive across the board > is not necessary. Nobody is suggesting that. > If keepAlive can be applies to a single response > (and to be honest I am not sur

Re: url prefixes behind proxy

2011-01-06 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Gabor, On 1/6/2011 2:38 PM, gabor wrote: > Tomcat is version 6.0, but it is highly experimental under my hands ;-) 6.0.what? We're just dying to know. >> You have configured* the proxy to expect Tomcat to have either tom.war >> or a directory deploy

RE: How to disable chunked encoding for the Http11NioProtocol connector.

2011-01-06 Thread ilya goberman
OK. All I wanted to say is that disabling keepAlive across the board is not necessary. If keepAlive can be applies to a single response (and to be honest I am not sure it is possible), it is fine. I was under impressing that the only way to disable keep alive is globally via: maxKeepAliveReque

Re: Trouble configuring the manager :(

2011-01-06 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, On 1/6/2011 4:02 PM, Caldarale, Charles R wrote: >> From: Christopher Schultz [mailto:ch...@christopherschultz.net] >> Subject: Trouble configuring the manager :( > >> SEVERE: Cannot find message associated with key jaasRealm.unexpectedError

Re: How to disable chunked encoding for the Http11NioProtocol connector.

2011-01-06 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ilya, On 1/6/2011 12:27 PM, ilya goberman wrote: > I think what was suggested before is to control this behavior by > setting "keepAlive" setting. I would not think this is the right > way. Er, what's the difference between using "keepAlive setting"

RE: Trouble configuring the manager :(

2011-01-06 Thread Caldarale, Charles R
> From: Christopher Schultz [mailto:ch...@christopherschultz.net] > Subject: Trouble configuring the manager :( > SEVERE: Cannot find message associated with key jaasRealm.unexpectedError Note the unexpected realm name. > What am I missing, here? A declaration, probably. You likely want it u

Re: url prefixes behind proxy

2011-01-06 Thread Gabor Pinter
Andre, Thank you for your detailed description! It cleared up a lot. Just let me ask one more question. A simple proxy_pass results in the following mapping (correct?) http://hostname:8080/tom/app | proxy_pass to | 127.0.0.1:8080/tom/app | (tomcat_dir)/webapps/tom/app Is there a wa

Trouble configuring the manager :(

2011-01-06 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, This is my first time trying to configure the manager webapp. Tomcat 6.0.29 on Linux Java(TM) SE Runtime Environment (build 1.6.0_22-b04) Java HotSpot(TM) Server VM (build 17.1-b03, mixed mode) I'm using CATALINA_BASE to run Tomcat from a diffe

Re: Accessing context information remotely - Context.getAvailable() etc.

2011-01-06 Thread André Warnier
Mark Eggers wrote: A quick google turns up at least two command line JMX clients: http://www.cyclopsgroup.org/projects/jmxterm/ http://www.jmanage.org/ You may also want to have a look at http://code.google.com/p/jmxsh/ - T

Re: Accessing context information remotely - Context.getAvailable() etc.

2011-01-06 Thread Ziggy
Please see my previous response re: open source tools. :) As i mentioned earlier, the project that i need to deploy this tool will not allow any open source tool without it being approved which involves a long security vetting process. I appreciate that there are hundreds of tools out there that

Re: Accessing context information remotely - Context.getAvailable() etc.

2011-01-06 Thread Mark Eggers
- Original Message (edited) From: Ziggy To: Tomcat Users List Sent: Thu, January 6, 2011 11:33:07 AM Subject: Re: Accessing context information remotely - Context.getAvailable() etc. Thanks for the response. I am writing an external java application that reads this values periodically.

Re: url prefixes behind proxy

2011-01-06 Thread gabor
On 1/6/2011 8:14 PM, Pid wrote: On 1/6/11 11:02 AM, Gabor Pinter wrote: Dear list, I have a very trivial problem. My setup: CentOS 5.5 nginx 0.8.53 Tomcat6 You're using the unreleased, but highly experimental and potentially dangerous version 6.3.7!? ;) First, thank you for your reply. Tom

Re: Accessing context information remotely - Context.getAvailable() etc.

2011-01-06 Thread Ziggy
Thanks for the response. I am writing an external java application that reads this values periodically. This will be launched from a unix cron job. Its just a simple tools that periodically checks that the application is available. I have gone through all the mbeans by using Jconsole but i cant fi

Re: Accessing context information remotely - Context.getAvailable() etc.

2011-01-06 Thread Mark Eggers
- Original Message (edited) From: Ziggy To: Tomcat Users List Sent: Thu, January 6, 2011 10:48:32 AM Subject: Re: Accessing context information remotely - Context.getAvailable() etc. Hi, Thanks for your response. I am aware of the activeSessions attribute under "Catalina:type=Manager,

Re: Accessing context information remotely - Context.getAvailable() etc.

2011-01-06 Thread Pid
On 1/6/11 6:48 PM, Ziggy wrote: > Hi, > > Thanks for your response. I am aware of the activeSessions attribute under > "Catalina:type=Manager,path=/testapp,host=localhost". I am actually doing > this programmatically and would like to know of an Mbean that would tell me > if the application is ava

Re: Accessing context information remotely - Context.getAvailable() etc.

2011-01-06 Thread Mark Eggers
- Original Message (edited) From: Ziggy To: Tomcat Users List Sent: Thu, January 6, 2011 10:07:51 AM Subject: Accessing context information remotely - Context.getAvailable() etc. I was looking at the code for the Tomcat Manager application to try and find out how it is determining wheth

Re: Accessing context information remotely - Context.getAvailable() etc.

2011-01-06 Thread Ziggy
Well it is a little complicated but the main reasons are - The majority of the tools i have looked at require that the "tool" run inside Tomcat which is where my application will also be running. This is a problem because if Tomcat itself is not available then i cant monitor anything - It will be

Re: Accessing context information remotely - Context.getAvailable() etc.

2011-01-06 Thread Kees Jan Koster
Dear Ziggy, > I was looking at the above for the above information as i am working on a > client tool that tries to find out this exact information. The tool i am > using connects to Tomcat via JMX but i am not sure if i can get the same > information via JMX. Can i access the Context class? or is

No Content-type in the header

2011-01-06 Thread 9-ACT-SWIM-SIF-LAB
I'm not sure this is a Tomcat issue but I'll explain why I'm posting it here shortly. When I execute a very simple Java console web service client I get the following: Exception in thread "main" javax.xml.ws.WebServiceException: No Content-type in the header! The web service is deployed to To

Re: Accessing context information remotely - Context.getAvailable() etc.

2011-01-06 Thread Ziggy
Hi, Thanks for your response. I am aware of the activeSessions attribute under "Catalina:type=Manager,path=/testapp,host=localhost". I am actually doing this programmatically and would like to know of an Mbean that would tell me if the application is available. The activeSessions attribute can som

Re: Accessing context information remotely - Context.getAvailable() etc.

2011-01-06 Thread Pid
On 1/6/11 6:07 PM, Ziggy wrote: > I was looking at the code for the Tomcat Manager application to try and find > out how it is determining whether a webapp/context is running and how many > sesions are active. Looking at the code i think it uses these two methods > > Context.getAvailalbe() //check

Accessing context information remotely - Context.getAvailable() etc.

2011-01-06 Thread Ziggy
I was looking at the code for the Tomcat Manager application to try and find out how it is determining whether a webapp/context is running and how many sesions are active. Looking at the code i think it uses these two methods Context.getAvailalbe() //check if available Context.getManager().findSes

RE: How to disable chunked encoding for the Http11NioProtocol connector.

2011-01-06 Thread ilya goberman
I think what was suggested before is to control this behavior by setting "keepAlive" setting. I would not think this is the right way. I would still want to preserve "keepAlive" functiojnality for all other requests except "long running comet response". So if it is request for a web page, usin

Re: Tomcat 6 busy threads issue

2011-01-06 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Kobi, On 1/6/2011 12:14 PM, Kobi Biton wrote: > -Tomcat 6.0.22 Great. Any opportunities to upgrade? Your version was never released and is over a year old. > - yes they are load balanced simple Round Robin Linux LVS , (LB > distributes the requests

Re: How to disable chunked encoding for the Http11NioProtocol connector.

2011-01-06 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 1/5/2011 5:13 PM, André Warnier wrote: > 4.3 Message Body > ... > Transfer-Encoding is a property of the message, not of the > entity, and thus MAY be added or removed by any application along the > request/response chain. Maybe the OP shou

Re: Tomcat 6 busy threads issue

2011-01-06 Thread Kobi Biton
Hi Christopher thanks for the reply. -Tomcat 6.0.22 - yes they are load balanced simple Round Robin Linux LVS , (LB distributes the requests evenly) - All the servers (But 1) had the following thread pool confguration prior the change: MaxThreads=1000 , minSpareThread=25,maxSpateThreads=75

Re: How to disable chunked encoding for the Http11NioProtocol connector.

2011-01-06 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ilya, On 1/5/2011 4:29 PM, ilya goberman wrote: > I was thinking more about it. What if Tomcat disables chunked > encoding if response contains "Connection: close" header. I think that's what Mark has suggested several times, now: On 1/5/2011 12:54

Re: Tomcat 6 busy threads issue

2011-01-06 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Kobi, On 1/6/2011 11:26 AM, Kobi Biton wrote: > Recently I have exposed my tomcat 6 6.what? > instances via JMX for monitoring I noticed that 1 of the servers is > using twice the bust thread count then all others Are they load-balanced in any way?

Re: Quick Questions on some Tomcat settings

2011-01-06 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Josh, On 1/6/2011 7:56 AM, Josh Gooding wrote: > thank you thank you thank you! I cannot thank you all enough! Beer is always acceptable, though sometimes tough to ship. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comme

Tomcat 6 busy threads issue

2011-01-06 Thread Kobi Biton
Hello Experts, Recently I have exposed my tomcat 6 instances via JMX for monitoring I noticed that 1 of the servers is using twice the bust thread count then all others , then I noticed a configuration diff the server had 300 as maxThreads while all other had 1000 as MaxThreads After changing it

Re: Comet and multipart

2011-01-06 Thread André Warnier
sol myr wrote: Thanks :) You're correct about blocking inputStreams, but I actually need Tomcat to write a multipart *response*, on an OutputStream (the reading side is on the client, and our client-side programmers will manage it without blocking). I wondered whether I'll have to hand-code it

Re: Tomcat monitoring using JMX

2011-01-06 Thread Pid
On 1/6/11 12:44 PM, Ziggy wrote: > Hi, > > I am using JMX to connect to a Tomcat instance and looking at attributes for > a jdbc datasource as shown below. > > MBeanServerConnection conn = jmxc.getMBeanServerConnection(); > ObjectName on = new > ObjectName("Catalina:type=DataSource,path=/appdb,ho

Re: Comet and multipart

2011-01-06 Thread sol myr
Thanks :) You're correct about blocking inputStreams, but I actually need Tomcat to write a multipart *response*, on an OutputStream (the reading side is on the client, and our client-side programmers will manage it without blocking). I wondered whether I'll have to hand-code it (manually output

Re: tomcat 7.0.4 on MAC my app works on Windows get...

2011-01-06 Thread Joe Greenawalt
Someone here was passing it to tomcat on the startup along with a bunch of other jvm parameters, probably in hopes of trying increase the performance. On Thu, Jan 6, 2011 at 3:02 AM, Pid wrote: > On 1/5/11 8:44 PM, Joe Greenawalt wrote: > > So i went to the appservers and sure enough it was ther

Re: Quick Questions on some Tomcat settings

2011-01-06 Thread Josh Gooding
thank you thank you thank you! I cannot thank you all enough! On Wed, Jan 5, 2011 at 9:53 PM, Caldarale, Charles R < chuck.caldar...@unisys.com> wrote: > > From: Josh Gooding [mailto:josh.good...@gmail.com] > > Subject: Re: Quick Questions on some Tomcat settings > > > I have: > > > > and a d

Tomcat monitoring using JMX

2011-01-06 Thread Ziggy
Hi, I am using JMX to connect to a Tomcat instance and looking at attributes for a jdbc datasource as shown below. MBeanServerConnection conn = jmxc.getMBeanServerConnection(); ObjectName on = new ObjectName("Catalina:type=DataSource,path=/appdb,host=localhost,class=javax.sql.DataSource,name=\"jd

Re: url prefixes behind proxy

2011-01-06 Thread André Warnier
Gabor Pinter wrote: Dear list, I have a very trivial problem. My setup: CentOS 5.5 nginx 0.8.53 Tomcat6 net ---> nginx:80 (proxy_pass) ---> tomcat:8080 Proxy redirect is triggered by prefix "/tom/" myhost:80/tom/ ---> 127.0.0.1:8080/tom/ Now here is my question. How can I let Tomcat know

Re: url prefixes behind proxy

2011-01-06 Thread Pid
On 1/6/11 11:02 AM, Gabor Pinter wrote: > Dear list, > > I have a very trivial problem. > > My setup: > CentOS 5.5 > nginx 0.8.53 > Tomcat6 You're using the unreleased, but highly experimental and potentially dangerous version 6.3.7!? ;) > net ---> nginx:80 (proxy_pass) ---> tomcat:8080 > >

url prefixes behind proxy

2011-01-06 Thread Gabor Pinter
Dear list, I have a very trivial problem. My setup: CentOS 5.5 nginx 0.8.53 Tomcat6 net ---> nginx:80 (proxy_pass) ---> tomcat:8080 Proxy redirect is triggered by prefix "/tom/" myhost:80/tom/ ---> 127.0.0.1:8080/tom/ Now here is my question. How can I let Tomcat know about this "/tom/" pr

Re: tomcat 7.0.4 on MAC my app works on Windows get...

2011-01-06 Thread Pid
On 1/5/11 8:44 PM, Joe Greenawalt wrote: > So i went to the appservers and sure enough it was there * > -Xverify:none*, Out of interest in which config file was this set? It's not an attribute set as standard by Tomcat. p 0x62590808.asc Description: application/pgp-keys signature.asc Descri