Re: tomcat won't start via remote ssh command

2011-01-14 Thread Pid
On 1/13/11 4:34 PM, James Chase wrote: Tomcat version? Did you know there's some memory leak detection and prevention in recent versions of 6.0? Apache Tomcat Version 6.0.18 That's old. Consider updating to the recently released 6.0.30. If you have a memory leak, why not fix it rather

Re: No response buffering in Tomcat 7.0.6?

2011-01-14 Thread André Warnier
Konstantin Kolinko wrote: 2011/1/14 Mark Thomas ma...@apache.org: On 13/01/2011 21:41, verlag.preis...@t-online.de wrote: Does anybody know why Tomcat uses chunked encoding instead of content-length header (output buffering)? Chunked encoding does not mean that the output is unbuffered. If a

[ANN] Apache Tomcat 7.0.6 released

2011-01-14 Thread Mark Thomas
The Apache Tomcat team announces the immediate availability of Apache Tomcat 7.0.6. This is the first stable release of the Tomcat 7 branch. Apache Tomcat 7.0.6 contains further performance improvements in session management, a new binary distribution targeted at users embedding Tomcat in other

Re: Tomcat JMX connection - Authentication failed.

2011-01-14 Thread Pid
On 1/13/11 5:09 PM, Ziggy wrote: Given that Jconsole can connect to the Tomcat JMX without any user credentials (locally), i am guessing that i dont need to supply these credentials but how do i connect to the JMX server without supplying the port number? (by specifying the port number it

Re: [ANN] Apache Tomcat 7.0.6 released

2011-01-14 Thread Pid
On 1/14/11 9:15 AM, Mark Thomas wrote: The Apache Tomcat team announces the immediate availability of Apache Tomcat 7.0.6. This is the first stable release of the Tomcat 7 branch. Congrats. :) p Apache Tomcat 7.0.6 contains further performance improvements in session management, a new

Re: No response buffering in Tomcat 7.0.6?

2011-01-14 Thread Konstantin Kolinko
2011/1/14 André Warnier a...@ice-sa.com: Konstantin Kolinko wrote: 2011/1/14 Mark Thomas ma...@apache.org: On 13/01/2011 21:41, verlag.preis...@t-online.de wrote: Does anybody know why Tomcat uses chunked encoding instead of content-length header (output buffering)? Chunked encoding does

RE: Session replication fails on ReplicationValve invocation

2011-01-14 Thread Lingagiri
How did you monitored that cluster membership up and working via multicast and the two nodes add each other as replication targets. David Nillesen wrote: I think I may have sorted the problem. Would that have occurred if I was asking for a webpage without a context? i.e. just hitting some

RE: No response buffering in Tomcat 7.0.6?

2011-01-14 Thread eurotrans-Verlag
Hi everybody, thanks for your replies. -Original Message- From: Mark Thomas [mailto:ma...@apache.org] Chunked encoding does not mean that the output is unbuffered. If a client declares support for HTTP/1.1 then web servers are free to use chunked encoding for the response if they

Configuring Tomcat 6 to Always Load and Always Save Sessions

2011-01-14 Thread Reinwald Warapen
Hey, Im am migrating my webapp from Resin to Tomcat 6. In Resin there is an option to always save sessions and always load sessions from the persistent store (mysql db). Ive configured my tomcat instance to use the JDBC for the persistence of sessions.

Re: Configuring Tomcat 6 to Always Load and Always Save Sessions

2011-01-14 Thread Mark Thomas
On 14/01/2011 14:56, Reinwald Warapen wrote: Hey, Im am migrating my webapp from Resin to Tomcat 6. In Resin there is an option to always save sessions and always load sessions from the persistent store (mysql db). Ive configured my tomcat instance to use the JDBC for the persistence of

7.0.6 NPE in cluster syncing

2011-01-14 Thread Ronald Klop
Hi, Today I upgraded Tomcat from 7.0.5 to 7.0.6. Now I have these errors in de logs. Jan 14, 2011 4:24:50 PM org.apache.catalina.ha.tcp.ReplicationValve sendReplicationMessage SEVERE: Unable to perform replication request. java.lang.NullPointerException at

Re: Configuring Tomcat 6 to Always Load and Always Save Sessions

2011-01-14 Thread Reinwald Warapen
Thanks Mark for the quick response. I just tried what you mentioned setting maxIdleSwap='0'. But for some reason the session does not get persisted to the database immediately. It takes around 30 sec for it to happen . Any other setting I need to add inorder that it saves immediately so that

Re: Tomcat 6.0 GZIP Compression not working for large js files

2011-01-14 Thread Ran Berenfeld
Thank you very much ! indeed, it was that sendFile feature. I disabled it by setting sendFileSize to -1 in the default servlet (and I guess disabling it useSendfile=false would be the same) after disabling this sendfile feature, all js files, small and large, are compressed correctly. it's a pity

how to start 1 to n daemon threads at deploy time

2011-01-14 Thread alexis
Hi, im recently suscribed to the list and my apologies if this topic has been treated before, if so, please point me to those threads :) I have an application running as daemon, this application handles n queue managers (one per thread) reading those queues from a database. once an item is

Re: how to start 1 to n daemon threads at deploy time

2011-01-14 Thread Pid
On 1/14/11 3:48 PM, alexis wrote: Hi, im recently suscribed to the list and my apologies if this topic has been treated before, if so, please point me to those threads :) I have an application running as daemon, this application handles n queue managers (one per thread) reading those

RE: how to start 1 to n daemon threads at deploy time

2011-01-14 Thread Caldarale, Charles R
From: alexis [mailto:alz...@gmail.com] Subject: how to start 1 to n daemon threads at deploy time as soon tomcat is started and my webapp deployed, start n threads as daemons waiting for commands. is this possible? Step 1: read the servlet spec. Step 2: implement a ServletContextListener

Re: how to start 1 to n daemon threads at deploy time

2011-01-14 Thread alexis
Great, thanks to all that answered. regards On Jan 14, 2011, at 12:54 PM, Caldarale, Charles R wrote: From: alexis [mailto:alz...@gmail.com] Subject: how to start 1 to n daemon threads at deploy time as soon tomcat is started and my webapp deployed, start n threads as daemons waiting

Re: Dedicated thread for Tomcat Manager

2011-01-14 Thread Alec Swan
Mark and Charles, thank you for the recommendations. Which approach - separate Connector or JMX access - is more appropriate for production environments? Could you briefly describe pros and cons of each of them? Thanks! Alec On Thu, Jan 13, 2011 at 4:30 PM, Caldarale, Charles R

Re: Dedicated thread for Tomcat Manager

2011-01-14 Thread André Warnier
Alec Swan wrote: Mark and Charles, thank you for the recommendations. Which approach - separate Connector or JMX access - is more appropriate for production environments? Could you briefly describe pros and cons of each of them? My opinion was not asked, but I would tend to say that the

RE: Dedicated thread for Tomcat Manager

2011-01-14 Thread Caldarale, Charles R
From: André Warnier [mailto:a...@ice-sa.com] Subject: Re: Dedicated thread for Tomcat Manager My opinion was not asked, but I would tend to say that the solution with a separate Connector sounds so evidently simple in the principle (once it has been pointed out by the clever guy) that it

Re: Dedicated thread for Tomcat Manager

2011-01-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Alec, On 1/14/2011 1:04 PM, Alec Swan wrote: Mark and Charles, thank you for the recommendations. Which approach - separate Connector or JMX access - is more appropriate for production environments? Could you briefly describe pros and cons of

Applet, session-ID - TC 6 vs. TC7

2011-01-14 Thread spring
Hi, I have a web app where the user logs in and starts an applet which uploads a file and then opens a page in the browser. I use Java 1.6_16. When I do this in TC 6.0.13 the session-ID stays the same after login. Fine. When I do this in TC 7.0.5 the session-ID changes when the applet starts to

How to configure Tomcat/Coyote to deliver a P3P Header on Every Request

2011-01-14 Thread Joseph Morgan
Using Tomcat 6.0.13, how do we configure the Coyote server to deliver a P3P header on every request, even if for a JavaScript, Image, CSS, etc? Joseph M. Morgan Ignite Sales, Inc. Director of Technology and Operations Office 972-789-5523 Email:

Re: Dedicated thread for Tomcat Manager

2011-01-14 Thread André Warnier
Caldarale, Charles R wrote: From: André Warnier [mailto:a...@ice-sa.com] Subject: Re: Dedicated thread for Tomcat Manager My opinion was not asked, but I would tend to say that the solution with a separate Connector sounds so evidently simple in the principle (once it has been pointed out by

RE: How to configure Tomcat/Coyote to deliver a P3P Header on Every Request

2011-01-14 Thread Caldarale, Charles R
From: Joseph Morgan [mailto:joseph.mor...@ignitesales.com] Subject: How to configure Tomcat/Coyote to deliver a P3P Header on Every Request Using Tomcat 6.0.13 So what's your upgrade schedule? Once a decade? how do we configure the Coyote server to deliver a P3P header on every

Re: How to configure Tomcat/Coyote to deliver a P3P Header on Every Request

2011-01-14 Thread André Warnier
Joseph Morgan wrote: Using Tomcat 6.0.13, how do we configure the Coyote server to deliver a P3P header on every request, even if for a JavaScript, Image, CSS, etc? I don't know about the Coyote server, and it won't work for a request, but if you are talking about a Tomcat webapp and its

Re: Dedicated thread for Tomcat Manager

2011-01-14 Thread Alec Swan
Thank you everybody who contributed for explaining the pros and cons. We will go with the Connector approach. I am assuming this new connector will serve all webapps, including Tomcat manager. Or can I configure it to serve just Tomcat Manager? Thanks On Fri, Jan 14, 2011 at 2:02 PM, André

RE: Dedicated thread for Tomcat Manager

2011-01-14 Thread Caldarale, Charles R
From: Alec Swan [mailto:alecs...@gmail.com] Subject: Re: Dedicated thread for Tomcat Manager I am assuming this new connector will serve all webapps, including Tomcat manager. Correct. You could implement a Valve at the Engine or Host level to prevent its use for other webapps, but if

Re: Applet, session-ID - TC 6 vs. TC7

2011-01-14 Thread Pid
On 1/14/11 8:12 PM, spr...@gmx.eu wrote: Hi, I have a web app where the user logs in and starts an applet which uploads a file and then opens a page in the browser. I use Java 1.6_16. When I do this in TC 6.0.13 the session-ID stays the same after login. Fine. When I do this in TC 7.0.5

RE: Applet, session-ID - TC 6 vs. TC7

2011-01-14 Thread spring
What are you using the session id for? I use form auth. Subsequent calls after a successful login in the same session are not authenticated again. This is standard I would say. Don't rely on the session id remaining the same. Then the applet has to know the user credentials and has to post to

sslHandshakeException

2011-01-14 Thread g f
Hello all, Not sure if this is the proper area to post but here goes. I have a debian os running Apache 2.2.16(debian) along with tomcat 6.0.29. I use mod_jk as well as mod_auth_kerb module for apache. I use common access cards and allow apache kerb module to handle all auth and it works just

SOLVED: Dedicated thread for Tomcat Manager

2011-01-14 Thread Alec Swan
Thank you for the good pointers. I consider my question answered and close this thread. On Fri, Jan 14, 2011 at 2:47 PM, Caldarale, Charles R chuck.caldar...@unisys.com wrote: From: Alec Swan [mailto:alecs...@gmail.com] Subject: Re: Dedicated thread for Tomcat Manager I am assuming this

Re: Applet, session-ID - TC 6 vs. TC7

2011-01-14 Thread Pid
On 1/14/11 10:13 PM, spr...@gmx.eu wrote: What are you using the session id for? I use form auth. Subsequent calls after a successful login in the same session are not authenticated again. This is standard I would say. Are you unable to retrieve the new session id? Don't rely on the

Re: How to configure Tomcat/Coyote to deliver a P3P Header on Every Request

2011-01-14 Thread Ronald Klop
We do this with a filter mapped to /*. Ronald. Op vrijdag, 14 januari 2011 21:32 schreef Joseph Morgan joseph.mor...@ignitesales.com: Using Tomcat 6.0.13, how do we configure the Coyote server to deliver a P3P header on every request, even if for a JavaScript, Image, CSS, etc?

Tomcat 7.06 HttpRequestServlet.getPart() returns null in servlet

2011-01-14 Thread JASON HOLT
As JSF 2.0 doesn't include a file upload component, I need to write my own multipart/form-data process. According to the information in bug # 49711, I cannot do this with a filter in Tomcat 7, but I can in a servlet. However, using the following servlet, HttpRequestServlet.getPart() returns

Re: sslHandshakeException

2011-01-14 Thread Pid
On 1/14/11 10:31 PM, g f wrote: Hello all, Not sure if this is the proper area to post but here goes. I have a debian os running Apache 2.2.16(debian) along with tomcat 6.0.29. I use mod_jk as well as mod_auth_kerb module for apache. I use common access cards and allow apache kerb module to

RE: Applet, session-ID - TC 6 vs. TC7

2011-01-14 Thread spring
Are you unable to retrieve the new session id? This is all done magically by the Applet-Java-Runtime. Programmatic login is now possible in Servlet 3.0, would this help? I know, but the applet does NOT know the credentials.

tomcat 6.0.29 webdav servlet support for file uploading with browser

2011-01-14 Thread Al eeeewq
I started the tomcat webdav servlet and everything works fine. I can both explore and write to the directory with a webdav client as 'DAV explorer'. However when using a browser as firefox or chrome I could explore the directory and download as usual, but I don't know how I would be able to