Re: authentication fail (JNDI Realm with Tomcat )

2010-11-29 Thread long hong
Yes you are right. And I find I misused the 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: ldap://172.16.55.167:3268"; debug="99" referrals="follow"

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 6.0.20,

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

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 ; the webapp name is never part of any in web.xml. - Chuck THIS COMMUNICATION MAY CO

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: Login Page for Examples Username

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 ) > > > Entire Application > /fs/* You probably want just /* in the above ; what you have now protects only the path /fs *under* your webapp. (Either that, or your is very wro

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= "c

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

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-

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 bind

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-log

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 : http://paste

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: [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

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: users-h...@tomcat.a

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

[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 for

[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 for

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 o

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 under

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 w

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

(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 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. > > https://issues.apache.org/bugzi

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 wrote: From: André Warnier Subject: Re: [Tomcat] Can I see if 'maxThreads' is exceeded? To: "Tomcat Users List" Date: Monday, November 29, 2010, 6:21 AM Mark Thomas wrote: > On 29/11/2010 13:57, sol m

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 (u

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

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 Tomca

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 wrote: From: sol myr Subject: [Tomcat] Can I see if 'maxThreads' is exceeded? To: users@tomcat.apache.org Date: Monday, November 29, 2010, 5:57 AM

[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 t

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 >>connec

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. https://issues.apache.org/bugzilla/show_bug.cgi?id=

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" se

Re: Session replication with multicast

2010-11-29 Thread Guillaume HERAIL
I found my mistake, i forgot to add in my web.xml. Anyway, i've updated tomcat on my boxes. Thanks, 2010/11/27 Christopher Schultz : > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Guillaume, > > (Apologies for the top-post, but these are general comments) > > I don't know anything about T