Flushing issue with tomcat from 7.0.39 onwards

2014-03-07 Thread Prashant Kadam
Let me start with some history, During upgrade to 7.0.52, I was facing the IOException: Stream closed error. but everything was working fine with old tomcat version 7.0.33 so I started looking from which version problem starts and found it started from 7.0.39. The problem is, tomcat is not

The Service Component

2014-03-07 Thread Leo Donahue
Who uses more than one Service in their server.xml and why? I get that you can have multiple Connectors if you have multiple Service components but why use multiple connectors? Are there any docs on the use cases for these features?

Re: The Service Component

2014-03-07 Thread Leon Rosenberg
Hello, I do use multiple connectors but one service. Multiple connectors to separate user traffic from admin/management traffic. For example if due to overload no threads are available to server http request on the 'main' connector, I still can look into the app, to see what is going on, over my

Re: Performance drop under load for Tomcat8/DBCP2 with respect to Tomcat 7/DBCP1

2014-03-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 All, On 3/5/14, 4:43 PM, Christopher Schultz wrote: All, On 3/5/14, 10:01 AM, Christopher Schultz wrote: Oddly enough, things seem to work with only an updated configuration: setting maxInitial and maxTotal instead of maxActive and

Re: Passing additional parameters using j_security_check (Form based authentication)

2014-03-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Neeraj, On 3/6/14, 4:34 AM, Neeraj Sinha wrote: I have a jsp application and my tomcat version is 7.0.34. Authentication is done using *Form based authentication.* My requirement is as follows: When user's account gets locked, he has to

Re: Stream closed- IOException exception

2014-03-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Prashant, On 3/6/14, 12:43 AM, Prashant Kadam wrote: May be I failed to explain properly my understanding, I will explain the scenario once again No, I get it. You just aren't answering the questions I'm asking. I am including one jsp in

Re: tomcat 6 refuses mod_jk connections after server runs for a couple of days

2014-03-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 3/6/14, 7:39 AM, Daniel Mikusa wrote: On Mar 5, 2014, at 4:51 PM, Isaac Gonzalez igonza...@autoreturn.com wrote: -Original Message- From: Daniel Mikusa [mailto:dmik...@gopivotal.com] Sent: Tuesday, March 04, 2014 12:42 PM To:

Re: understanding jdbc pool

2014-03-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Neven, On 3/5/14, 8:25 PM, Neven Cvetkovic wrote: On Wed, Mar 5, 2014 at 3:15 PM, S Ahmed sahmed1...@gmail.com wrote: Hi, With jdbc pool, is each socket connection in the pool handled by a separate thread? Ahmed, thanks for asking

Re: understanding jdbc pool

2014-03-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Martin, On 3/6/14, 7:53 AM, Martin Gainty wrote: From: neven.cvetko...@gmail.com Date: Wed, 5 Mar 2014 20:25:36 -0500 Subject: Re: understanding jdbc pool To: users@tomcat.apache.org On Wed, Mar 5, 2014 at 3:15 PM, S Ahmed

Re: Trouble shooting refused connections

2014-03-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Bruce, On 3/6/14, 3:19 PM, Bruce Weertman wrote: Thanks for the replies. Here’s some more info. Bruce, On 3/5/14, 1:11 PM, Bruce Weertman wrote: We have a load balancer talking with tomcat’s running on multiple backend tomcat servers. The

Re: The Service Component

2014-03-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Leo, On 3/7/14, 10:44 AM, Leo Donahue wrote: Who uses more than one Service in their server.xml and why? I get that you can have multiple Connectors if you have multiple Service components but why use multiple connectors? You can already

Re: ManagerBase.generateSessionId() gives me a NullPointerException

2014-03-07 Thread Mark Thomas
Looking at the logs added to https://issues.apache.org/bugzilla/show_bug.cgi?id=54315, the undeploy log in the failure case is a lot shorter. The Context appears to have no children (not even the servlets picked up from the default web.xml) which indicates that the deployment failed. My best

Re: The Service Component

2014-03-07 Thread Leo Donahue
On Fri, Mar 7, 2014 at 9:01 AM, Leon Rosenberg rosenberg.l...@gmail.com wrote: Hello, I do use multiple connectors but one service. Multiple connectors to separate user traffic from admin/management traffic. For example if due to overload no threads are available to server http request on

Re: The Service Component

2014-03-07 Thread Leo Donahue
On Fri, Mar 7, 2014 at 9:37 AM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Leo, On 3/7/14, 10:44 AM, Leo Donahue wrote: Who uses more than one Service in their server.xml and why? I get that you can have multiple Connectors if

Tomcat7w.exe

2014-03-07 Thread Leo Donahue
Did I miss something in the documentation about renaming this if one is running multiple windows services of Tomcat? ex: #Prod port 80 c:\apache-tomcat c:\apache-tomcat\apache-tomcat-7.0.52 service install Tomcat7 (from bin directory here) #Dev port 8080 c:\apache-tomcat-dev

Re: The Service Component

2014-03-07 Thread André Warnier
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Leo, On 3/7/14, 10:44 AM, Leo Donahue wrote: Who uses more than one Service in their server.xml and why? I get that you can have multiple Connectors if you have multiple Service components but why use multiple

Re: Tomcat7w.exe

2014-03-07 Thread André Warnier
Leo Donahue wrote: Did I miss something in the documentation about renaming this if one is running multiple windows services of Tomcat? ex: #Prod port 80 c:\apache-tomcat c:\apache-tomcat\apache-tomcat-7.0.52 service install Tomcat7 (from bin directory here) #Dev port 8080 c:\apache-tomcat-dev

RE: Tomcat7w.exe

2014-03-07 Thread Caldarale, Charles R
From: Leo Donahue [mailto:donahu...@gmail.com] Subject: Tomcat7w.exe Did I miss something in the documentation about renaming this if one is running multiple windows services of Tomcat? Besides the doc André pointed out, it's discussed briefly at the end of RUNNING.txt in the Tomcat

Re: Tomcat7w.exe

2014-03-07 Thread Leo Donahue
On Fri, Mar 7, 2014 at 10:58 AM, Caldarale, Charles R chuck.caldar...@unisys.com wrote: From: Leo Donahue [mailto:donahu...@gmail.com] Subject: Tomcat7w.exe Did I miss something in the documentation about renaming this if one is running multiple windows services of Tomcat? Besides the

Checking to see if a Tomcat context is alive or hung

2014-03-07 Thread James H. H. Lampert
I've been asked to come up with a command-line (or batch job) utility (running on an AS/400) to check, programmatically, whether a Tomcat context that's part of one of our products is alive and accepting connections, or hung. I'm already attempting to pick the brains of our people who

RE: Tomcat 7.0.52 stops after hours on our Sun Sparc with SunOS 5.10

2014-03-07 Thread Jay
Update: It has been running ok more than 3 days after using nohup ./startup.sh Correction: Instead of the misleading Daemon, I actually meant that Tomcat starts by ./startup.sh with following parameters: ### /usr/bin/java

RE: tomcat 6 refuses mod_jk connections after server runs for a couple of days

2014-03-07 Thread Isaac Gonzalez
-Original Message- From: Christopher Schultz [mailto:ch...@christopherschultz.net] Sent: Friday, March 07, 2014 8:18 AM To: Tomcat Users List Subject: Re: tomcat 6 refuses mod_jk connections after server runs for a couple of days -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On

Re: Tomcat7w.exe

2014-03-07 Thread Howard W. Smith, Jr.
On Fri, Mar 7, 2014 at 1:11 PM, Leo Donahue donahu...@gmail.com wrote: I blame my lack of command line upbringing for not catching that. I love my MS-DOS command-line days/upbringing (dating back to my first computer, 1986 Tandy 1000 SX, MS-DOS 5.0, maybe, and I don't remember using Windows

Re: Trouble shooting refused connections

2014-03-07 Thread Bruce Weertman
Chris; Just curious: why do you have maxKeepAliveRequests=1? That's... not terribly efficient. That’s a good question and perhaps we should revisit it. I’m a little fuzzy on the reasoning (it was a while ago that we did this), but I believe it was so that we would have a more even distribution

Re: Checking to see if a Tomcat context is alive or hung

2014-03-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 James, On 3/7/14, 1:16 PM, James H. H. Lampert wrote: I've been asked to come up with a command-line (or batch job) utility (running on an AS/400) to check, programmatically, whether a Tomcat context that's part of one of our products is alive

Re: Tomcat 7.0.52 stops after hours on our Sun Sparc with SunOS 5.10

2014-03-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Jay, On 3/7/14, 1:46 PM, Jay wrote: Tomcat instance launches its background processes which seems to detached from the console/terminal (Please correct if it is not right phrase.) Here is the misunderstanding: Tomcat's scripts launch Tomcat in

Re: Trouble shooting refused connections

2014-03-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Bruce, On 3/7/14, 3:08 PM, Bruce Weertman wrote: Chris; Just curious: why do you have maxKeepAliveRequests=1? That's... not terribly efficient. That’s a good question and perhaps we should revisit it. I’m a little fuzzy on the reasoning

NIO connector - connections and threads

2014-03-07 Thread John Smith
The NIO connector has two attributes from the standard HTTP Connector implementation, maxConnections and maxThreads with defaults of 1 and 200, respectively. Can anyone shine some light on how these work together? If I'm allowing up to 1 connections, would that mean I only have 200

RE: Tomcat 7.0.52 stops after hours on our Sun Sparc with SunOS 5.10

2014-03-07 Thread Jay
Thanks Chris for answering all the questions! -Original Message- From: Christopher Schultz [mailto:ch...@christopherschultz.net] Sent: Friday, March 07, 2014 3:36 PM To: Tomcat Users List Subject: Re: Tomcat 7.0.52 stops after hours on our Sun Sparc with SunOS 5.10 -BEGIN PGP SIGNED

Tomcat and Spring Framework

2014-03-07 Thread Leo Donahue
Any Spring developers on the list? http://docs.spring.io/spring/docs/4.0.2.RELEASE/spring-framework-reference/htmlsingle/#overview-usagescenarios Is that saying that you can use a regular Tomcat for all of that? full-fledged enterprise applications on Tomcat?

Re: Tomcat and Spring Framework

2014-03-07 Thread Konstantin Kolinko
2014-03-08 2:30 GMT+04:00 Leo Donahue donahu...@gmail.com: Any Spring developers on the list? http://docs.spring.io/spring/docs/4.0.2.RELEASE/spring-framework-reference/htmlsingle/#overview-usagescenarios A link to htmlsingle page?? That takes a while to load. Here is a quicker one to that

Re: The Service Component

2014-03-07 Thread Leon Rosenberg
Hello Leo, On Fri, Mar 7, 2014 at 6:49 PM, Leo Donahue donahu...@gmail.com wrote: On Fri, Mar 7, 2014 at 9:01 AM, Leon Rosenberg rosenberg.l...@gmail.com wrote: Hello, I do use multiple connectors but one service. Multiple connectors to separate user traffic from admin/management

Re: Tomcat and Spring Framework

2014-03-07 Thread Leo Donahue
On Fri, Mar 7, 2014 at 3:41 PM, Konstantin Kolinko knst.koli...@gmail.comwrote: 2014-03-08 2:30 GMT+04:00 Leo Donahue donahu...@gmail.com: Any Spring developers on the list? http://docs.spring.io/spring/docs/4.0.2.RELEASE/spring-framework-reference/htmlsingle/#overview-usagescenarios

Re: The Service Component

2014-03-07 Thread DHARMENDRA SETHI
Hi Can anyone help me unsubscribe from this mailing list? I have tried numerous times on the website, please help. Thanks On Mar 7, 2014 10:44 AM, Leo Donahue donahu...@gmail.com wrote: Who uses more than one Service in their server.xml and why? I get that you can have multiple Connectors if

Re: The Service Component

2014-03-07 Thread abhishek . anne
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org Regards, Abhishek Anne Sent from BlackBerry® on Airtel -Original Message- From: DHARMENDRA SETHI sethi.dharmen...@gmail.com Date: Fri, 7 Mar 2014 20:38:18 To:

Re: Passing additional parameters using j_security_check (Form based authentication)

2014-03-07 Thread Neeraj Sinha
Chris, On 7 March 2014 21:43, Christopher Schultz ch...@christopherschultz.netwrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Neeraj, On 3/6/14, 4:34 AM, Neeraj Sinha wrote: I have a jsp application and my tomcat version is 7.0.34. Authentication is done using *Form based