Re: tomcat(7.0.56) is not releasing idle jdbc connections

2016-05-11 Thread Mark Thomas
On 11/05/2016 11:58, Niranjan Babu Bommu wrote: > Hi, > > we are migrating prod servers to tomcat, since we are doing it slowly we > have found an issue in jdbc connection pool, tomcat is not releasing idle > jdbc connections, even we have tried setting maxIdle="10" but "NumIdle 97" > always. due

tomcat(7.0.56) is not releasing idle jdbc connections

2016-05-11 Thread Niranjan Babu Bommu
Hi, we are migrating prod servers to tomcat, since we are doing it slowly we have found an issue in jdbc connection pool, tomcat is not releasing idle jdbc connections, even we have tried setting maxIdle="10" but "NumIdle 97" always. due to this threads are piling up in database. I'm including

Re: tomcat(7.0.56) is not releasing idle jdbc connections

2016-05-11 Thread Niranjan Babu Bommu
I tried the same config on test stacks. numidle always "10" why it is behaving differently in prod? On Wed, May 11, 2016 at 7:35 AM, Niranjan Babu Bommu < niranjan.bo...@gmail.com> wrote: > Hi Mark > I have included defined data source in this mail, do you want me to > include complete

Re: tomcat(7.0.56) is not releasing idle jdbc connections

2016-05-11 Thread Niranjan Babu Bommu
I'm re-posting my ds On Wed, May 11, 2016 at 10:16 AM, Niranjan Babu Bommu < niranjan.bo...@gmail.com> wrote: > I tried the same config on test stacks. numidle always "10" why it is > behaving differently in prod? > >auth="Container" > type="javax.sql.DataSource" >

Re: Multipart form submission does not work over SSL HTTP2 on Tomcat 9

2016-05-11 Thread Thad Humphries
I am getting a null returned from HttpServletRequest.getParts() HTTP/2 and multipart (see http://bit.ly/1TzXd9k). This happens in my own code, as well as when I try to upload a *.WAR though the manager/html web page. Other than configuring the connector and the upgrade protocol (see below), what

tomcat jaas custom error message in error page

2016-05-11 Thread Shushant Arora
Hi I have a web application deployed on tomcat. I have used custom login module of JAAS for authentication and provided login and error page in web.xml. I want to access message of login exception which I threw in login module into error page - so that custom message can be displayed to user.

Re: tomcat(7.0.56) is not releasing idle jdbc connections

2016-05-11 Thread Igor Cicimov
On 12 May 2016 12:16 am, "Niranjan Babu Bommu" wrote: > > I tried the same config on test stacks. numidle always "10" why it is > behaving differently in prod? > Are you sure your testing db config is identical to the prod one? >auth="Container" >

Re: tomcat(7.0.56) is not releasing idle jdbc connections

2016-05-11 Thread Igor Cicimov
On 12 May 2016 9:00 am, "Igor Cicimov" wrote: > > > On 12 May 2016 12:16 am, "Niranjan Babu Bommu" wrote: > > > > I tried the same config on test stacks. numidle always "10" why it is > > behaving differently in prod? > > > Are you sure your testing

Re: Unable to retrieve X-Forwarded-For in Tomcat 8.0 access log

2016-05-11 Thread Igor Cicimov
On Thu, May 12, 2016 at 4:47 AM, Abhijit Das wrote: > > down vote > <>favorite > < > https://stackoverflow.com/questions/37170742/unable-to-retrieve-x-forwarded-for-in-tomcat-8-0-access-log# > > > I am injecting a header with a rewrite policy on my LB to pass >

A question regarding websocket implementation of Apache Tomcat 8.0.33

2016-05-11 Thread Tejas Nandanikar
I am using Apache Tomcat 8.0.33. I was going through Java documentation about RemoteEndpoint.Basic which says that sendText(String text) blocks until all of the message has been transmitted. But I noticed that when the client loses internet connection and sendText() method is called on the server

Re: webservice deployment on tomcat 1.7 with JAVA 1.8 is giving deployment errors

2016-05-11 Thread Vikas Sharma
You are absolutely correct. I used java 1.8 compatible class from apache xcerses.jar. Now it deploys fine. Thanks and regards, Vikas On 10-May-2016, at 10:08 PM, Konstantin Kolinko wrote: 2016-05-10 17:34 GMT+03:00 Christopher Schultz : >

Re: tomcat(7.0.56) is not releasing idle jdbc connections

2016-05-11 Thread Niranjan Babu Bommu
Hi Mark I have included defined data source in this mail, do you want me to include complete server.xml? thanks Niranjan On Wed, May 11, 2016 at 7:19 AM, Mark Thomas wrote: > On 11/05/2016 11:58, Niranjan Babu Bommu wrote: > > Hi, > > > > we are migrating prod servers to

Unable to retrieve X-Forwarded-For in Tomcat 8.0 access log

2016-05-11 Thread Abhijit Das
down vote <>favorite I am injecting a header with a rewrite policy on my LB to pass X-Forwarded-For header. Have verified that this appears on all the pages in the RESPONSE Header.

Re: Unable to retrieve X-Forwarded-For in Tomcat 8.0 access log

2016-05-11 Thread Abhijit Das
Thanks for pointing out, but that didn’t work either .. (I also changed the policy on the LB to inject in lower case x-forwarded-for thinking if it was case sensitive?) .. Do i need a filter as well in web.xml ? The below Header is a RESPONSE header, where i am injecting x-forwarded-for

Re: Unable to retrieve X-Forwarded-For in Tomcat 8.0 access log

2016-05-11 Thread Abhijit Das
RESOLVED … It should be injected in the REQUEST Header, I will now see if case matters. On May 11, 2016, at 12:07 PM, Abhijit Das wrote: Thanks for pointing out, but that didn’t work either .. (I also changed the policy on the LB to inject in lower case x-forwarded-for

Re: Unable to retrieve X-Forwarded-For in Tomcat 8.0 access log

2016-05-11 Thread Mark Thomas
On 11/05/2016 19:47, Abhijit Das wrote: > > down vote > <>favorite > > > > I am injecting a header with a rewrite policy on my LB to pass > X-Forwarded-For header. Have verified that