Re: Servlet Filter Examples

2011-12-23 Thread Konstantin Kolinko
2011/12/23 Christopher Schultz ch...@christopherschultz.net: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, At the ApacheCon NA Tomcat meetup back in November, there was general interest in seeing some example servlet Filters in the Tomcat examples directory. I said I'd write some.

Re: response.isCommited() returns false after sendRedirect is called?

2011-12-23 Thread Konstantin Kolinko
2011/12/23 Polina Genova polina.gen...@gmail.com: Hi, I accidentally noticed that in valves response.isCommitted()  returns false after sendRedirect() is called. According to the HttpServletResponse API (and Servlet Specification v.2.5) after sendRedirect() is called the response should be

Re: Tomcat HTTPS Connector Stops working after an hour

2011-12-23 Thread Saravanan L
Please find the dump below. One more interesting thing I found out, was when I remove acceptCount=1 My tomcat 7 works fine. But I had the same property in tomcat 6 and it worked fine on that. I believe this property is causing the problem . Also found out that when it reaches 900

Re: Tomcat HTTPS Connector Stops working after an hour

2011-12-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Saravanan, On 12/23/11 7:03 AM, Saravanan L wrote: Please find the latest thread dump attached with mail. Tomcat 7 still crashes without acceptCount. I am wrong on this assumption. The response code is 504. It takes about 2 hours for this

Re: Servlet Filter Examples

2011-12-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Konstantin, On 12/23/11 3:41 AM, Konstantin Kolinko wrote: 2011/12/23 Christopher Schultz ch...@christopherschultz.net: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, At the ApacheCon NA Tomcat meetup back in November, there was general

Re: Running not multithreaded application

2011-12-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hernan, On 12/22/11 9:47 PM, hernan wrote: Finally, I'm just using Runtime.exec() to execute a c++ program that uses glpk, and using stdin/stdout to communicate them. The whole system is running tomcat, axis2, java and c/c++. Just be very careful

Re: Hosted environment

2011-12-23 Thread Pid *
On 22 Dec 2011, at 18:29, Mark Eggers its_toas...@yahoo.com wrote: - Original Message - From: r.sriram sri...@rstech.net To: Tomcat Users List users@tomcat.apache.org Cc: Sent: Wednesday, December 21, 2011 5:27 PM Subject: Re: Hosted environment snip Hmm, it certainly does work.

Re: Hosted environment

2011-12-23 Thread Pid *
Sigh, it's not the gospel according to epithet Mr. Eggers :-p. I mock you not sir. p I just read and follow instructions / source code / information on the 'net / snappy answers to my not so bright questions. Once I figure it all out (TM), I'll write it up and post on a Wiki somewhere.

Re: Hosted environment

2011-12-23 Thread Mark Eggers
- Original Message - From: Pid * p...@pidster.com To: Tomcat Users List users@tomcat.apache.org Cc: Sent: Friday, December 23, 2011 9:42 AM Subject: Re: Hosted environment On 22 Dec 2011, at 18:29, Mark Eggers its_toas...@yahoo.com wrote: - Original Message -

Tomcat CsrfPreventionFilter - LRU Cache

2011-12-23 Thread Ganesh Dhakshinamurthy
Hi I recently came across an issue reported regarding the LRU cache implementation in CsrfPreventionFilter. It was reported that FIFO was implemented instead of LRU. We are facing an issue in our application due this, [Nonce tokens getting rejected]. I searched in the bugs database to check

Re: Tomcat CsrfPreventionFilter - LRU Cache

2011-12-23 Thread Mark Thomas
On 23/12/2011 19:45, Ganesh Dhakshinamurthy wrote: Hi I recently came across an issue reported regarding the LRU cache implementation in CsrfPreventionFilter. It was reported that FIFO was implemented instead of LRU. We are facing an issue in our application due this, [Nonce tokens getting

Creating CSR for Purchasing SSL Certificate from VeriSign

2011-12-23 Thread Conway Liu
Hi, We are running a Tomcat website on Windows 2008 R2. The SSL certificate for this website has expired. Instead of renewing the SSL certificate from the current SSL provider, we want to buy new SSL certificate from VeriSign. We are aware that we need to first generate a Certificate

Re: Tomcat CsrfPreventionFilter - LRU Cache

2011-12-23 Thread Ganesh Dhakshinamurthy
Hello Mark Thanks for the info. - Ganesh On Fri, Dec 23, 2011 at 3:30 PM, Mark Thomas ma...@apache.org wrote: On 23/12/2011 19:45, Ganesh Dhakshinamurthy wrote: Hi I recently came across an issue reported regarding the LRU cache implementation in CsrfPreventionFilter. It was reported

Re: [OT] Hosted environment

2011-12-23 Thread André Warnier
Mark Eggers wrote: ... I was thinking about writing bash shell scripts, but that's not portable across all platforms (unless you install cygwin). You should learn perl. ;-) - To unsubscribe, e-mail:

Re: Running not multithreaded application

2011-12-23 Thread hernan
On Fri, Dec 23, 2011 at 12:00 PM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hernan, On 12/22/11 9:47 PM, hernan wrote: Finally, I'm just using Runtime.exec() to execute a c++ program that uses glpk, and using stdin/stdout to

RE: Creating CSR for Purchasing SSL Certificate from VeriSign

2011-12-23 Thread Piotr Pawłowski
Hi Conway, All depends on your server setup. If you have Tomcat 'behind' Apache, NginX or IIS you should generate csr and install certificate on those software which is on front of Tomcat. If you have only Tomcat on the server you should familiarize with Tomcat+SSL guides. As a example you can

RE: Creating CSR for Purchasing SSL Certificate from VeriSign

2011-12-23 Thread Conway Liu
Thank you Piotr, I will have a read of the link you provided. Merry Christmas Conway -Original Message- From: Piotr Pawłowski [mailto:piotr.pawlow...@goyello.com] Sent: Saturday, 24 December 2011 10:27 a.m. To: Tomcat Users List Subject: RE: Creating CSR for Purchasing SSL Certificate

Re: Running not multithreaded application

2011-12-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hernán, On 12/23/11 4:24 PM, hernan wrote: Process p = Runtime.getRuntime().exec(...); // Sending input to process p OutputStream os = p.getOutputStream(); BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(os)); [...] // send input

Re: Creating CSR for Purchasing SSL Certificate from VeriSign

2011-12-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Conway, On 12/23/11 4:13 PM, Conway Liu wrote: Also, if we later add another Tomcat site (with a different domain name) on the same Windows 2008 R2 server, do we have to generate another CSR to purchase another SSL certificate? Apache httpd and

using htop, i see many tomcat processes?

2011-12-23 Thread S Ahmed
In my catalina.sh and set CATALINA_OPT, and I have Xmx around 2GB of ram. When I run htop, I see many instances of the tomcat process. I'm on a quad core server (xeon 3450), and I am seeing more than 15 tomcat processes, and one of the columns shows how the process was started with the java

Re: [OT] Hosted environment

2011-12-23 Thread Mark Eggers
- Original Message - From: André Warnier a...@ice-sa.com To: Tomcat Users List users@tomcat.apache.org Cc: Sent: Friday, December 23, 2011 1:22 PM Subject: Re: [OT] Hosted environment Mark Eggers wrote: ... I was thinking about writing bash shell scripts, but that's not

Re: Creating CSR for Purchasing SSL Certificate from VeriSign

2011-12-23 Thread Mark Eggers
- Original Message - From: Christopher Schultz ch...@christopherschultz.net To: Tomcat Users List users@tomcat.apache.org Cc: Sent: Friday, December 23, 2011 2:08 PM Subject: Re: Creating CSR for Purchasing SSL Certificate from VeriSign -BEGIN PGP SIGNED MESSAGE- Hash:

Re: using htop, i see many tomcat processes?

2011-12-23 Thread Tim Watts
You may have the thread view active. Each thread gets its own PID. I don't know about htop, but in top H (i.e. capital H) toggles this. And it's CATALINA_OPTS not CATALINA_OPT. On Fri, 2011-12-23 at 17:23 -0500, S Ahmed wrote: In my catalina.sh and set CATALINA_OPT, and I have Xmx around 2GB

Odd NIO connector behavior

2011-12-23 Thread Matthew Tyson
Hello, We have been having quite a few problems with using long-polling connections in Tomcat, via the NIO connector. Upgrading to Tomcat 7.0.23 definitely improved things, but we are still seeing major issues. The problems only crop up after a couple minutes under some load (modest load,

Re: using htop, i see many tomcat processes?

2011-12-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ahmed, On 12/23/11 5:23 PM, S Ahmed wrote: In my catalina.sh and set CATALINA_OPT, and I have Xmx around 2GB of ram. Unless you meant CATALINA_OPTS, you aren't changing anything in catalina.sh. Oh, and you should be using setenv.sh not