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

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 Davi

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 /* and * > the same? > > My impression is that /* is more correct since a * pattern impl

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 /* and * 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 true, or do /* and * work the same to mean to m

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 info

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 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 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 MESSAGE

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: 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: 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 To this in our logback.xml

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 > wrote: > >> Hi, >> >> we recently switched to tomcat-jdbc-pool as our connection pool, >> and have since encountered performance problems with Postgre

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 shoul

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 wrote: > On Apr 18, 2014, at 12:28 P

Re: Tomcat 8 websocket example

2014-04-18 Thread Daniel Mikusa
On Apr 18, 2014, at 12:28 PM, Thom Hehl 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 > which is: > >

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 To: users@tomcat.apache.org I have downloaded the websocket exam

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: http://java.sun.com/xml/ns/javaee"; xmlns:xsi="http:/

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 wo

Re: Heartbeat Bug Update - Installation?

2014-04-18 Thread Daniel Mikusa
On Apr 18, 2014, at 9:02 AM, Keith Davis 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. https://wiki.apache.org/t

Re: Should validationQuery commit ?

2014-04-18 Thread Tim Watts
On Fri, 2014-04-18 at 11:05 +0200, Franck Routier wrote: > Is is possible the select just needs to be terminated with a semi-colon? - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail

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

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 wor

Re: Should validationQuery commit ?

2014-04-18 Thread Daniel Mikusa
On Apr 18, 2014, at 5:05 AM, Franck Routier 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 to always ongoing

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 http://permalink.gmane.org/gmane.comp.db.p