Should validationQuery commit ?

2014-04-18 Thread Franck Routier
Hi, we recently switched to tomcat-jdbc-pool as our connection pool, and have since encountered performance problems with Postgresql. The problem is due to the fact that postgres is having hard time vacuuming, due to always ongoing idle transactions. See

Re: Should validationQuery commit ?

2014-04-18 Thread Daniel Mikusa
On Apr 18, 2014, at 5:05 AM, Franck Routier franck.rout...@axege.com wrote: Hi, we recently switched to tomcat-jdbc-pool as our connection pool, and have since encountered performance problems with Postgresql. The problem is due to the fact that postgres is having hard time vacuuming, due

Re: Should validationQuery commit ?

2014-04-18 Thread Franck Routier
Hi, Le 18/04/2014 13:53, Daniel Mikusa a écrit : Another option you might try would be to set “rollbackOnReturn to “true”. That is supposed to instruct the pool to rollback an open transactions when the connection is returned to the pool. I haven’t tried it, but it seems like it would work

Heartbeat Bug Update - Installation?

2014-04-18 Thread Keith Davis
https://issues.apache.org/bugzilla/show_bug.cgi?id=56363 I'm somewhat new to Tomcat. What do I need to do obtain this patch / update? I'm running Apache Tomcat 7 on Windows. Keith Davis - (214) 906-5183 - http://laurinkeithdavis.com http://laurinkeithdavis.com/

Re: Should validationQuery commit ?

2014-04-18 Thread Tim Watts
On Fri, 2014-04-18 at 11:05 +0200, Franck Routier wrote: property name=validationQuery value=select 1 from rtelre/ Is is possible the select just needs to be terminated with a semi-colon? - To unsubscribe, e-mail:

Re: Heartbeat Bug Update - Installation?

2014-04-18 Thread Daniel Mikusa
On Apr 18, 2014, at 9:02 AM, Keith Davis laurinkeithda...@gmail.com wrote: https://issues.apache.org/bugzilla/show_bug.cgi?id=56363 I'm somewhat new to Tomcat. What do I need to do obtain this patch / update? I'm running Apache Tomcat 7 on Windows. This is a good starting point.

Re: Should validationQuery commit ?

2014-04-18 Thread Franck Routier
Le 18/04/2014 13:53, Daniel Mikusa a écrit : Another option you might try would be to set “rollbackOnReturn to “true”. That is supposed to instruct the pool to rollback an open transactions when the connection is returned to the pool. I haven’t tried it, but it seems like it would work

Tomcat 8 websocket example

2014-04-18 Thread Thom Hehl
I have downloaded the websocket example echo in the examples section of the tomcat 8 docs. I downloaded both java classes and the xhtml file and have placed all of these in my eclipse project. I then created a basic web.xml which is: ?xml version=1.0 encoding=UTF-8? web-app

Fwd: Tomcat 8 websocket example

2014-04-18 Thread Thom Hehl
Also, I found several examples of this same issue on stack overflow with no solutions. Original Message Subject:Tomcat 8 websocket example Date: Fri, 18 Apr 2014 12:28:56 -0400 From: Thom Hehl th...@corrisoft.com To: users@tomcat.apache.org I have

Re: Tomcat 8 websocket example

2014-04-18 Thread Daniel Mikusa
On Apr 18, 2014, at 12:28 PM, Thom Hehl th...@corrisoft.com wrote: I have downloaded the websocket example echo in the examples section of the tomcat 8 docs. I downloaded both java classes and the xhtml file and have placed all of these in my eclipse project. I then created a basic web.xml

Re: Tomcat 8 websocket example

2014-04-18 Thread J Java
Please check if you have not included websocket related jars in your application's WEB-INF/lib. if you have ,please remove as it does not initialize the websockets correctly. THey only need to be in tomcat's lib On Fri, Apr 18, 2014 at 10:17 PM, Daniel Mikusa dmik...@gopivotal.comwrote: On Apr

comet servlet gets connected to inadvertantly

2014-04-18 Thread Elias Kopsiaftis
Im using tomcat7 on 64 bit ubuntu linux and java 7. I have a client software that connects to the server. For some reason, when a user logs in, in the access log, i see 3 connections, one to the version check servlet, one to the output servlet, and one to the login servlet. the output servlet

Re: Should validationQuery commit ?

2014-04-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Dan, On 4/18/14, 7:53 AM, Daniel Mikusa wrote: On Apr 18, 2014, at 5:05 AM, Franck Routier franck.rout...@axege.com wrote: Hi, we recently switched to tomcat-jdbc-pool as our connection pool, and have since encountered performance

RE: Tomcat logging with Log4j

2014-04-18 Thread Scott Bailey
Sorry, I'm not sure why you want to log to the console (stdout), but it looks like you've managed to do it. I think is was put in a long time ago (in a bad way) and never changed to a better way. Our developers changed statusListener class=ch.qos.logback.core.status.OnConsoleStatusListener/

Re: Should validationQuery commit ?

2014-04-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Franck, On 4/18/14, 5:05 AM, Franck Routier wrote: we recently switched to tomcat-jdbc-pool as our connection pool, and have since encountered performance problems with Postgresql. The problem is due to the fact that postgres is having hard

Re: comet servlet gets connected to inadvertantly

2014-04-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Elias, On 4/18/14, 2:17 PM, Elias Kopsiaftis wrote: Im using tomcat7 on 64 bit ubuntu linux and java 7. I have a client software that connects to the server. For some reason, when a user logs in, in the access log, i see 3 connections, one to

Re: comet servlet gets connected to inadvertantly

2014-04-18 Thread Elias Kopsiaftis
Oh, what I meant was version information is that server sends version and tells you to upgrade if you dont have the right version. i see these connections in the access log On Fri, Apr 18, 2014 at 2:46 PM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED

Re: http status 400 question

2014-04-18 Thread David Wall
On 4/17/2014 7:50 AM, Christopher Schultz wrote: I'll take a look at the code to see if maybe we can conditionally log something somewhere when we get a 400 error. You can probably get information about it by enabling DEBUG logging on the component that throws the 400 error, but you'll likely

Re: comet servlet gets connected to inadvertantly

2014-04-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Elias, On 4/18/14, 2:55 PM, Elias Kopsiaftis wrote: Oh, what I meant was version information is that server sends version and tells you to upgrade if you dont have the right version. I was asking for you to tell us what versions of everything

Re: http status 400 question

2014-04-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 David, On 4/18/14, 2:57 PM, David Wall wrote: On 4/17/2014 7:50 AM, Christopher Schultz wrote: I'll take a look at the code to see if maybe we can conditionally log something somewhere when we get a 400 error. You can probably get information

Re: http status 400 question

2014-04-18 Thread David Wall
Thanks, Christopher. One last question has to do with the filter-mapping's url-pattern element. Are url-pattern/*/url-pattern and url-pattern*/url-pattern the same? My impression is that /* is more correct since a * pattern implies a file name suffix but there's nothing after it. Is that

Re: http status 400 question

2014-04-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 David, On 4/18/14, 3:37 PM, David Wall wrote: Thanks, Christopher. One last question has to do with the filter-mapping's url-pattern element. Are url-pattern/*/url-pattern and url-pattern*/url-pattern the same? My impression is that /*

RE: Heartbeat Bug Update - Installation?

2014-04-18 Thread Keith Davis
Funny, stupid autocorrect...I know it's Heartbleed, not Heartbeat. :) -Original Message- From: Daniel Mikusa [mailto:dmik...@gopivotal.com] Sent: Friday, April 18, 2014 8:24 AM To: Tomcat Users List Subject: Re: Heartbeat Bug Update - Installation? On Apr 18, 2014, at 9:02 AM, Keith

Re: Best practice to programmatically get the disableURLRewriting context attribute value

2014-04-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Lo, On 4/17/14, 10:44 AM, Sauvel Laurent wrote: 1. Before testing the code below with different Tomcat configurations, I would like to know if there is a better way to do what I want. I'm not really satisfied with this code that is closely