Re: JK Connector failure after IIS recycle - version 1.2.30

2011-05-26 Thread André Warnier
Nick Williams wrote: Thanks for the insight. I'll give it a little more time, but I'm being pushed by my superiors here for an answer that I can't give, so I'll have to file a bug before long. Does anyone know if there are any other (open source OR commercial/paid) alternatives to integrating

Re: Tomcat 5.5.27, session lost, cookies

2011-05-26 Thread Diego Ruotolo
Hi, any suggestion for this problem? Thanks, best regards Il 25/05/2011 10.34, Diego Ruotolo ha scritto: Hi, this is my first post to this list. Maybe it's a post more related to the developers list, if so please tell me so and I will send it to that list. Working with my company's

Issues with getRemoteAddress

2011-05-26 Thread Filippo Machi
Hi all, we're experiencing an issue with the getRemoteAddress method (HttpServletRequest). We don't know whether is something known depending on tomcat or if it's something malicious, affecting our servers. We have a filter that authorizes incoming requests using different patterns, one of these

Re: Issues with getRemoteAddress

2011-05-26 Thread André Warnier
Hi. In addition to what you explained below, could you explain the network setup ? In particular, are users always accessing the tomcat server directly, or through a firewall, and/or through a front-end like Apache httpd ? And what is this external service ? is that another webserver ? On what

Re: Issues with getRemoteAddress

2011-05-26 Thread Filippo Machi
Ciao André! Thaks for your answer. Let me add some further info. The service I was talking about is a php script we put in the crontab and it accesses directly to the tomcat asking the url (127.0.0.1:8080/...) I'm omitting the final part of the ip just for privacy. There are just a little set of

Re: Overriding error page displayed when a context fails to initialize

2011-05-26 Thread Sai Pullabhotla
Thanks every one for your useful tips and suggestions. I was able to override the container's default error page using a custom error valve. For any one else that may have a need to do this... The key is to configure your Host element in the config to override the error report valve. This took a

help with new installation

2011-05-26 Thread Nagaraj Panyam
Hi, I am a newbie requesting for help setting up tomcat. I have set tomcat5 properly, because http://servername:8080 shows up the proper page I have to link our site to a payment gateway, for which I have some jar files and some jsp files to test it all. Where to I put those files and how

Re: Performance *SpareThreads

2011-05-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 McAfe, On 5/26/2011 12:00 AM, McAfe wrote: And I've changed to following (the result did not improve or any better sign) MaxClients 256 [snip] Executor name=tomcatThreadPool namePrefix=catalina-exec-

Re: JK Connector failure after IIS recycle - version 1.2.30

2011-05-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Nick, On 5/25/2011 6:31 PM, Nick Williams wrote: Thanks for the insight. I'll give it a little more time, but I'm being pushed by my superiors here for an answer that I can't give, so I'll have to file a bug before long. Certainly when logging

Re: JK Connector failure after IIS recycle - version 1.2.30

2011-05-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 5/26/2011 4:19 AM, André Warnier wrote: 1) it happened only once 2) the same configuration has been working without showing such a problem for at least one year 3) neither IIS nor Tomcat nor isapi_redirector were recently updated 4)

Re: help with new installation

2011-05-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Nagaraj, On 5/26/2011 8:44 AM, Nagaraj Panyam wrote: I am a newbie requesting for help setting up tomcat. I have set tomcat5 properly, because http://servername:8080 shows up the proper page If you are setting up Tomcat in a new installation, why

Re: Issues with getRemoteAddress

2011-05-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Filippo, On 5/26/2011 8:22 AM, Filippo Machi wrote: The service I was talking about is a php script we put in the crontab and it accesses directly to the tomcat asking the url (127.0.0.1:8080/...) Okay: when you use 127.0.0.1, you should always

Re: Tomcat 5.5.27, session lost, cookies

2011-05-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Diego, On 5/25/2011 4:34 AM, Diego Ruotolo wrote: Everything works fine, but sometimes it happens that even if cookies are correctly inserted in the request header (I can see it!) and unprocessed variable of class Cookies is set to false (==

Re: Apache Tomcat under SELinux policy

2011-05-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Marcos, On 5/25/2011 7:16 PM, Marcos Ortiz wrote: So Can you provide to us a completed guide to Apache Tomcat's installation and configuration using SELinux? Any resources? Sure: http://lmgtfy.com/?q=running+tomcat+on+selinux - -chris -BEGIN

RE: help with new installation

2011-05-26 Thread Caldarale, Charles R
From: Nagaraj Panyam [mailto:p...@tifr.res.in] Subject: help with new installation I have set tomcat5 properly, because http://servername:8080 shows up the proper page I have to link our site to a payment gateway, for which I have some jar files and some jsp files to test it all. Where

Re: Tomcat latency

2011-05-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 To whom it may concern, On 5/23/2011 10:45 PM, tom...@r322.com wrote: I have a problem where a simple wget call to docs/config/valve.html can sometimes take up to 15 seconds to process. :( I have a script that does a wget call to valve.html

Re: Tomcat 5.5.27, session lost, cookies

2011-05-26 Thread Marcos Ortiz
On 05/26/2011 04:28 AM, Diego Ruotolo wrote: Hi, any suggestion for this problem? Thanks, best regards Il 25/05/2011 10.34, Diego Ruotolo ha scritto: Hi, this is my first post to this list. Maybe it's a post more related to the developers list, if so please tell me so and I will send it to

Re: restricted utilization on @WebServlet annotation of Servlet 3.0

2011-05-26 Thread kerotan
Dear Sirs, Chris and Mark, Thank you for your advice on my questions. I can make me understood how to use @WebServlet annotation on Tomcat 7.0.14.. Regaeds, -- Noriko Etani Kobe Institute of Computing, Japan Email: et...@kic.ac.jp/kero...@kcn.ne.jp

Re: Tomcat latency

2011-05-26 Thread David kerber
On 5/26/2011 10:17 AM, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 To whom it may concern, On 5/23/2011 10:45 PM, tom...@r322.com wrote: I have a problem where a simple wget call to docs/config/valve.html can sometimes take up to 15 seconds to process. :( I

Re: Issues with getRemoteAddress

2011-05-26 Thread Filippo Machi
Ciao Christopher, we don't trust 85.18.x.x., it doesn't belong to us, that's why I posted my question. We're not able to explain how is possible that a request from localhost to localhost appear to be issued from a different ip. Anyway, I'm going deeper following your hint about the rewrite. May

Re: Tomcat 5.5.27, session lost, cookies

2011-05-26 Thread Filippo Machi
Ciao Diego! While working with cookies, we had some issues handling not valid characters. One of our legacy (non java) server was used to put a blank (' ') character as value of a cookie. But it seems that blank it's a forbidden char so tomcat was not able to parse the cookie value. Is it possible

RE: Tomcat latency

2011-05-26 Thread David Dabbs
-Original Message- From: David kerber [mailto:dcker...@verizon.net] Sent: Thursday, May 26, 2011 9:33 AM To: Tomcat Users List Subject: Re: Tomcat latency Yes, 1.6.0_24 is the latest. I believe the only changes from _22 were security fixes, though. 1.6.0_25 is the

Re: Expected behavior of Tomcat under load

2011-05-26 Thread Asankha Perera
Hi Peter / Chris My sincere apologies, as I somehow missed this original reply from Peter :( Operating system and version? Java version? ubuntu@ip-10-202-99-31:~/configs$ uname -a Linux ip-10-202-99-31 2.6.35-24-virtual #42-Ubuntu SMP Thu Dec 2 05:15:26 UTC 2010 x86_64 GNU/Linux

Re: Expected behavior of Tomcat under load

2011-05-26 Thread André Warnier
Something puzzles me since your first post : Asankha Perera wrote: ... No. TimeSourceDestination Protocol Src Port Dst Port Info 389961 37.056567 10.77.69.810.101.29.42 TCP 9062 8080 9062 8080 [SYN] Seq=0 Win=5792 [TCP

RE: Expected behavior of Tomcat under load

2011-05-26 Thread Caldarale, Charles R
From: André Warnier [mailto:a...@ice-sa.com] Subject: Re: Expected behavior of Tomcat under load What is this TCP CHECKSUM INCORRECT thing ? Usually because the checksum for outbound messages is being computed by the NIC rather than the TCP/IP stack software, so the protocol analyzer

Re: Expected behavior of Tomcat under load

2011-05-26 Thread Asankha C. Perera
Something puzzles me since your first post : ... What is this TCP CHECKSUM INCORRECT thing ? This is the output of some protocol analyser thing, right ? Yes, its a capture from tcpdump, analyzed by wireshark So it is totally independent of Tomcat or whatever. This packet is one that comes

RE: Expected behavior of Tomcat under load

2011-05-26 Thread Caldarale, Charles R
From: Asankha Perera [mailto:asankha.apa...@gmail.com] On Behalf Of Asankha C. Perera Subject: Re: Expected behavior of Tomcat under load Offload parameters for eth0: rx-checksumming: on tx-checksumming: on As expected, the NIC is handling the checksumming. - Chuck THIS COMMUNICATION

Re: Expected behavior of Tomcat under load

2011-05-26 Thread André Warnier
Putting your answer together with the one from Chuck : I understand that if the tcpdump program runs on the same host as the one which is sending the packets, it may not be able to correctly see the TCP checksum, since it captures the packet before it goes out on the network, and it is the NIC

Re: Issues with getRemoteAddress

2011-05-26 Thread André Warnier
Hi. First, tell us what precise version of Tomcat you are using (x.y.z format). Then, one minute I think that I am starting to understand your setup, but the next minute I am lost again. The way I understand it now (please correct whatever needs to be) : 1) You have serverA running Tomcat,

Re: Expected behavior of Tomcat under load

2011-05-26 Thread Asankha C. Perera
On 05/26/2011 09:50 PM, André Warnier wrote: Putting your answer together with the one from Chuck : I understand that if the tcpdump program runs on the same host as the one which is sending the packets, it may not be able to correctly see the TCP checksum, since it captures the packet before

Re: Expected behavior of Tomcat under load

2011-05-26 Thread André Warnier
Asankha C. Perera wrote: On 05/26/2011 09:50 PM, André Warnier wrote: Putting your answer together with the one from Chuck : I understand that if the tcpdump program runs on the same host as the one which is sending the packets, it may not be able to correctly see the TCP checksum, since it

Monitoring memory usage of JVM

2011-05-26 Thread André Warnier
Hi. Tomorrow morning (European time), we are planning a moment of peak usage of one Java daemon application. It is not Tomcat, but it behaves in a manner similar to Tomcat, in the sense that it listens on a TCP port, processes quasi-HTTP requests, creates threads as needed to process these

RE: Monitoring memory usage of JVM

2011-05-26 Thread Caldarale, Charles R
From: André Warnier [mailto:a...@ice-sa.com] Subject: Monitoring memory usage of JVM I am thinking of a couple of command-line options for the JVM, to dump for example some information each time a GC happens, Try -verbose:gc and -Xloggc:file_path_of_your_choice - Chuck THIS

Re: Issues with getRemoteAddress

2011-05-26 Thread Pid
On 26/05/2011 15:43, Filippo Machi wrote: Ciao Christopher, we don't trust 85.18.x.x., it doesn't belong to us, that's why I posted my question. We're not able to explain how is possible that a request from localhost to localhost appear to be issued from a different ip. If it's not one of

Re: Monitoring memory usage of JVM

2011-05-26 Thread Pid
On 26/05/2011 20:16, Caldarale, Charles R wrote: From: André Warnier [mailto:a...@ice-sa.com] Subject: Monitoring memory usage of JVM I am thinking of a couple of command-line options for the JVM, to dump for example some information each time a GC happens, Try -verbose:gc and

Re: Monitoring memory usage of JVM

2011-05-26 Thread André Warnier
Pid wrote: On 26/05/2011 20:16, Caldarale, Charles R wrote: From: André Warnier [mailto:a...@ice-sa.com] Subject: Monitoring memory usage of JVM I am thinking of a couple of command-line options for the JVM, to dump for example some information each time a GC happens, Try -verbose:gc and

Re: Monitoring memory usage of JVM

2011-05-26 Thread André Warnier
André Warnier wrote: Pid wrote: On 26/05/2011 20:16, Caldarale, Charles R wrote: From: André Warnier [mailto:a...@ice-sa.com] Subject: Monitoring memory usage of JVM I am thinking of a couple of command-line options for the JVM, to dump for example some information each time a GC happens,

Re: Monitoring memory usage of JVM

2011-05-26 Thread Pid
On 26/05/2011 21:50, André Warnier wrote: André Warnier wrote: Pid wrote: On 26/05/2011 20:16, Caldarale, Charles R wrote: From: André Warnier [mailto:a...@ice-sa.com] Subject: Monitoring memory usage of JVM I am thinking of a couple of command-line options for the JVM, to dump for example

Re: Tomcat 5.5.27, session lost, cookies

2011-05-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Filippo, On 5/26/2011 10:50 AM, Filippo Machi wrote: One of our legacy (non java) server was used to put a blank (' ') character as value of a cookie. The value itself is blank, or the value /contains/ a blank? Please give us an example of a

Transactions using Tomcat 7 + Apache Commons DBCP 1.4 with two databases?

2011-05-26 Thread Brian Braun
Hi, I'm using: - JDK 1.6 - Tomcat 7.0.12 - Apache Commons DBCP 1.4 - MySQL 5.1.42 - The latest MySQL JDBC driver I have an application that, so far, hasn't had transactional processing. I mean I have the autocommit in on mode, so every update/delete gets commited separately. I need to fix it so

RE: Transactions using Tomcat 7 + Apache Commons DBCP 1.4 with two databases?

2011-05-26 Thread Martin Gainty
managing multiple connections from multiple databases are the domain of TransactionManagers covered by JTA(JSR 907) since TC is decidedly J2SE take a look at the following J2SE TransactionManager vendors: Bitronix: for connection-pooling JBOSSTS for eventual migration to JBOSS AppServer

Re: Performance *SpareThreads

2011-05-26 Thread McAfe
Hi Chris, Noted and thank you for your feedback (let me try 1st) as I no idea which mod_* is using on the setting - McAfe -- View this message in context: http://old.nabble.com/Performance---*SpareThreads-tp31687863p31713191.html Sent from the Tomcat - User mailing list archive at Nabble.com.