ask about the HTTP response timeout parameter.

2009-12-14 Thread Peter Chen
Hi, all I use Tomcat 5.5.26 as web server, and use Hibernate3.1 Beta 1 to connect Database MySQL5.0. The connection pool is c3p0-0.9.1.2. Tomcat and Database are deployed on different hosts. During the running the Tomcat, the database is restarted. And meanwhile there are lots of HTTP

remote monitoring JVM by VisualVM

2009-12-14 Thread Paolo Santarsiero
Hello, I'm tryng to monitor my JVM and so Tomcat HeapMemory usage by remote access using VisualVM. I configured all, but my client always display an error message ( Cannoct connect using service:jmx:rmi:///jndi/rmi://xxx.xxx.xxx.xxx.:8080:jmxrmi). I added in catalina.sh this Java options: elif [

Re: remote monitoring JVM by VisualVM

2009-12-14 Thread trucbinh
Hi, I think you should add this line -Djava.rmi.server.hostname=192.168.1.12 like this -Dcom.sun.management.jmxremote.port=8080 \ -Dcom.sun.management.jmxremote.ssl=false \ -Dcom.sun.management.jmxremote.authenticate=true \ -Djava.rmi.server.hostname=192.168.1.12

AW: AW: mod_jk and session stickyness of images requests

2009-12-14 Thread Kockert, Timo
On 12/11/2009 06:55 PM, Kockert, Timo wrote: The image links are pure html img tags. But they are handled by another servlet then the one serving the html pages. The context however is the same. Example: Content url: http://domain.tld/myapp/ Image url:

Re: remote monitoring JVM by VisualVM

2009-12-14 Thread Paolo Santarsiero
Thanks for answer, but don't solve. I executed jconsole in debug mode and the eception stack is this: java.rmi.ConnectException: Connection refused to host: xxx.xxx.xxx.xxx; nested exception is: java.net.ConnectException: Connection timed out: connect at

Re: remote monitoring JVM by VisualVM

2009-12-14 Thread Pid
On 14/12/2009 10:04, Paolo Santarsiero wrote: Thanks for answer, but don't solve. I executed jconsole in debug mode and the eception stack is this: Firewall settings interfering? Is the server actually listening on the port you set? p java.rmi.ConnectException: Connection refused to host:

Re: remote monitoring JVM by VisualVM

2009-12-14 Thread Paolo Santarsiero
I use 8080 port because it's sure open on server (I used it for tomcat direct access). 2009/12/14 Pid p...@pidster.com On 14/12/2009 10:04, Paolo Santarsiero wrote: Thanks for answer, but don't solve. I executed jconsole in debug mode and the eception stack is this: Firewall settings

RE: Strange characters seen in RR and Cd columns on jkserver-status page after upgrading modjk to .28

2009-12-14 Thread Gerhardus.Geldenhuis
-Original Message- From: Rainer Jung [mailto:rainer.j...@kippdata.de] Sent: 12 December 2009 15:51 To: Tomcat Users List Cc: Gerhardus Geldenhuis (GTA-LON) Subject: Re: Strange characters seen in RR and Cd columns on jkserver- status page after upgrading modjk to .28 On

Re: AW: AW: mod_jk and session stickyness of images requests

2009-12-14 Thread Mladen Turk
On 12/14/2009 10:59 AM, Kockert, Timo wrote: Have you tried to use JkStripSession directive? It is meant to be used exactly for what you describe. Hm, maybe I'm not getting what JkStripSession does, but generally I want _more_ session IDs, not less ;-) My fault, I should have read the

Why does only one server.xml Context causing failure

2009-12-14 Thread Andrew Harvey
I'm loadbalancing my tomcat 5.5.27 servers and have discovered that if I put the following line The advised server.xml line Context distributable=true /Context is causing the following fatal server errors SEVERE: createMBeans: Throwable SEVERE: Error starting static Resources SEVERE:

Re: remote monitoring JVM by VisualVM

2009-12-14 Thread David kerber
Paolo Santarsiero wrote: I use 8080 port because it's sure open on server (I used it for tomcat direct access). I believe the monitor port has to be a different one from the http request port, so if 8080 is the one your app is listening on, it won't work for monitoring. 2009/12/14 Pid

Re: How to access JNDI resources on Tomcat level

2009-12-14 Thread vramanaj
Hi, I am through with the Josso configuration. Could be able to see the sso logon page, redirecting the authenticated username to the partner application. Facing problem with rememberMe option. Second time when i try to logon to the application, logon page is showing up again. I set

AW: remote monitoring JVM by VisualVM

2009-12-14 Thread Kockert, Timo
You forgot -Dcom.sun.management.jmxremote. Like: -Dcom.sun.management.jmxremote \ -Dcom.sun.management.jmxremote.port=port \ -Dcom.sun.management.jmxremote.authenticate=false \ -Dcom.sun.management.jmxremote.ssl=false Greetings, Timo

Re: Why does only one server.xml Context causing failure

2009-12-14 Thread Pid
On 14/12/2009 12:26, Andrew Harvey wrote: I'm loadbalancing my tomcat 5.5.27 servers and have discovered that if I put the following line The advised server.xml line Context distributable=true /Context is causing the following fatal server errors (We don't advise putting Context

Re: How to access JNDI resources on Tomcat level

2009-12-14 Thread Pid
On 14/12/2009 12:55, vramanaj wrote: Hi, I am through with the Josso configuration. Could be able to see the sso logon page, redirecting the authenticated username to the partner application. Facing problem with rememberMe option. Second time when i try to logon to the application, logon page

RE: remote monitoring JVM by VisualVM

2009-12-14 Thread Caldarale, Charles R
From: Kockert, Timo [mailto:timo.kock...@adesso-mobile.de] Subject: AW: remote monitoring JVM by VisualVM You forgot -Dcom.sun.management.jmxremote. -Dcom.sun.management.jmxremote \ -Dcom.sun.management.jmxremote.port=port \ -Dcom.sun.management.jmxremote.authenticate=false \

RE: remote monitoring JVM by VisualVM

2009-12-14 Thread Caldarale, Charles R
From: David kerber [mailto:dcker...@verizon.net] Subject: Re: remote monitoring JVM by VisualVM I believe the monitor port has to be a different one from the http request port, so if 8080 is the one your app is listening on, it won't work for monitoring. The OP already stated that he

Re: remote monitoring JVM by VisualVM

2009-12-14 Thread Paolo Santarsiero
thanks for all answer, but problem doesn't solve. I tested at last JConsole in debug mode and this is the exception stack: java.rmi.ConnectException: Connection refused to host: xxx.xxx.xxx.xxx; nested exception is: java.net.ConnectException: Connection timed out: connect at

RE: remote monitoring JVM by VisualVM

2009-12-14 Thread Caldarale, Charles R
From: Paolo Santarsiero [mailto:paolo.santarsi...@gmail.com] Subject: Re: remote monitoring JVM by VisualVM I use 8080 port because it's sure open on server (I used it for tomcat direct access). Unfortunately, JMX requires an additional, dynamically assigned port, making it difficult to

RE: Why does only one server.xml Context causing failure

2009-12-14 Thread Caldarale, Charles R
From: Andrew Harvey [mailto:hemispheric-ve...@hotmail.co.uk] Subject: Why does only one server.xml Context causing failure The advised server.xml line Context distributable=true /Context is causing the following fatal server errors If you blindly threw the above line into server.xml, I'm

RE: ask about the HTTP response timeout parameter.

2009-12-14 Thread Caldarale, Charles R
From: Peter Chen [mailto:peter.c...@aicent.com] Subject: ask about the HTTP response timeout parameter. I start an IE Browser to send HTTP request to the Tomcat, and I find that the Tomcat need very long time( often more than 10 minutes) to send a HTTP response to IE Browser. I don't

Re: Why does only one server.xml Context causing failure

2009-12-14 Thread Mark Thomas
On 14/12/2009 14:56, Caldarale, Charles R wrote: From: Andrew Harvey [mailto:hemispheric-ve...@hotmail.co.uk] Subject: Why does only one server.xml Context causing failure The advised server.xml line Context distributable=true /Context is causing the following fatal server errors If you

Re: remote monitoring JVM by VisualVM

2009-12-14 Thread Paolo Santarsiero
Many thanks Chuck, I think this can solve my problem. How can I integrate this Listener in my production Tom? 2009/12/14 Caldarale, Charles R chuck.caldar...@unisys.com From: Paolo Santarsiero [mailto:paolo.santarsi...@gmail.com] Subject: Re: remote monitoring JVM by VisualVM I use 8080

RE: remote monitoring JVM by VisualVM

2009-12-14 Thread Caldarale, Charles R
From: Paolo Santarsiero [mailto:paolo.santarsi...@gmail.com] Subject: Re: remote monitoring JVM by VisualVM How can I integrate this Listener in my production Tom? The general building-from-source instructions are here: http://tomcat.apache.org/tomcat-6.0-doc/building.html It's easy and

Response logging

2009-12-14 Thread Abid Hussain
Hello everybody, for testing some ajax components on my local tomcat (in a JSF application) I would like to log the complete responses (including the body) from the incoming ajax requests. I already configured a org.apache.catalina.valves.AccessLogValve for logging the incoming requests. But

'Parametrizing' context.xml?

2009-12-14 Thread Mario Splivalo
Is there a way to 'parametrize' context.xml, for instance, in a manner one can 'parametrize' build.xml? For some webapplication in context.xml one puts, for instance, JDBC specific stuff. But, several developers can have different 'properties' for the database (different user accounts, and so

Re: 'Parametrizing' context.xml?

2009-12-14 Thread Ken Bowen
You can make use of ant's token filtering on copy. You identify the parameters in your context.xml, and create a separate new context.xml with those parameters identified. For example, we have several such parameters occurring in our web.xml, such as @BPVAL@ below: context-param

Re: Context Chicken Egg Problem

2009-12-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David, On 12/11/2009 3:39 PM, David Fisher wrote: Finally, you might consider using a ServletContextListener instead of a Servlet, as this is the recommended practice for context setup. You can still provide a servlet to report on the status of

Re: New to Tomcat -- SSL

2009-12-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, On 12/12/2009 1:40 PM, Caldarale, Charles R wrote: From: Adria Stembridge [mailto:adrya.stembri...@gmail.com] Subject: Re: New to Tomcat -- SSL I compiled jsvc per tomcat 5.5 documentation. [Linux] service tomcat5 stop [Linux]

Re: Tomcat 6.0.16 + mod_jk 1.2.19 - request threads hanging up

2009-12-14 Thread Alessandro Bahgat
On Sat, Dec 12, 2009 at 4:57 PM, Rainer Jung rainer.j...@kippdata.de wrote: On 12.12.2009 13:26, Alessandro Bahgat wrote: We actually found out a lot of unrecoverable error 200, request failed error messages in the mod_jk log (roughly around 1k per hour), so I'm starting to wonder if there's

Re: Context Chicken Egg Problem

2009-12-14 Thread Ken Bowen
Now that's really retro. :-) On Dec 14, 2009, at 11:58 AM, Christopher Schultz wrote: FWIW, we recently moved from 5.5 to 5.0 in our development environment - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org

Re: Strange characters seen in RR and Cd columns on jkserver-status page after upgrading modjk to .28

2009-12-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Gerhardus and Rainer, On 12/14/2009 6:32 AM, gerhardus.geldenh...@gta-travel.com wrote: -Original Message- From: Rainer Jung [mailto:rainer.j...@kippdata.de] It's a known problem. There's an open Bugzilla for that issue. It seems you need

Re: Tomcat 6.0.16 + mod_jk 1.2.19 - request threads hanging up

2009-12-14 Thread Rainer Jung
On 14.12.2009 18:20, Alessandro Bahgat wrote: On Sat, Dec 12, 2009 at 4:57 PM, Rainer Jungrainer.j...@kippdata.de wrote: On 12.12.2009 13:26, Alessandro Bahgat wrote: We actually found out a lot of unrecoverable error 200, request failed error messages in the mod_jk log (roughly around 1k

Re: Strange characters seen in RR and Cd columns on jkserver-status page after upgrading modjk to .28

2009-12-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, On 12/14/2009 12:34 PM, Christopher Schultz wrote: I have a development server with 18 workers defined. I'll enable the status page and check to see what happens. Hmm... I don't see any RR or Cd stuff... probably because I'm not in a

Re: Strange characters seen in RR and Cd columns on jkserver-status page after upgrading modjk to .28

2009-12-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, On 12/14/2009 12:43 PM, Christopher Schultz wrote: Rainer, is this an encoding problem, or an instrumentation problem (counter out-of-range, etc.)? Can you please post a reference to the bug you mentioned earlier? Looks like this is

Re: Context Chicken Egg Problem

2009-12-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, On 12/14/2009 11:58 AM, Christopher Schultz wrote: FWIW, we recently moved from 5.5 to 5.0 in our development environment Thanks, Ken. s/5\.0/6.0/ :) - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using

Re: 'Parametrizing' context.xml?

2009-12-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ken, On 12/14/2009 11:50 AM, Ken Bowen wrote: You can make use of ant's token filtering on copy. This is exactly what we do to solve the OP's problem: we have a revision-controlled context.xml file that has all this replacement stuff in it. Running

RE: server.xml formatting guide

2009-12-14 Thread Jeffrey Janner
Aong those same lines, is it permissible to line-split items inside quotes? For example, the compressableMimeType list can get mighty long. Is it acceptible to write it like; compressableMimeType=text/html, text/xml,

Please help: Setting up an environment with Apache as webserver and JBoss as the application server

2009-12-14 Thread Smithan John
Hi All, To all the geeks out there :), I'm pretty new to server level configurations. I have a task in hand to migrate a set of applications from one server to another. The requirement is an AS-IS migration. The requirement is to migrate a setup which has Apache as the webserver, Webgate as the

Re: Tomcat Config Question

2009-12-14 Thread steflik
Markus, Do I just move the context statements out of server.xml and into context.xml? or is there something else I have to do. If thats all I have to do do I place them before or after the watched element tag that is already in the context.xml file? Dick Steflik Markus Schönhaber-10 wrote:

Re: server.xml formatting guide

2009-12-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jeffrey, On 12/14/2009 1:14 PM, Jeffrey Janner wrote: [Along] those same lines, is it permissible to line-split items inside quotes? For example, the compressableMimeType list can get mighty long. Is it acceptible to write it like;

Re: Please help: Setting up an environment with Apache as webserver and JBoss as the application server

2009-12-14 Thread Pid
On 14/12/2009 18:25, Smithan John wrote: Hi All, To all the geeks out there :), I'm pretty new to server level configurations. I have a task in hand to migrate a set of applications from one server to another. The requirement is an AS-IS migration. The requirement is to migrate a setup which

Re: Tomcat Config Question

2009-12-14 Thread Pid
On 14/12/2009 18:46, steflik wrote: Markus, Do I just move thecontext statements out of server.xml and into context.xml? or is there something else I have to do. If thats all I have to do do I place them before or after the watched element tag that is already in the context.xml file? There

Re: Response logging

2009-12-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Abid, On 12/14/2009 11:09 AM, Abid Hussain wrote: I would like to log the complete responses (including the body) from the incoming ajax requests. [snip] Does anybody if there is any tomcat-built-in or external tool which can log every response

Native binaries 1.1.18 are missing

2009-12-14 Thread Jeffrey Janner
The binaries for the 1.1.18 native libraries are missing. The links are there, but the files are not. I've tried several of the mirrors and this link: http://www.apache.org/dist/tomcat/tomcat-connectors/native/1.1.18/binari es/ Any idea when they might be available? Jeff

Re: Please help: Setting up an environment with Apache as webserver and JBoss as the application server

2009-12-14 Thread André Warnier
Smithan John wrote: waiting for your priceless help. Thanks a ton :) Don't worry, it won't be priceless. For this kind of work, I am sure you can hire a couple of the gurus here, and they will name a price. - To

Re: mod_jk and session stickyness of images requests

2009-12-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rainer, On 12/12/2009 10:46 AM, Rainer Jung wrote: If you want to track, in which cases the browsers support what, you can use the Apache access log. The URL is part of it, so you can see, whether the session id was part of the request URL, and by

Re: AW: mod_jk and session stickyness of images requests

2009-12-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Timo, On 12/13/2009 2:22 PM, Kockert, Timo wrote: On Fri, Dec 11, 2009 at 12:38, Kockert, Timo wrote: Just to clarify: I know the EncodeUrlTransformer does the encoding for me. The problem seems to be that some devices do not send session ID

Re: Strange characters seen in RR and Cd columns on jkserver-status page after upgrading modjk to .28

2009-12-14 Thread Rainer Jung
On 14.12.2009 18:43, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, On 12/14/2009 12:34 PM, Christopher Schultz wrote: I have a development server with 18 workers defined. I'll enable the status page and check to see what happens. Hmm... I don't see any RR or

RE: Tomcat Config Question

2009-12-14 Thread Caldarale, Charles R
From: steflik [mailto:stef...@binghamton.edu] Subject: Re: Tomcat Config Question Do I just move the context statements out of server.xml and into context.xml? It's Context not context - case matters. or is there something else I have to do. Reading the doc would be a good first step:

Re: Native binaries 1.1.18 are missing

2009-12-14 Thread Mladen Turk
On 12/14/2009 07:58 PM, Jeffrey Janner wrote: The binaries for the 1.1.18 native libraries are missing. Any idea when they might be available? This week. Regards -- ^TM - To unsubscribe, e-mail:

RE: Logo file location

2009-12-14 Thread Caldarale, Charles R
From: David kerber [mailto:dcker...@verizon.net] Subject: Logo file location In TC 5.5.x or 6.0.x, Where in my webapp folder structure should I put a small .bmp file that I use for putting a logo on generated reports? Use ServletContext.getResourceAsStream() to retrieve the file, which can

Re: Logo file location

2009-12-14 Thread David kerber
Caldarale, Charles R wrote: From: David kerber [mailto:dcker...@verizon.net] Subject: Logo file location In TC 5.5.x or 6.0.x, Where in my webapp folder structure should I put a small .bmp file that I use for putting a logo on generated reports? Use ServletContext.getResourceAsStream() to

RE: Logo file location

2009-12-14 Thread Caldarale, Charles R
From: David kerber [mailto:dcker...@verizon.net] Subject: Re: Logo file location Will it find it pretty much wherever I put it No, the argument to ServletContext.getResourceAsStream() is a path argument, which must point to the location of the file of interest. Look at the servlet API

Re: Logo file location

2009-12-14 Thread André Warnier
David kerber wrote: Caldarale, Charles R wrote: From: David kerber [mailto:dcker...@verizon.net] Subject: Logo file location In TC 5.5.x or 6.0.x, Where in my webapp folder structure should I put a small .bmp file that I use for putting a logo on generated reports? Use

Re: Logo file location

2009-12-14 Thread André Warnier
André Warnier wrote: David kerber wrote: Caldarale, Charles R wrote: From: David kerber [mailto:dcker...@verizon.net] Subject: Logo file location In TC 5.5.x or 6.0.x, Where in my webapp folder structure should I put a small .bmp file that I use for putting a logo on generated reports? Use

RE: Logo file location

2009-12-14 Thread Caldarale, Charles R
From: André Warnier [mailto:a...@ice-sa.com] Subject: Re: Logo file location Upon further examination of the spec page above, I would guess that a better way (more flexible) would be to specify the relative URI of your file as an init-param value, and then do a getRealPath() to convert

Re: Logo file location

2009-12-14 Thread André Warnier
Caldarale, Charles R wrote: From: André Warnier [mailto:a...@ice-sa.com] Subject: Re: Logo file location Upon further examination of the spec page above, I would guess that a better way (more flexible) would be to specify the relative URI of your file as an init-param value, and then do a

Re: Logo file location

2009-12-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 12/14/2009 3:53 PM, André Warnier wrote: Upon further examination of the spec page above, I would guess that a better way (more flexible) would be to specify the relative URI of your file as an init-param value, and then do a

resource file location (was: Logo file location)

2009-12-14 Thread André Warnier
Hi. On another thread, a discussion was started as to how to correctly locate and specify some data file, part of the application, and which needs to be read in by some code part of that same webapp. Say that the application has a context path /myapp. The original idea is to locate the

Re: Logo file location

2009-12-14 Thread Pid
On 14/12/2009 22:02, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 12/14/2009 3:53 PM, André Warnier wrote: Upon further examination of the spec page above, I would guess that a better way (more flexible) would be to specify the relative URI of your file

RE: resource file location (was: Logo file location)

2009-12-14 Thread Caldarale, Charles R
From: André Warnier [mailto:a...@ice-sa.com] Subject: resource file location (was: Logo file location) The trouble is, it does not really explain what is meant by a path in that context, and some of the other method descriptions on the same page introduce a slight doubt. Sure it does: The

Re: resource file location (was: Logo file location)

2009-12-14 Thread André Warnier
Caldarale, Charles R wrote: From: André Warnier [mailto:a...@ice-sa.com] Subject: resource file location (was: Logo file location) The trouble is, it does not really explain what is meant by a path in that context, and some of the other method descriptions on the same page introduce a slight

Need clarification on AJP Connector logs

2009-12-14 Thread Michael Dubrovskiy
In order to troubleshoot some issues with Apache Tomcat Connector I set JkLogLevel debug, and I found in mod_jk.log file a lot of messages like [debug] map_uri_to_worker::jk_uri_worker_map.c (597): Attempting to map URI '//phpmyadmin/config/config.inc.php' from 5 maps [debug]

Re: 'Parametrizing' context.xml?

2009-12-14 Thread Bill Barker
Mario Splivalo mario.spliv...@megafon.hr wrote in message news:4b266622.5060...@megafon.hr... Is there a way to 'parametrize' context.xml, for instance, in a manner one can 'parametrize' build.xml? For some webapplication in context.xml one puts, for instance, JDBC specific stuff. But,

Re: cluster error recovered?

2009-12-14 Thread Filip Hanik - Dev Lists
increase your send timeout, 3000 seconds is very aggressive, and you would have to tune away most long GC pauses to not timeout. increase your dropTimeout, it seems you're getting false positives, prolly GC again Filip On 12/11/2009 04:28 PM, Mitch Claborn wrote: tomcat 6.0.20 cluster See

RE: Tomcat Config Question

2009-12-14 Thread steflik
Chuck, OK, I've read the document several times and still can't figure out what it is you are trying to tell me. I'm not using WARs so /META-INF/? doesn't come into play. If the Context statements don't go in to server.xml where should I put them, context.xml doesn't seem to be the appropriate

exclusions from conf/web.xml are not being picked up

2009-12-14 Thread Shaun Senecal
I have a blanket security-constraint defined in my conf/web.xml, followed by a couple more specific security-constraints. However, it appears that the more specific ones are not being picked up. When I break in FormAuthenticator.invoke(), I can see in the constraints variable