Re: [OT] Curious difference in connection behaviour on database side DBCP vs. JDBC?

2013-11-20 Thread Rainer Frey (Inxmail GmbH)
On 20.11.2013, at 14:21, Christopher Schultz wrote: > Rainer, > FWIW, Connection.close also states this: > > " > Releases this Connection object's database and JDBC resources > immediately instead of waiting for them to be automatically released. > " > > Does that mean that all connection poo

Re: Tomcat connection pool "bleeding" under heavy load

2013-11-20 Thread David Bullock
Oh, and 'throw e;' at the end of the handler :-) David Bullock Machaira Enterprises Pty Ltd PO Box 31 Canowindra NSW 2804 02 6344 1100 http://machaira.com.au/ On 21 November 2013 11:48, David Bullock wrote: > Line 150 of org.apache.tomcat.jdbc.pool.FairBlockingQueue can throw > InterruptedExce

Re: Tomcat connection pool "bleeding" under heavy load

2013-11-20 Thread David Bullock
Line 150 of org.apache.tomcat.jdbc.pool.FairBlockingQueue can throw InterruptedException, which should be handled by: catch (InterruptedException e) { lock.lock(); waiters.remove(c); // prevent future threads from offering to this thread, since we are about to die lock.unlock(); if (c.

Embedded Tomcat AJP Issue

2013-11-20 Thread Ramirez, Edwin
Hello, I am new to Tomcat and I was wondering if you could help me. I am trying to use tomcat in an embedded scenario, but I am unable to get the tomcat connector to support AJP connections. During startup I get the following messages: ... Nov 20, 2013 4:43:56 PM org.apache.coyote.AbstractProto

404 - Might there be something wrong with my permissions?

2013-11-20 Thread Fredrik Andersson
Hello Tomcat-experts! I have recently bought some space at a webhotel that uses Apache HTTP server as front before a Tomcat 6.0.37.My account at the webhotel is said to support Struts and Hibernate and such technics.At home I have developed a app that uses those technics and of course it runs fi

Re: Visible passwords in realm

2013-11-20 Thread James H. H. Lampert
On 11/20/13 10:22 AM, Milo Hyson wrote: Out of curiosity, what problems do you see hashed passwords resolving in this case? As others have already pointed out, I was shooting off my mouth without understanding the question. Oh. That's very different. Nevermind. -- JHHL (Now going back to a

RE: Visible passwords in realm

2013-11-20 Thread Jan Tosovsky
On 2013-11-20 williamissey...@tsys.com wrote: > Is there any way to not have the password visible in the realm for > example for active directory realm? You can extend the default JNDIRealm: import org.apache.catalina.realm.JNDIRealm; import org.slf4j.Logger; import org.slf4j.LoggerFactory; publ

Felix plugin for Tomcat?

2013-11-20 Thread Martin Gainty
All- Is/are there any efforts to integrate Apache Felix OSGI Console Functions (as a TC plugin) into either Tomcat 7.x or Tomcat 8x? http://felix.apache.org/ Thanks, Martin

Re: Visible passwords in realm

2013-11-20 Thread Milo Hyson
Out of curiosity, what problems do you see hashed passwords resolving in this case? - Milo Hyson Chief Scientist CyberLife Labs, Inc. On Nov 20, 2013, at 8:23 AM, James H. H. Lampert wrote: > Harrumph. It occurs to me that if Tomcat stored passwords the way OS/400 does > (i.e., as a one-way

Re: Tomcat connection pool "bleeding" under heavy load

2013-11-20 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Marko, On 11/20/13, 12:07 PM, marko lugarič wrote: > I have repeated the test with logAbandoned set to "true" and left > it half hour after pool is empty. There are a lot of exceptions > (Pool empty. Unable to fetch a connection in 15 seconds and Po

Re: Visible passwords in realm

2013-11-20 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 James On 11/20/13, 11:23 AM, James H. H. Lampert wrote: > 2013/11/20 : >>> Is there any way to not have the password visible in the realm >>> for example for active directory realm? > . . . On 11/20/13 12:36 AM, Konstantin Kolinko wrote: >> https:/

Re: Visible passwords in realm

2013-11-20 Thread Mark Thomas
On 20/11/2013 16:23, James H. H. Lampert wrote: > 2013/11/20 : >>> Is there any way to not have the password visible in the realm for >>> example for active directory realm? > . . . > On 11/20/13 12:36 AM, Konstantin Kolinko wrote: >> https://wiki.apache.org/tomcat/FAQ/Password > > Harrumph. It o

Re: Tomcat connection pool "bleeding" under heavy load

2013-11-20 Thread marko lugarič
Hello I have repeated the test with logAbandoned set to "true" and left it half hour after pool is empty. There are a lot of exceptions (Pool empty. Unable to fetch a connection in 15 seconds and Pool wait interrupted) but i don't know what exactly to search (search with Abandoned did not produce

Re: Issue with cgi/perl webpage

2013-11-20 Thread Neven Cvetkovic
On Wed, Nov 20, 2013 at 12:21 AM, Felipe wrote: > Neven, > First of all, I'd like to thank you for all the help. I can say I have > learned a great deal through this experience. To clarify, the choice of > using tomcat for this was not mine. I am trying to lend a hand to a > professor of mine. Th

Re: Visible passwords in realm

2013-11-20 Thread James H. H. Lampert
2013/11/20 : Is there any way to not have the password visible in the realm for example for active directory realm? . . . On 11/20/13 12:36 AM, Konstantin Kolinko wrote: https://wiki.apache.org/tomcat/FAQ/Password Harrumph. It occurs to me that if Tomcat stored passwords the way OS/400 does

Re: Tomcat connection pool "bleeding" under heavy load

2013-11-20 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Marko, On 11/20/13, 8:14 AM, marko lugarič wrote: > Hello > > The tests are run in the following manner: around 5 min to start > the server and connect all clients. Then I can apply load from > clients: on the graph I applied only half load for fir

Re: Restrict the use of JDK classes Tomcat 7 or 6

2013-11-20 Thread ANALIA DE PEDRO SANTAMARIA
Thank you very much. Your answer has helped me a lot. 2013/11/20 Aurélien Terrestris > From what I understand in this doc, there is no specific resource > management code anywhere and you must ensure that your application > will call permission checking every time you are going to access the >

Re: [OT] Curious difference in connection behaviour on database side DBCP vs. JDBC?

2013-11-20 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Rainer, On 11/20/13, 2:36 AM, Rainer Frey (Inxmail GmbH) wrote: > > On 19.11.2013, at 14:45, Mark Thomas wrote: > >> On 19/11/2013 13:32, Carl Boberg wrote: >> >>> I have here an example of the way we close from the >>> application, (the devs ha

Re: Curious difference in connection behaviour on database side DBCP vs. JDBC?

2013-11-20 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Carl, A late reply, but I believe you have some problems with your code. Mark's comments about Tomcat-pool indicate that certain sloppy resource-management activities may leave resources open on the server, and I'm fairly sure that, given the code y

Re: Tomcat connection pool "bleeding" under heavy load

2013-11-20 Thread marko lugarič
Hello The tests are run in the following manner: around 5 min to start the server and connect all clients. Then I can apply load from clients: on the graph I applied only half load for first seven minutes an then full load but this is not required - I can go with full load after all clients connec

Re: Restrict the use of JDK classes Tomcat 7 or 6

2013-11-20 Thread Aurélien Terrestris
>From what I understand in this doc, there is no specific resource management code anywhere and you must ensure that your application will call permission checking every time you are going to access the protected resource. Even for a web application, it must be considered as any other application,

Re: setting the text or binary buffer size for websockets

2013-11-20 Thread Johan Compagner
Konstantin, > Right, I also think the calls to getBasicRemote().sendText(...) should > be synchronized as multiple threads can concurrently access this method for > a particular client (that however could mean that if one client stops > receiving from its WebSocket connection, no other client ca

Re: setting the text or binary buffer size for websockets

2013-11-20 Thread Mark Thomas
On 19/11/2013 17:12, Johan Compagner wrote: >> >>> I expect that i can send now 32K at >>> once of text (or binary) withing that "continuation frame" >> >> The buffer sizes control the input buffer - i.e. they control the >> maximum size of a message that can be received if an application doesn't >

Re: Visible passwords in realm

2013-11-20 Thread Konstantin Kolinko
2013/11/20 : > Hi all, > > Is there any way to not have the password visible in the realm for example > for active directory realm? > > debug="99" > connectionURL="ldap://xxx:389"; > authentication="si

Visible passwords in realm

2013-11-20 Thread WilliamIsseyegh
Hi all, Is there any way to not have the password visible in the realm for example for active directory realm? ldap://xxx:389"; authentication="simple" referrals="follow" connectionName="cn= CN=xx