Re: Tomcat connection pool bleeding under heavy load

2013-11-21 Thread marko lugarič
Hello I guess you are suggesting to compile this class with the changes you propose and test it? regards, marko On Thu, Nov 21, 2013 at 1:58 AM, David Bullock david.bull...@machaira.com.au wrote: Oh, and 'throw e;' at the end of the handler :-) David Bullock Machaira Enterprises Pty Ltd

Re: Tomcat connection pool bleeding under heavy load

2013-11-21 Thread marko lugarič
Hi I guess i should code something like start i.e. 50 (configurable parameter to increase the load) threads and issues queries non stop over jdbc to i.e. 2 database test tables - we should generate enough trasactions to take all pool connections. And I should probably use jdbc connections as

RE: Deployment Problem - behavior changed from 5.x to 7.x

2013-11-21 Thread Andersen, Bjoern
Hi Konstantin, Thanks for your answer. What I'm trying to do: Background: The APPs can't be simply undeployed and re-deployed (delete and create) because there are tons of files NOT in the war in several subdirs that are not to be deletet during a release change. So what we do is this: - We

is the spec of onMessage really that whole message means it must fit in the input buffer?

2013-11-21 Thread Johan Compagner
Hi, https://javaee-spec.java.net/nonav/javadocs/javax/websocket/OnMessage.html if i read that, then if i have onmessage(String) that i get the whole message as once. Where is it really specified that that also means that it must also fit in the input buffer? So it can't be a partial at all?

Re: is the spec of onMessage really that whole message means it must fit in the input buffer?

2013-11-21 Thread Johan Compagner
Hi, https://javaee-spec.java.net/nonav/javadocs/javax/websocket/OnMessage.html if i read that, then if i have onmessage(String) that i get the whole message as once. Where is it really specified that that also means that it must also fit in the input buffer? So it can't be a partial

Re: is the spec of onMessage really that whole message means it must fit in the input buffer?

2013-11-21 Thread Niki Dokovski
On Thu, Nov 21, 2013 at 1:11 PM, Johan Compagner jcompag...@servoy.comwrote: Hi, https://javaee-spec.java.net/nonav/javadocs/javax/websocket/OnMessage.html if i read that, then if i have onmessage(String) that i get the whole message as once. Where is it really specified

Re: is the spec of onMessage really that whole message means it must fit in the input buffer?

2013-11-21 Thread Johan Compagner
On 21 November 2013 12:21, Niki Dokovski nick...@gmail.com wrote: On Thu, Nov 21, 2013 at 1:11 PM, Johan Compagner jcompag...@servoy.com wrote: Hi, https://javaee-spec.java.net/nonav/javadocs/javax/websocket/OnMessage.html if i read that, then if i have

JSP's always marked as outdated with Jar Scanner Component configured with “scanAllDirectories” and referenced Taglib in WEB-INF/classes/META-INF

2013-11-21 Thread it-media . herbst
Hi, consider the following (simplified) project configuration. web_base_jar (shared taglib etc.) web_war (uses web_base_jar) When developing our web project locally we use an exploded war layout. The compile output of web_base_jar is directly copied (not as a jar!) to the war’s

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

2013-11-21 Thread Rainer Frey (Inxmail GmbH)
On 22.11.2013, at 02:20, Christopher Schultz ch...@christopherschultz.net wrote: I also think that this is a justifiable spec violation, and all I’m asking is that this fact is shown more prominently, esp. as JDBC pool is advertised as a drop-in replacement for DBCP. Fair enough. Care you

Re: is the spec of onMessage really that whole message means it must fit in the input buffer?

2013-11-21 Thread Mark Thomas
On 21/11/2013 11:57, Johan Compagner wrote: But the thing is, it is purely tomcat making frames/fragmentation. The browser (chrome in my part) sends over just 1 frame (14K or what ever size i have now already test that send over 50K of data in 1 frame, no idea what exactly the frame buffer

Re: JSP's always marked as outdated with Jar Scanner Component configured with “scanAllDirectories” and referenced Taglib in WEB-INF/classes/META-INF

2013-11-21 Thread Konstantin Kolinko
2013/11/21 it-media.her...@daimler.com: Hi, Please file an issue in Bugzilla against the Jasper component consider the following (simplified) project configuration. web_base_jar (shared taglib etc.) web_war (uses web_base_jar) So, you have two projects in Eclipse IDE. The war project

Re: How to Deploy an Update to War File

2013-11-21 Thread Daniel Mikusa
On Nov 21, 2013, at 4:58 PM, Leo Donahue - OETX leodona...@mail.maricopa.gov wrote: -Original Message- From: Daniel Mikusa [mailto:dmik...@gopivotal.com] Subject: Re: How to Deploy an Update to War File If you're using Tomcat 7, it's called Parallel Deployment. Dan Can you

Tomcat deployment erring out

2013-11-21 Thread Jonathan Gardner
Hello, Hopefully you guys can help me out with this… I am using Netbeans 7.3.1, Tomcat 6.0.37, Java EE 5, and Java JDK 1.7.0_45. When I create a new maven web application project and try to run it, I get the following error: NetBeans: Deploying on Apache Tomcat profile mode: false

How to Deploy an Update to War File

2013-11-21 Thread Crystal Maramba
Is there a better way to deploy the war files? - Currently, I delete the old war file in the \webapps - Copy and paste the new war file in the \webapps directory - At times, I have to restart the service because it takes a while to load the new war after it has

Re: is the spec of onMessage really that whole message means it must fit in the input buffer?

2013-11-21 Thread Niki Dokovski
Hi Mark, On Thu, Nov 21, 2013 at 2:23 PM, Mark Thomas ma...@apache.org wrote: On 21/11/2013 11:57, Johan Compagner wrote: But the thing is, it is purely tomcat making frames/fragmentation. The browser (chrome in my part) sends over just 1 frame (14K or what ever size i have now already

Re: Tomcat slow during startup = 7.0.28

2013-11-21 Thread Mark Thomas
On 21/11/2013 13:20, Robert Olofsson wrote: Hi! I have tried to upgrade our system to more modern tomcat (from 7.0.28) to 7.0.47 and we also get the slow startup due to annotations processing. In my case it makes tomcat startup go from 1 second to ~8 seconds and for development that is

Re: is the spec of onMessage really that whole message means it must fit in the input buffer?

2013-11-21 Thread Mark Thomas
On 21/11/2013 14:33, Johan Compagner wrote: Patches welcome. something like this? (only for text changes only in WsFrameBase) Hard to read the patch in this format. The best way to provide a patch is to open a bugzilla issue (this one would be an enhancement request) and add the patch in

Re: Tomcat slow during startup = 7.0.28

2013-11-21 Thread Robert Olofsson
On 11/21/2013 03:17 PM, Mark Thomas wrote: You appear to be complaining about specification mandated behaviour. The scan is required as soon as there is an SCI that declares an interest in a class. As far as I know we do not use any such thing. We do use two ServletContextListener and from the

Re: How to Deploy an Update to War File

2013-11-21 Thread Daniel Mikusa
On Nov 21, 2013, at 4:04 PM, Crystal Maramba cmara...@acumenllc.com wrote: Is there a better way to deploy the war files? If you're using Tomcat 7, it's called Parallel Deployment. http://tomcat.apache.org/tomcat-7.0-doc/config/context.html#Parallel_deployment

RE: How to Deploy an Update to War File

2013-11-21 Thread Leo Donahue - OETX
-Original Message- From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] Subject: RE: How to Deploy an Update to War File http://tomcat.apache.org/tomcat-7.0-doc/config/context.html#Parallel_deployment So, in other words, if I want to use parallel deployment, I create

RE: How to Deploy an Update to War File

2013-11-21 Thread Crystal Maramba
-Original Message- From: Crystal Maramba [mailto:cmara...@acumenllc.com] Sent: Thursday, November 21, 2013 1:05 PM To: Tomcat Users List Subject: How to Deploy an Update to War File Is there a better way to deploy the war files? - Currently, I delete the old war file in

RE: How to Deploy an Update to War File

2013-11-21 Thread Leo Donahue - OETX
-Original Message- From: Daniel Mikusa [mailto:dmik...@gopivotal.com] Subject: Re: How to Deploy an Update to War File You can use parallel deployment with WAR files. Just name the war file webapps/context-path##version.war. I need to try this... very cool. So when you build a war

RE: How to Deploy an Update to War File

2013-11-21 Thread Caldarale, Charles R
From: Leo Donahue - OETX [mailto:leodona...@mail.maricopa.gov] Subject: RE: How to Deploy an Update to War File In conf/Catalina/localhost I can have xml files that don't match the names of any web app in the webapps directory, and these xml files are treated as web apps. Yes, you can

RE: How to Deploy an Update to War File

2013-11-21 Thread Leo Donahue - OETX
-Original Message- From: Daniel Mikusa [mailto:dmik...@gopivotal.com] Subject: Re: How to Deploy an Update to War File If you're using Tomcat 7, it's called Parallel Deployment. Dan Can you describe this process a little more? So, in other words, if I want to use parallel deployment, I

Tomcat slow during startup = 7.0.28

2013-11-21 Thread Robert Olofsson
Hi! I have tried to upgrade our system to more modern tomcat (from 7.0.28) to 7.0.47 and we also get the slow startup due to annotations processing. In my case it makes tomcat startup go from 1 second to ~8 seconds and for development that is annoying, even if it is not critical for production

Re: Tomcat deployment erring out

2013-11-21 Thread Mark Eggers
On 11/21/2013 2:22 PM, Jonathan Gardner wrote: Hello, Hopefully you guys can help me out with this… I am using Netbeans 7.3.1, Tomcat 6.0.37, Java EE 5, and Java JDK 1.7.0_45. When I create a new maven web application project and try to run it, I get the following error: NetBeans: Deploying

Re: Tomcat deployment erring out

2013-11-21 Thread Jonathan Gardner
I've been killing the tomcat process manually. When I do that, and execute the project again, I get the first error in my first email. I appreciate your response a lot, but I don't see how our solves that first error. Netbeans doesn't start tomcat correctly even when its isn't already running...

Re: is the spec of onMessage really that whole message means it must fit in the input buffer?

2013-11-21 Thread Johan Compagner
Patches welcome. something like this? (only for text changes only in WsFrameBase) in the constructor of WsFrameBase // take the minimum from what is set by the user or the default. messageBufferText =

Re: is the spec of onMessage really that whole message means it must fit in the input buffer?

2013-11-21 Thread Johan Compagner
Hi Mark, So tomcat should handle the concatting for me, why do i need to do that my self? You don't. If you want the container to provide the received message in a single call then all you need to do is tell the container what the maximum message size you wish it to support is. The

Re: 404 - Might there be something wrong with my permissions?

2013-11-21 Thread Konstantin Kolinko
2013/11/21 Fredrik Andersson fredan...@hotmail.com: Hello Tomcat-experts! It is hard to read you message. 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

with useHttpOnly=true my browser could access cookies through javascript.

2013-11-21 Thread sush3152 .
Hi,i have the below details about the problem.Please go though it and let me know if i am making any mistakes. Environmnent Tomcat7 Windows7/Centos6.3 64bit jdk 7 Mozilla firefox 25.0.1 CATALINA_HOME/conf/context.xml Context useHttpOnly=true/ WatchedResourceWEB-INF/web.xml/WatchedResource

Re: Tomcat deployment erring out [OT]

2013-11-21 Thread Mark Eggers
On 11/21/2013 3:47 PM, Jonathan Gardner wrote: I've been killing the tomcat process manually. When I do that, and execute the project again, I get the first error in my first email. I appreciate your response a lot, but I don't see how our solves that first error. Netbeans doesn't start tomcat

RE: 404 - Might there be something wrong with my permissions?

2013-11-21 Thread Fredrik Andersson
Hello Konstantin!Thanks for your reply!Yes the message got really hard to read, it looked fine when I send it!My apologies for that!I will start to investigate your advice right away!Sounds really interesting!I will get back as soon I got any new info!Best regards and thanks alot again!/Fredrik

Re: with useHttpOnly=true my browser could access cookies through javascript.

2013-11-21 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Sush, On 11/21/13, 1:54 PM, sush3152 . wrote: Hi,i have the below details about the problem. Please go though it and let me know if i am making any mistakes. Environmnent Tomcat7 Exactly which version of Tomcat 7? Windows7/Centos6.3 64bit

Re: is the spec of onMessage really that whole message means it must fit in the input buffer?

2013-11-21 Thread Mark Thomas
On 21/11/2013 12:55, Johan Compagner wrote: Hi Mark, So tomcat should handle the concatting for me, why do i need to do that my self? You don't. If you want the container to provide the received message in a single call then all you need to do is tell the container what the maximum

Re: Embedded Tomcat AJP Issue

2013-11-21 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Edwin, On 11/20/13, 5:27 PM, Ramirez, Edwin wrote: 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. What

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

2013-11-21 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Rainer, On 11/21/13, 2:18 AM, Rainer Frey (Inxmail GmbH) wrote: On 20.11.2013, at 14:21, Christopher Schultz ch...@christopherschultz.net wrote: Rainer, FWIW, Connection.close also states this: Releases this Connection object's database

Re: [OT] Issue with cgi/perl webpage

2013-11-21 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Neven, On 11/20/13, 11:48 AM, Neven Cvetkovic wrote: Ultimately, CGI is a very old technology that had its own share of performance (and security) problems. Usually, CGI scripts were replaced with superior Java Servlet technology (or some other

Re: [OT] How to Deploy an Update to War File

2013-11-21 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Leo, On 11/21/13, 6:06 PM, Leo Donahue - OETX wrote: -Original Message- From: Daniel Mikusa [mailto:dmik...@gopivotal.com] Subject: Re: How to Deploy an Update to War File You can use parallel deployment with WAR files. Just name the

Re: How to Deploy an Update to War File

2013-11-21 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Crystal, On 11/21/13, 6:04 PM, Crystal Maramba wrote: Can someone provide me the steps on how to manually re-deploy an updated war file You can simply copy the new WAR over the old WAR. If you delete the WAR file, you may trigger an

RE: 404 - Might there be something wrong with my permissions?

2013-11-21 Thread Fredrik Andersson
Hello guys! I started my tomcat at home with catalina.bat start -security. During startup I at once got a lot of exceptions, please see this pastie:http://pastie.org/8499210 When I try to access the webapp I get 404 right away.At the production server I at least could access the jsp:s direct,

Re: is the spec of onMessage really that whole message means it must fit in the input buffer?

2013-11-21 Thread Mark Thomas
On 21/11/2013 13:01, Niki Dokovski wrote: On Thu, Nov 21, 2013 at 2:23 PM, Mark Thomas ma...@apache.org wrote: There is explicitly no relationship between a WebSocket frame and a partial WebSocket message delivered via MessageHandler.Partial.onMessage(String, boolean). Containers are free to

RE: How to Deploy an Update to War File

2013-11-21 Thread Caldarale, Charles R
From: Leo Donahue - OETX [mailto:leodona...@mail.maricopa.gov] Subject: RE: How to Deploy an Update to War File Can you describe this process a little more? http://tomcat.apache.org/tomcat-7.0-doc/config/context.html#Parallel_deployment So, in other words, if I want to use parallel