Re: Session replication with multicast

2010-11-29 Thread Guillaume HERAIL
I found my mistake, i forgot to add distributable / in my web.xml. Anyway, i've updated tomcat on my boxes. Thanks, 2010/11/27 Christopher Schultz ch...@christopherschultz.net: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Guillaume, (Apologies for the top-post, but these are general

Re: Tomcat Jakarta 1.2.31 ISAPI Reconnector incorrectly sending Content body with HTTP 304 Status

2010-11-29 Thread Tim Whittington
This is the first time I ask a question here, so I hope I do it right. I am using Tomcat 7.0.5 (with Tomcat Native 1.1.20 library) on Windows Server 2003 (32-Bit) with Java 1.6.0_22, and I have configured IIS6.0 to use the Jakarta 1.2.31 ISAPI Redirector (with enable_chunked_encoding set to

Re: Tomcat Jakarta 1.2.31 ISAPI Reconnector incorrectly sending Content body with HTTP 304 Status

2010-11-29 Thread Tim Whittington
OK, after a bit more investigation I can replicate your responses: One is a 304 response with a response.flushBuffer() or similar, and the other is a 304 response with an implicit close. I've tested a fix to the ISAPI Redirector to resolve this.

Re: Tomcat 6 / Mysql / connection Pool isValid Method Error

2010-11-29 Thread EmCpam
After applying modifications for using good libraries, it works very well. Thanks a lot for your explanation and solution. Emmanuel. Connection.isValid() is a JDBC4 method and hence is only available in Java 6. Tomcat 6 has to work with Java 5 and therefore ships with a database connection

[Tomcat] Can I see if 'maxThreads' is exceeded?

2010-11-29 Thread sol myr
Hi, I'm new to Tomcat management, and would appreciate help on the 'maxThreads' property of the Http Connector: 1) Please tell if I understood correctly: Suppose I configure 'maxThreads=100', and 130 users try to simultaneously access my Tomcat - then 100 users will be served immediately, and

Re: [Tomcat] Can I see if 'maxThreads' is exceeded?

2010-11-29 Thread sol myr
Sorry, correction: on section 2, I meant to say e.g. 30 on the above example (wrote '50' by mistake). Thanks again. --- On Mon, 11/29/10, sol myr solmy...@yahoo.com wrote: From: sol myr solmy...@yahoo.com Subject: [Tomcat] Can I see if 'maxThreads' is exceeded? To: users@tomcat.apache.org Date:

Re: [Tomcat] Can I see if 'maxThreads' is exceeded?

2010-11-29 Thread Mark Thomas
On 29/11/2010 13:57, sol myr wrote: Hi, I'm new to Tomcat management, and would appreciate help on the 'maxThreads' property of the Http Connector: 1) Please tell if I understood correctly: Suppose I configure 'maxThreads=100', and 130 users try to simultaneously access my Tomcat -

Re: [Tomcat] Can I see if 'maxThreads' is exceeded?

2010-11-29 Thread André Warnier
Mark Thomas wrote: On 29/11/2010 13:57, sol myr wrote: Hi, I'm new to Tomcat management, and would appreciate help on the 'maxThreads' property of the Http Connector: 1) Please tell if I understood correctly: Suppose I configure 'maxThreads=100', and 130 users try to simultaneously access my

Session Invalidate not working on HTTPS ( Tomcat 6.0.29 )

2010-11-29 Thread Andrea Corti
Hi, in order to avoid session fixation in the login phase of our application we have to invalidate the session. But we found the issue reported in the following bug (marked as solved) related to Tomcat .0.28: https://issues.apache.org/bugzilla/show_bug.cgi?id=49598 I'm using tomcat 6.0.29

Re: [Tomcat] Can I see if 'maxThreads' is exceeded?

2010-11-29 Thread sol myr
André and Mark - thanks very much for the quick replies. --- On Mon, 11/29/10, André Warnier a...@ice-sa.com wrote: From: André Warnier a...@ice-sa.com Subject: Re: [Tomcat] Can I see if 'maxThreads' is exceeded? To: Tomcat Users List users@tomcat.apache.org Date: Monday, November 29, 2010, 6:21

Re: Tomcat Jakarta 1.2.31 ISAPI Reconnector incorrectly sending Content body with HTTP 304 Status

2010-11-29 Thread Konstantin Preißer
Hello, OK, after a bit more investigation I can replicate your responses: One is a 304 response with a response.flushBuffer() or similar, and the other is a 304 response with an implicit close. I've tested a fix to the ISAPI Redirector to resolve this.

(Tomcat) Does NIO connector make a difference outside of 'Comet' ?

2010-11-29 Thread sol myr
Hi, I've just started looking into the NIO Connector. And I see why it's great to combine NIO+Comet... But does it makes any difference outside of Comet? 1) Namely, if I only have old-fashioned Servlets (not a CometProcessor) - will it improve performance to use NIO connector (versus the good

Re: (Tomcat) Does NIO connector make a difference outside of 'Comet' ?

2010-11-29 Thread Mark Thomas
On 29/11/2010 16:23, sol myr wrote: Hi, I've just started looking into the NIO Connector. And I see why it's great to combine NIO+Comet... But does it makes any difference outside of Comet? Yes. 1) Namely, if I only have old-fashioned Servlets (not a CometProcessor) - will it improve

Re: Session Invalidate not working on HTTPS ( Tomcat 6.0.29 )

2010-11-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Andrea, On 11/29/2010 9:37 AM, Andrea Corti wrote: In order to avoid session fixation in the login phase of our application we have to invalidate the session. As you may have noted, Tomcat has implemented this behavior and you shouldn't have to

Re: (Tomcat) Does NIO connector make a difference outside of 'Comet' ?

2010-11-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Sol, On 11/29/2010 11:23 AM, sol myr wrote: I've just started looking into the NIO Connector. And I see why it's great to combine NIO+Comet... But does it makes any difference outside of Comet? Some data: please read the initial slides to

Re: Got error when add webserver during load test.

2010-11-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Pid, On 11/27/2010 5:07 PM, Pid wrote: On 27/11/2010 14:22, Suchada Pakapongpan wrote: I use Centos5.4, tomcat5-5.5.23, Apache2.2.3 (by yum install httpd httpd-devel tomcat tomcat5-webapps tomcat5-admin-webapps) That's, potentially, an old

[OT] ThreadLocal fixes in log4j|commons-logging

2010-11-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, At some point, someone (markt?) mentioned that, as a result of Tomcat's memory leak detection capabilities, either log4j or commons-logging (or both) had fixed at least one ThreadLocal issue. I was wondering if someone could post a reference

[OT] ThreadLocal fixes in log4j|commons-logging

2010-11-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, At some point, someone (markt?) mentioned that, as a result of Tomcat's memory leak detection capabilities, either log4j or commons-logging (or both) had fixed at least one ThreadLocal issue. I was wondering if someone could post a reference

Re: [OT] ThreadLocal fixes in log4j|commons-logging

2010-11-29 Thread Mark Thomas
On 29/11/2010 17:29, Christopher Schultz wrote: All, At some point, someone (markt?) mentioned that, as a result of Tomcat's memory leak detection capabilities, either log4j or commons-logging (or both) had fixed at least one ThreadLocal issue. I was wondering if someone could post a

Re: [OT] ThreadLocal fixes in log4j|commons-logging

2010-11-29 Thread Mark Thomas
On 29/11/2010 17:37, Mark Thomas wrote: The commons logging issue was an open JAR file: Doh. I meant log4j. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail:

Re: [OT] Possible ThreadLocal memory leak in Apache Cocoon 2.1.11

2010-11-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Michael, On 11/28/2010 10:41 AM, Michael Ludwig wrote: Christopher Schultz schrieb am 27.11.2010 um 08:18 (-0500): We are using Cocoon with Xalan and Xerces: xalan-2.7.1.jar xercesImpl-2.9.1.jar Xalan is still stick in a 3-year rut with no

Re: Tomcat Jakarta 1.2.31 ISAPI Reconnector incorrectly sending Content body with HTTP 304 Status

2010-11-29 Thread Konstantin Preißer
At the moment I can't reproduce this issue any more. It happened some days ago, when I was viewing the webapp by Firefox and pressed F5 several times, when I noticed that Firefox sometimes displayed HTTP Headers as plain text. I used a network sniffer to see what the responses looked

Re: Session replication with multicast

2010-11-29 Thread Filip Hanik - Dev Lists
On 11/26/2010 06:36 AM, Guillaume HERAIL wrote: Hi, OS : Debian lenny Tomcat : 7.0.2 JRE : 1.6.0_21 I have a problem trying to clusterize two tomcat on two different boxes. I want to use the MemberShip's argument bind to tell to tomcat wich interface to use but i get an exception :

Re: [OT] ThreadLocal fixes in log4j|commons-logging

2010-11-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mark, On 11/29/2010 12:37 PM, Mark Thomas wrote: On 29/11/2010 17:29, Christopher Schultz wrote: All, At some point, someone (markt?) mentioned that, as a result of Tomcat's memory leak detection capabilities, either log4j or commons-logging (or

Re: Session replication with multicast

2010-11-29 Thread Filip Hanik - Dev Lists
alternatively, try to add -Djava.net.preferIPv4Stack=true to your JVM args On 11/26/2010 06:36 AM, Guillaume HERAIL wrote: Hi, OS : Debian lenny Tomcat : 7.0.2 JRE : 1.6.0_21 I have a problem trying to clusterize two tomcat on two different boxes. I want to use the MemberShip's argument

Re: (Tomcat) Does NIO connector make a difference outside of 'Comet' ?

2010-11-29 Thread Michael Ludwig
Mark Thomas schrieb am 29.11.2010 um 16:34 (+): On 29/11/2010 16:23, sol myr wrote: I've just started looking into the NIO Connector. And I see why it's great to combine NIO+Comet... But does it makes any difference outside of Comet? Yes. 1) Namely, if I only have old-fashioned

Re: [Tomcat] Can I see if 'maxThreads' is exceeded?

2010-11-29 Thread Sylvain Laurent
On 29 nov. 2010, at 15:01, Mark Thomas wrote: On 29/11/2010 13:57, sol myr wrote: Hi, I'm new to Tomcat management, and would appreciate help on the 'maxThreads' property of the Http Connector: 1) Please tell if I understood correctly: Suppose I configure 'maxThreads=100', and 130

authentication fail (JNDI Realm with Tomcat )

2010-11-29 Thread long hong
Hi, all! I am new to Tomcat. I am recently doing a sample app of authentication using tomcat + JNDI + Light Weight ActiveDirectory. I wanted to log into the web app with admin but failed several times with no error messages in my eclipse console... I had a user named admin with the dn=

RE: authentication fail (JNDI Realm with Tomcat )

2010-11-29 Thread Caldarale, Charles R
From: long hong [mailto:longhong1...@gmail.com] Subject: authentication fail (JNDI Realm with Tomcat ) security-constraint web-resource-collection web-resource-nameEntire Application/web-resource-name url-pattern/fs/*/url-pattern You probably want just /* in the above

Re: authentication fail (JNDI Realm with Tomcat )

2010-11-29 Thread long hong
Sorry for not mention this: well, the web root context of my web app is /fs. My login pages are in webcontent/login(equals to /fs/login). I just used the /security/protected/*.jsp from tomcat examples. The source code of the login page is: html head titleLogin Page for Examples/title body

RE: authentication fail (JNDI Realm with Tomcat )

2010-11-29 Thread Caldarale, Charles R
From: long hong [mailto:longhong1...@gmail.com] Subject: Re: authentication fail (JNDI Realm with Tomcat ) the web root context of my web app is /fs. As I suspected. Again, remove the /fs from the url-pattern; the webapp name is never part of any url-pattern in web.xml. - Chuck THIS

RE: (Tomcat) Does NIO connector make a difference outside of 'Comet' ?

2010-11-29 Thread Caldarale, Charles R
From: Michael Ludwig [mailto:mil...@gmx.de] Subject: Re: (Tomcat) Does NIO connector make a difference outside of 'Comet' ? can we say that: (a) blocking IO requires one thread (or, in some other server environments, one process) per socket Well, sort of. The actual requirement is one

Class get deleted at run time

2010-11-29 Thread Sandip Hirwale
Hello All I am new to tomcat , i got following error at runtime java.lang.ClassNotFoundException when I Build my application all the classes are present in the web/WEB-INF/classes/ directory when I run application all the classes get deleted. why this happening? i Am usnig tomcat

Re: authentication fail (JNDI Realm with Tomcat )

2010-11-29 Thread long hong
Yes you are right. And I find I misused the user-data-constraint element which prevented me from accessing the login page. I have changed it and can now access the login page. I mimic the realm in tomcat wiki and wrote the bellow: Realm authentication=simple