Re: Issue with cgi/perl webpage

2013-11-19 Thread Konstantin Kolinko
2013/11/20 Felipe : > Hello, > > I am running Manjaro Linux (0.8.7) using the linux 3.4.69 kernel on a Dell > XPS m1330 laptop. I am trying to run a sample webpage that uses perl and > cgi to handle a form. > These are the steps I took: > > * wget > http://mirrors.sonic.net/apache/tomcat/tomcat-8

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

2013-11-19 Thread Rainer Frey (Inxmail GmbH)
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 >> have named it dispose). From my untrained non java dev eye we do not seem >> to be doing statement.Close(); and Im curious if

Re: Issue with cgi/perl webpage

2013-11-19 Thread Felipe
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. This specific exercise is in his Unix class. For some reason h

Re: Issue with cgi/perl webpage

2013-11-19 Thread Neven Cvetkovic
Felipe, As noted in the web.xml comments, in order to make cgi-servlet working, you need to package cgi scripts with your web application (e.g. yourapp.war): "Common Gateway Includes (CGI) processing servlet, which supports execution of external applications that conform to the CGI spec requireme

Re: Issue with cgi/perl webpage

2013-11-19 Thread Felipe
Thank you Neven, So, basically I've tried your suggestion, but I tried it again to see if anything would change, but I got this error: *type* Status report *message* */home/luis/tomcat/apache-tomcat-8.0.0-RC5/web/cgi-bin/project.cgi* *description* *The requested resource is not available.* Cou

Re: Issue with cgi/perl webpage

2013-11-19 Thread Neven Cvetkovic
Felipe your form action seem to be wrong. Nothing is listening on port 80 as notwd in your html. It should be more like http://localhost:8080/... Depending how that default servlet has been mapped to cgi programs. Hopefully that will get you going :) On Nov 20, 2013 3:01 AM, "Felipe" wrote: >

Issue with cgi/perl webpage

2013-11-19 Thread Felipe
Hello, I am running Manjaro Linux (0.8.7) using the linux 3.4.69 kernel on a Dell XPS m1330 laptop. I am trying to run a sample webpage that uses perl and cgi to handle a form. These are the steps I took: * wget http://mirrors.sonic.net/apache/tomcat/tomcat-8/v8.0.0-RC5/bin/apache-tomcat-8.0.0-

Re: Tomcat connection pool "bleeding" under heavy load

2013-11-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Marko, On 11/19/13, 10:16 AM, marko lugarič wrote: > About using useEquals="false" property I guess we defined when we > started using this pool. After reading the documentation i guess it > is better to leave it out (it has no effect on the test -

RE: setting the text or binary buffer size for websockets

2013-11-19 Thread Konstantin Preißer
Hi Johan, > -Original Message- > From: Johan Compagner [mailto:jcompag...@servoy.com] > Sent: Tuesday, November 19, 2013 6:13 PM > To: Tomcat Users List > Subject: Re: setting the text or binary buffer size for websockets > > > > > > I expect that i can send now 32K at > > > once of text

Re: Tomcat connection pool "bleeding" under heavy load

2013-11-19 Thread David Bullock
Marko wrote: > In that case debugging looks like the only option? Nobody yet disputed: > The 'leakiness' of the pool is actually in > org.apache.tomcat.jdbc.pool.FairBlockingQueue#poll() > If the line (!c.await(timeout, unit)) exits via an > InterruptedException, the the 'exchangecountdownlatc

Re: Keep Alive Serverconnection

2013-11-19 Thread André Warnier
Morten Bo Oelbye wrote: I am really schrewed up in this server show. I have tryed different suggestion. I do not know how to reuse the response and request connections. I end up with the same error. java.lang.IllegalStateException: Write attempted after request finished Websockets ? How to reus

Re: setting the text or binary buffer size for websockets

2013-11-19 Thread Johan Compagner
> > > 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 > support partial messages. > > The output buffer

Re: Keep Alive Serverconnection

2013-11-19 Thread Morten Bo Oelbye
I am really schrewed up in this server show. I have tryed different suggestion. I do not know how to reuse the response and request connections. I end up with the same error. java.lang.IllegalStateException: Write attempted after request finished Websockets ? How to reuse inputstream and outputs

Re: Tomcat connection pool "bleeding" under heavy load

2013-11-19 Thread marko lugarič
Hello About using useEquals="false" property I guess we defined when we started using this pool. After reading the documentation i guess it is better to leave it out (it has no effect on the test - i tested it). We dont have long running queries because there is not much data and all operations a

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

2013-11-19 Thread Daniel Mikusa
On Nov 19, 2013, at 8:32 AM, Carl Boberg wrote: > Thanks for taking the time Daniel, > > It is very hard to explain the problem since, and it was also stupid of me > to not include the fact that I have tried all kinds of similar combinations > of configuration in context.xml. With botch dbcp and

Re: setting the text or binary buffer size for websockets

2013-11-19 Thread Mark Thomas
On 19/11/2013 14:15, Johan Compagner wrote: > If i run that (http://localhost:8080/examples/websocket/chat.xhtml) > > Type in a string that will go over the 8K boundary > Then in chrome it will still display a frame of 8K and then "continuation > frame (Opcode 0)" which is the rest. > > am i exp

Re: setting the text or binary buffer size for websockets

2013-11-19 Thread Johan Compagner
Hi I have just tested it more, now just with the examples tomcat ships (the chat example) What i first did is add in web.xml these lines: org.apache.tomcat.websocket.textBufferSize 32768 org.apache.tomcat.websocket.binaryBufferSize 32768 (right after metadata-complete="true

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

2013-11-19 Thread Mark Thomas
On 19/11/2013 13:32, Carl Boberg wrote: > I have here an example of the way we close from the application, (the devs > have named it dispose). From my untrained non java dev eye we do not seem > to be doing statement.Close(); and Im curious if that might be the issue? > If so, why does DBCP handle

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

2013-11-19 Thread Carl Boberg
Thanks for taking the time Daniel, It is very hard to explain the problem since, and it was also stupid of me to not include the fact that I have tried all kinds of similar combinations of configuration in context.xml. With botch dbcp and jdbc pools The behaviour persists. For example these are on

Re: Tomcat connection pool "bleeding" under heavy load

2013-11-19 Thread David Bullock
On 19 November 2013 14:59, Caldarale, Charles R wrote: >> From: David Bullock [mailto:david.bull...@machaira.com.au] >> Subject: Re: Tomcat connection pool "bleeding" under heavy load > >> In PooledConnection#borrow(int,String,String) when handling >> InterruptedException, the code there does: > >

Re: [OT] minIdle not being enforced and connections are getting closed instead of returning to the pool

2013-11-19 Thread Srikanth
Hi Chris, We are creating oracle.sql.ARRAY objects in our application using the below piece of code. ArrayDescriptor varArrayDesc = ArrayDescriptor.createDescriptor("ARRAY_XYZ", connection); ARRAY xyzArray = new ARRAY(ArrayDescriptor paramArrayDescriptor, Connection paramConnection, Object paramO

Re: setting the text or binary buffer size for websockets

2013-11-19 Thread Johan Compagner
On 19 November 2013 03:55, Igor Urisman wrote: > Upgraded my environment to 8RC5 and this feature works for me. > Don't know how much help this is, but here's my deployment descriptor: > > > > http://java.sun.com/xml/ns/javaee"; > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; >