From usershking@example.net Tue Apr 01 00:07:12 2008 Return-Path: <usershking@example.net> Delivered-To: hking@example.net Received: (qmail 12724 invoked from network); 1 Apr 2008 00:07:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 Apr 2008 00:07:12 -0000 Received: (qmail 47506 invoked by uid 500); 1 Apr 2008 00:06:59 -0000 Delivered-To: hking@example.net Received: (qmail 47484 invoked by uid 500); 1 Apr 2008 00:06:59 -0000 Mailing-List: contact hking@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:hking@example.net> List-Unsubscribe: <mailto:hking@example.net> List-Post: <mailto:hking@example.net> List-Id: <users.tomcat.apache.org> Reply-To: "Tomcat Users List" <hking@example.net> Delivered-To: mailing list hking@example.net Received: (qmail 47473 invoked by uid 99); 1 Apr 2008 00:06:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 31 Mar 2008 17:06:59 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [83.161.120.155] (HELO virtual.halosg.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Apr 2008 00:06:18 +0000 Received: (qmail 7679 invoked from network); 31 Mar 2008 18:55:26 -0500 Received: from 72-19-171-38.static.mesanetworks.net (HELO ?83.161.120.155?) (83.161.120.155) by halosg.com with SMTP; 31 Mar 2008 18:55:26 -0500 Message-ID: <hking@example.net> Date: Mon, 31 Mar 2008 18:06:46 -0600 From: Filip Hanik - Dev Lists <hking@example.net> User-Agent: Thunderbird 83.161.120.155 (Windows/20080213) MIME-Version: 1.0 To: Tomcat Users List <hking@example.net> Subject: Re: Cluster Memory Leak - ClusterData and LinkObject classes References: <hking@example.net> <hking@example.net> <hking@example.net> <21058284.48401206959892221.JavaMail.tomcat@localhost> <hking@example.net> <hking@example.net> In-Reply-To: <hking@example.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org David Rees wrote: > On Mon, Mar 31, 2008 at 12:52 PM, Rainer Jung <hking@example.net> wrote: > >> Ronald Klop schrieb: >> >>> See my previous mail about send/receive buffers filling because Ack >>> >> > wasn't read by FastAsyncSender. >> > The option waitForAck="true" did the trick for me. But for >> > FastAsyncSender you should set sendAck="false" on the receiving side. >> >> Usually the cluster looks at the receiver setting for waitForAck and >> then sets the senders sendAck to the same value. So in theory the >> problem you observed should not happen. >> > > I've got a cluster in my test lab with the following configuration on 5.5.26: > > <Cluster className="org.apache.catalina.cluster.tcp.SimpleTcpCluster"/> > > Looking at /manager/jmxproxy?qry=*:* I see the same thing on both > nodes (extra info snipped for brevity): > > Name: Standalone:type=ClusterSender,host=www.example.local > modelerType: org.apache.catalina.cluster.tcp.ReplicationTransmitter > info: ReplicationTransmitter/3.0 > replicationMode: fastasyncqueue > ackTimeout: 15000 > autoConnect: false > waitForAck: true > > Name: Standalone:type=IDataSender,host=www.example.local,senderAddress=83.161.120.155,senderPort=8015 > modelerType: org.apache.catalina.cluster.tcp.FastAsyncSocketSender > info: FastAsyncSocketSender/3.1 > waitForAck: false > > Name: Standalone:type=ClusterReceiver,host=www.example.local > modelerType: org.apache.catalina.cluster.tcp.SocketReplicationListener > info: SocketReplicationListener/1.3 > sendAck: true > those settings are no good. waitForAck and sendAck must have the same value everywhere even if it seems to work fine, you're asking for trouble, at some point, you'll fill up socket buffers etc Filip > Is this expected? Replication appears to be functioning fine. The > Queues aren't building up (but I haven't been able to duplicate the > Queue build up issue in my test lab). > > -Dave > > --------------------------------------------------------------------- > To start a new topic, e-mail: hking@example.net > To unsubscribe, e-mail: hking@example.net > For additional commands, e-mail: hking@example.net > > > > --------------------------------------------------------------------- To start a new topic, e-mail: hking@example.net To unsubscribe, e-mail: hking@example.net For additional commands, e-mail: hking@example.net From usershking@example.net Tue Apr 01 00:11:38 2008 Return-Path: <usershking@example.net> Delivered-To: hking@example.net Received: (qmail 14901 invoked from network); 1 Apr 2008 00:11:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 Apr 2008 00:11:38 -0000 Received: (qmail 53763 invoked by uid 500); 1 Apr 2008 00:11:26 -0000 Delivered-To: hking@example.net Received: (qmail 53739 invoked by uid 500); 1 Apr 2008 00:11:26 -0000 Mailing-List: contact hking@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:hking@example.net> List-Unsubscribe: <mailto:hking@example.net> List-Post: <mailto:hking@example.net> List-Id: <users.tomcat.apache.org> Reply-To: "Tomcat Users List" <hking@example.net> Delivered-To: mailing list hking@example.net Received: (qmail 53727 invoked by uid 99); 1 Apr 2008 00:11:26 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 31 Mar 2008 17:11:26 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of hking@example.net designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO an-out-0708.google.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Apr 2008 00:10:45 +0000 Received: by an-out-0708.google.com with SMTP id b2so542832ana.95 for <hking@example.net>; Mon, 31 Mar 2008 17:10:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=3GV4apEHVKXDbeSftn7N+BhkFCgwhS+TSUZt1BP3qs4=; b=PCej5WgVq+WCgtCDGaj7S6llmJBcJC9prC4sPK7/vG0KNdfYQNhCiupGK8P2spipgLMcg7hfcFMJQb+5vRL1kab/xxFPQo+RFqud/aTLNkRSAvbVthFQdV20EamX6MW/eOGulOd1oMoQBOWdXKFbshOhD/04tOWr54dx4hMtMEQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=qA4xPsudkKVn18+v7MFYchdy08/a00MMgBgLZlHvKkhawUcRxHSXEPrWqB2S8ZkD1bQlYZqPKK5X2rgMuy8W3WdFqQVkKFXWRasVlwUzzFPXmfexH3RTrbRY6Z7Gyuzi9OkiPfP0pSjsju08qRim6vFHBMAj2SDY/VFs1HaGt6A= Received: by 83.161.120.155 with SMTP id s15mr16111024anf.58.1207008653755; Mon, 31 Mar 2008 17:10:53 -0700 (PDT) Received: by 83.161.120.155 with HTTP; Mon, 31 Mar 2008 17:10:53 -0700 (PDT) Message-ID: <hking@example.net> Date: Mon, 31 Mar 2008 17:10:53 -0700 From: "David Rees" <hking@example.net> To: "Tomcat Users List" <hking@example.net> Subject: Re: Cluster Memory Leak - ClusterData and LinkObject classes In-Reply-To: <hking@example.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <hking@example.net> <hking@example.net> <hking@example.net> <21058284.48401206959892221.JavaMail.tomcat@localhost> <hking@example.net> <hking@example.net> <hking@example.net> X-Virus-Checked: Checked by ClamAV on apache.org On Mon, Mar 31, 2008 at 5:06 PM, Filip Hanik - Dev Lists <hking@example.net> wrote: > David Rees wrote: > > I've got a cluster in my test lab with the following configuration on 5.5.26: > > > > <Cluster className="org.apache.catalina.cluster.tcp.SimpleTcpCluster"/> > > > > Looking at /manager/jmxproxy?qry=*:* I see the same thing on both > > nodes (extra info snipped for brevity): > > > > Name: Standalone:type=ClusterSender,host=www.example.local > > modelerType: org.apache.catalina.cluster.tcp.ReplicationTransmitter > > info: ReplicationTransmitter/3.0 > > replicationMode: fastasyncqueue > > ackTimeout: 15000 > > autoConnect: false > > waitForAck: true > > > > Name: Standalone:type=IDataSender,host=www.example.local,senderAddress=83.161.120.155,senderPort=8015 > > modelerType: org.apache.catalina.cluster.tcp.FastAsyncSocketSender > > info: FastAsyncSocketSender/3.1 > > waitForAck: false > > > > Name: Standalone:type=ClusterReceiver,host=www.example.local > > modelerType: org.apache.catalina.cluster.tcp.SocketReplicationListener > > info: SocketReplicationListener/1.3 > > sendAck: true > > > > those settings are no good. waitForAck and sendAck must have the same > value everywhere > even if it seems to work fine, you're asking for trouble, at some point, > you'll fill up socket buffers etc This is with the default cluster configuration. So should I open a bug for this, or are you already working on it? IMO, the Cluster should default to sane defaults. How does the cluster avoid filling up queues when acks are not being sent? Does it rely on cluster membership? So in theory if a cluster member is hung, it will drop it's queue after the mcastTimeOut is reached? -Dave --------------------------------------------------------------------- To start a new topic, e-mail: hking@example.net To unsubscribe, e-mail: hking@example.net For additional commands, e-mail: hking@example.net From usershking@example.net Tue Apr 01 00:37:36 2008 Return-Path: <usershking@example.net> Delivered-To: hking@example.net Received: (qmail 34028 invoked from network); 1 Apr 2008 00:37:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 Apr 2008 00:37:36 -0000 Received: (qmail 81272 invoked by uid 500); 1 Apr 2008 00:37:26 -0000 Delivered-To: hking@example.net Received: (qmail 80934 invoked by uid 500); 1 Apr 2008 00:37:25 -0000 Mailing-List: contact hking@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:hking@example.net> List-Unsubscribe: <mailto:hking@example.net> List-Post: <mailto:hking@example.net> List-Id: <users.tomcat.apache.org> Reply-To: "Tomcat Users List" <hking@example.net> Delivered-To: mailing list hking@example.net Received: (qmail 80923 invoked by uid 99); 1 Apr 2008 00:37:25 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 31 Mar 2008 17:37:25 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [83.161.120.155] (HELO virtual.halosg.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Apr 2008 00:36:34 +0000 Received: (qmail 7825 invoked from network); 31 Mar 2008 19:25:50 -0500 Received: from 72-19-171-38.static.mesanetworks.net (HELO ?83.161.120.155?) (83.161.120.155) by halosg.com with SMTP; 31 Mar 2008 19:25:50 -0500 Message-ID: <hking@example.net> Date: Mon, 31 Mar 2008 18:37:10 -0600 From: Filip Hanik - Dev Lists <hking@example.net> User-Agent: Thunderbird 83.161.120.155 (Windows/20080213) MIME-Version: 1.0 To: Tomcat Users List <hking@example.net> Subject: Re: Cluster Memory Leak - ClusterData and LinkObject classes References: <hking@example.net> <hking@example.net> <hking@example.net> <hking@example.net> <hking@example.net> <hking@example.net> <hking@example.net> In-Reply-To: <hking@example.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org David Rees wrote: > On Mon, Mar 31, 2008 at 4:48 PM, Filip Hanik - Dev Lists > <hking@example.net> wrote: > >> David Rees wrote: >> > One problem I've intermittently had with clustering is that after a >> > Tomcat restart (we shut down one node and it immediately restarts, >> > generally within 30 seconds), they two nodes don't consistently sync >> > up. (The restarted node would not have the sessions from the other >> > node, but new sessions would get replicated over) I have to think that >> > this may be related to this issue. >> >> I believe you have to wait at least 30seconds before you bring up the >> other node. >> especially, if you are using mcastDropTime="30000" (could be the >> default?) then your nodes wont even realize this one is gone, and when >> you bring it back up within 30seconds, to the other nodes its like >> nothing ever changed. >> > > OK, I'll have to try to figure out how to keep Tomcat from starting up > until 30 seconds have passed, then. Seems like this type of limitation > deserved a big fat warning in the Cluster HOW-TO? Do you think that > this could trigger the Queue build-up issue? > my guess is no, queue build up would be somewhere else. > >> As rainer mentioned, if you are just starting to use cluster, switch to >> TC6 to avoid the migration you will have to make. TC6 also handles this >> scenario regardless of what you set your droptime to >> > > I'd like to migration to TC6, but that also means that we have to > perform full validation testing which takes time and effort... Not to > mention that it seems that TC6 has only recently stabilized compared > to TC5. But it's good to know that TC6 resolves this issue. Can you > explain the features in TC6 which prevents this from being an issue? > in TC6 a member/node receives a unique ID each time the JVM starts up and the member is created in TC5.5 a member is identified by IP:listenPort, and that is the same each time you restart a tomcat, in TC6, it also uses the unique ID, so in tomcat 6, it does recognize the difference between a node process restarted vs a node just got disconnected from the network Filip > -Dave > > --------------------------------------------------------------------- > To start a new topic, e-mail: hking@example.net > To unsubscribe, e-mail: hking@example.net > For additional commands, e-mail: hking@example.net > > > > --------------------------------------------------------------------- To start a new topic, e-mail: hking@example.net To unsubscribe, e-mail: hking@example.net For additional commands, e-mail: hking@example.net From usershking@example.net Tue Apr 01 00:39:19 2008 Return-Path: <usershking@example.net> Delivered-To: hking@example.net Received: (qmail 34499 invoked from network); 1 Apr 2008 00:39:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 Apr 2008 00:39:19 -0000 Received: (qmail 85841 invoked by uid 500); 1 Apr 2008 00:39:07 -0000 Delivered-To: hking@example.net Received: (qmail 85822 invoked by uid 500); 1 Apr 2008 00:39:07 -0000 Mailing-List: contact hking@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:hking@example.net> List-Unsubscribe: <mailto:hking@example.net> List-Post: <mailto:hking@example.net> List-Id: <users.tomcat.apache.org> Reply-To: "Tomcat Users List" <hking@example.net> Delivered-To: mailing list hking@example.net Received: (qmail 85811 invoked by uid 99); 1 Apr 2008 00:39:07 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 31 Mar 2008 17:39:07 -0700 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of hking@example.net designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO kuber.nabble.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Apr 2008 00:38:17 +0000 Received: from isper.nabble.com ([83.161.120.155]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from <hking@example.net>) id 1JgUWL-0001W4-6m for hking@example.net; Mon, 31 Mar 2008 17:38:37 -0700 Message-ID: <hking@example.net> Date: Mon, 31 Mar 2008 17:38:37 -0700 (PDT) From: Sparecreative <hking@example.net> To: hking@example.net Subject: Re: ServletContextListener Query In-Reply-To: <hking@example.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: hking@example.net References: <hking@example.net> <hking@example.net> <hking@example.net> X-Virus-Checked: Checked by ClamAV on apache.org Len, you are a genius (in my kitchen anyway). That's exactly the issue. I just checked. I had it set to reload during development, but we don't need it anymore. Thanks again. Z. Len Popp wrote: > > The key is this line: > INFO: Reloading this Context has started > It looks like the webapp is started, and then *immediately* it's > re-loaded & started again. Reloading happens automatically if the > app's <Context> has the attribute reloadable=true and the app is > modified. It could be that the timestamp on one of the app's files > (.war, .jsp, etc.) is messed up, or the time is set wrong on the > server. > If you don't want automatic reloading to happen at all, remove > reloadable=true from the <Context> element. > -- > Len > > -- View this message in context: http://www.nabble.com/ServletContextListener-Query-tp16368464p16401690.html Sent from the Tomcat - User mailing list hking@example.net. --------------------------------------------------------------------- To start a new topic, e-mail: hking@example.net To unsubscribe, e-mail: hking@example.net For additional commands, e-mail: hking@example.net From usershking@example.net Tue Apr 01 03:56:28 2008 Return-Path: <usershking@example.net> Delivered-To: hking@example.net Received: (qmail 28154 invoked from network); 1 Apr 2008 03:56:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 Apr 2008 03:56:28 -0000 Received: (qmail 21255 invoked by uid 500); 1 Apr 2008 03:56:14 -0000 Delivered-To: hking@example.net Received: (qmail 21228 invoked by uid 500); 1 Apr 2008 03:56:14 -0000 Mailing-List: contact hking@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:hking@example.net> List-Unsubscribe: <mailto:hking@example.net> List-Post: <mailto:hking@example.net> List-Id: <users.tomcat.apache.org> Reply-To: "Tomcat Users List" <hking@example.net> Delivered-To: mailing list hking@example.net Received: (qmail 21216 invoked by uid 99); 1 Apr 2008 03:56:14 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 31 Mar 2008 20:56:14 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [83.161.120.155] (HELO Mail2.Fiserv.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Apr 2008 03:55:33 +0000 X-IronPort-AV: E=Sophos;i="4.25,585,1199685600"; d="scan'208";a="16240821" Received: from unknown (HELO Mail4.Fiserv.com) ([83.161.120.155]) by Mail2.Fiserv.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 31 Mar 2008 22:55:39 -0500 Received: from PHLXCHFE1.Mail.Fiserv.net ([83.161.120.155]) by Mail4.Fiserv.com (Switch-3.3.0/Switch-3.3.0) with ESMTP id m313sx4l029142 for <hking@example.net>; Mon, 31 Mar 2008 23:55:04 -0400 Received: from MKEXCHVS2.Mail.Fiserv.net ([83.161.120.155]) by PHLXCHFE1.Mail.Fiserv.net with Microsoft SMTPSVC6678462746); Mon, 31 Mar 2008 23:59:25 -0400 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: Bug 33594: ClassCastException compiling jsp (very infrequently happens) Date: Mon, 31 Mar 2008 22:55:19 -0500 Message-ID: <hking@example.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Bug 33594: ClassCastException compiling jsp (very infrequently happens) Thread-Index: AciTrDO4BdjJ+fJHTqqgFP+AT89R4g== From: "Harper, Brad" <hking@example.net> To: <hking@example.net> X-OriginalArrivalTime: 01 Apr 2008 03:59:25.0287 (UTC) FILETIME=[C66ED770:01C893AC] X-Virus-Checked: Checked by ClamAV on apache.org Hello: A problem just surfaced for us, which I've run down to this issue [https://issues.apache.org/bugzilla/show_bug.cgi?id=3D33594]. In our case, the problem presents when deploying the latest version of a webapp on Tomcat 5.5.9. The app was modified [including changes to the subject jsp] and tested successfully with Tomcat 5.5.23 [JDK 1.5.0_07]. I see that the Status of the subject issue is RESOLVED, with the Resolution set to INVALID [meaning 'not a bug']. It seems that a failure occurring unpredictably [no matter how infrequently] is a bug; and calling it INVALID suggests that the system is somehow being mis-used -- but without providing any specifics. And re-starting Tomcat pre-emptively doesn't seem to be a good permanent "fix", nor does it even solve our problem as it is occurring presently. Can anyone comment on the resolution, a solution, or even a work-around? [Organizational/operational issues prevent timely migration to Tomcat 5.5.23 at the customer site.] Thanks. Brad Harper hking@example.net --------------------------------------------------------------------- To start a new topic, e-mail: hking@example.net To unsubscribe, e-mail: hking@example.net For additional commands, e-mail: hking@example.net From usershking@example.net Tue Apr 01 04:16:40 2008 Return-Path: <usershking@example.net> Delivered-To: hking@example.net Received: (qmail 31244 invoked from network); 1 Apr 2008 04:16:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 Apr 2008 04:16:39 -0000 Received: (qmail 34563 invoked by uid 500); 1 Apr 2008 04:16:26 -0000 Delivered-To: hking@example.net Received: (qmail 34538 invoked by uid 500); 1 Apr 2008 04:16:26 -0000 Mailing-List: contact hking@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:hking@example.net> List-Unsubscribe: <mailto:hking@example.net> List-Post: <mailto:hking@example.net> List-Id: <users.tomcat.apache.org> Reply-To: "Tomcat Users List" <hking@example.net> Delivered-To: mailing list hking@example.net Received: (qmail 34527 invoked by uid 99); 1 Apr 2008 04:16:26 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 31 Mar 2008 21:16:26 -0700 X-ASF-Spam-Status: No, hits=-4.0 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [83.161.120.155] (HELO usea-naimss1.unisys.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Apr 2008 04:15:43 +0000 Received: from usea-nagw3.na.uis.unisys.com ([83.161.120.155]) by usea-naimss1 with InterScan Message Security Suite; Mon, 31 Mar 2008 23:18:13 -0500 Received: from usea-nagw3.na.uis.unisys.com ([83.161.120.155]) by usea-nagw3.na.uis.unisys.com with Microsoft SMTPSVC6678462746); Mon, 31 Mar 2008 23:15:53 -0500 Received: from usea-exch5.na.uis.unisys.com ([83.161.120.155]) by usea-nagw3.na.uis.unisys.com with Microsoft SMTPSVC6678462746); Mon, 31 Mar 2008 23:15:53 -0500 Received: from USEA-EXCH2.na.uis.unisys.com ([83.161.120.155]) by usea-exch5.na.uis.unisys.com with Microsoft SMTPSVC6678462746); Mon, 31 Mar 2008 23:15:52 -0500 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: Bug 33594: ClassCastException compiling jsp (very infrequently happens) Date: Mon, 31 Mar 2008 23:15:52 -0500 Message-ID: <hking@example.net> In-Reply-To: <hking@example.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Bug 33594: ClassCastException compiling jsp (very infrequently happens) Thread-Index: AciTrDO4BdjJ+fJHTqqgFP+AT89R4gAAQgTQ References: <hking@example.net> From: "Caldarale, Charles R" <hking@example.net> To: "Tomcat Users List" <hking@example.net> X-OriginalArrivalTime: 01 Apr 2008 04:15:52.0927 (UTC) FILETIME=[131CBEF0:01C893AF] X-Virus-Checked: Checked by ClamAV on apache.org > From: Harper, Brad [mailto:hking@example.net]=20 > Subject: Bug 33594: ClassCastException compiling jsp (very=20 > infrequently happens) >=20 > A problem just surfaced for us, which I've run down to this issue > [https://issues.apache.org/bugzilla/show_bug.cgi?id=3D33594]. In our > case, the problem presents when deploying the latest version=20 > of a webapp on Tomcat 5.5.9. This bug report was incorrectly filed against httpd over three years ago, closed immediately, and then reassigned to Tomcat *without* being reopened, so it's highly unlikely anyone has looked at it since then. It's doubtful there will be any action on it now, especially if the problem is not reproducible on a current level. (5.5.9 is also over three years old, so there's not really any excuse for not having moved up sometime in that period.) =20 You can browse Tomcat's change log, but a lot of code has gone in over the last three years: http://tomcat.apache.org/tomcat-5.5-doc/changelog.html - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. --------------------------------------------------------------------- To start a new topic, e-mail: hking@example.net To unsubscribe, e-mail: hking@example.net For additional commands, e-mail: hking@example.net From usershking@example.net Tue Apr 01 05:02:10 2008 Return-Path: <usershking@example.net> Delivered-To: hking@example.net Received: (qmail 42819 invoked from network); 1 Apr 2008 05:02:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 Apr 2008 05:02:10 -0000 Received: (qmail 65284 invoked by uid 500); 1 Apr 2008 05:01:58 -0000 Delivered-To: hking@example.net Received: (qmail 65259 invoked by uid 500); 1 Apr 2008 05:01:58 -0000 Mailing-List: contact hking@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:hking@example.net> List-Unsubscribe: <mailto:hking@example.net> List-Post: <mailto:hking@example.net> List-Id: <users.tomcat.apache.org> Reply-To: "Tomcat Users List" <hking@example.net> Delivered-To: mailing list hking@example.net Received: (qmail 65246 invoked by uid 99); 1 Apr 2008 05:01:58 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 31 Mar 2008 22:01:58 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [83.161.120.155] (HELO virtual.halosg.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Apr 2008 05:01:07 +0000 Received: (qmail 26371 invoked from network); 31 Mar 2008 23:50:22 -0500 Received: from 72-19-171-38.static.mesanetworks.net (HELO ?83.161.120.155?) (83.161.120.155) by halosg.com with SMTP; 31 Mar 2008 23:50:22 -0500 Message-ID: <hking@example.net> Date: Mon, 31 Mar 2008 23:01:42 -0600 From: Filip Hanik - Dev Lists <hking@example.net> User-Agent: Thunderbird 83.161.120.155 (Windows/20080213) MIME-Version: 1.0 To: Tomcat Users List <hking@example.net> Subject: Re: Bug 33594: ClassCastException compiling jsp (very infrequently happens) References: <hking@example.net> <hking@example.net> In-Reply-To: <hking@example.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org you can always reopen a bug, but what I would do, is turn on debugging for the org.apache.jasper package, and when the error happens, the bug might lead us to more information. Filip Caldarale, Charles R wrote: >> From: Harper, Brad [mailto:hking@example.net] >> Subject: Bug 33594: ClassCastException compiling jsp (very >> infrequently happens) >> >> A problem just surfaced for us, which I've run down to this issue >> [https://issues.apache.org/bugzilla/show_bug.cgi?id=33594]. In our >> case, the problem presents when deploying the latest version >> of a webapp on Tomcat 5.5.9. >> > > This bug report was incorrectly filed against httpd over three years > ago, closed immediately, and then reassigned to Tomcat *without* being > reopened, so it's highly unlikely anyone has looked at it since then. > > It's doubtful there will be any action on it now, especially if the > problem is not reproducible on a current level. (5.5.9 is also over > three years old, so there's not really any excuse for not having moved > up sometime in that period.) > > You can browse Tomcat's change log, but a lot of code has gone in over > the last three years: > http://tomcat.apache.org/tomcat-5.5-doc/changelog.html > > - Chuck > > > THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY > MATERIAL and is thus for use only by the intended recipient. If you > received this in error, please contact the sender and delete the e-mail > and its attachments from all computers. > > --------------------------------------------------------------------- > To start a new topic, e-mail: hking@example.net > To unsubscribe, e-mail: hking@example.net > For additional commands, e-mail: hking@example.net > > > > --------------------------------------------------------------------- To start a new topic, e-mail: hking@example.net To unsubscribe, e-mail: hking@example.net For additional commands, e-mail: hking@example.net From usershking@example.net Tue Apr 01 06:29:27 2008 Return-Path: <usershking@example.net> Delivered-To: hking@example.net Received: (qmail 4806 invoked from network); 1 Apr 2008 06:29:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 Apr 2008 06:29:27 -0000 Received: (qmail 26179 invoked by uid 500); 1 Apr 2008 06:29:13 -0000 Delivered-To: hking@example.net Received: (qmail 26150 invoked by uid 500); 1 Apr 2008 06:29:13 -0000 Mailing-List: contact hking@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:hking@example.net> List-Unsubscribe: <mailto:hking@example.net> List-Post: <mailto:hking@example.net> List-Id: <users.tomcat.apache.org> Reply-To: "Tomcat Users List" <hking@example.net> Delivered-To: mailing list hking@example.net Received: (qmail 26139 invoked by uid 99); 1 Apr 2008 06:29:13 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 31 Mar 2008 23:29:13 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of hking@example.net designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO wf-out-1314.google.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Apr 2008 06:28:31 +0000 Received: by wf-out-1314.google.com with SMTP id 28so2138098wff.12 for <hking@example.net>; Mon, 31 Mar 2008 23:28:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; bh=P6xDFilva80HFpq5Pn9Mz98EptxaxqKhQ68Vn71x5XY=; b=YunCUieFiamvGF6Tax4Soo8PkfdMvdo5KyslZJM6klhTKD/SjcKOJaSPHoEJL6uuLulMxBqt6H952Cv2Ans8ACLlFZjRi/HY0bYh8PrmgHsg7Kyx9S4gKfIsQXf8G3g7rUElnPVJXM2WMMm/g4D/RV0XrBMij5HnHnhu0MFklrQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=asUAf9h363zR+Hm0DjsqXwamlmYzy2ML8UDo9N3FEsm1PJfpsv3cBWiKYAio+2E6CKz8hc1V6040bG1PmzrVPnp4cqNcnmtPNBcIix8R1S02Cj561iam5NoF/NduLRkx3DqmtM3OTS+1KduHttLIBhXIwA92/785mmNcCe4xW4M= Received: by 83.161.120.155 with SMTP id z11mr4507564wfa.23.1207031323345; Mon, 31 Mar 2008 23:28:43 -0700 (PDT) Received: by 83.161.120.155 with HTTP; Mon, 31 Mar 2008 23:28:43 -0700 (PDT) Message-ID: <hking@example.net> Date: Tue, 1 Apr 2008 16:28:43 +1000 From: "Kimberly Begley" <hking@example.net> To: "Tomcat Users List" <hking@example.net> Subject: Re: displaying an image from outside the webapps directory In-Reply-To: <hking@example.net> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_1566_15316225.1207031323332" References: <hking@example.net> <hking@example.net> <hking@example.net> <hking@example.net> <hking@example.net> <hking@example.net> <hking@example.net> <hking@example.net> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_1566_15316225.1207031323332 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Great - got it working! Thanks so much for that again! Kimberly On Tue, Apr 1, 2008 at 12:07 AM, Christopher Schultz < hking@example.net> wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Kimberly, > > Kimberly Begley wrote: > | I was hoping to use the jsp:include tag to include the snippet (no html > or > | body tags) - I tried with the same code that Chris sent to open a jpeg - > | thinking it might be the same solution for the html but have gotten an > | internal error at the jsp include line. > > The problem is that JSPs use HttpServletResponse.getWriter (because JSPs > are used to produce text output) while the servlet you write uses > HttpServletRequest.getOutputStream. The two are incompatible for the > same request, and getWriter has already been called, to getOutputStream > fails. > > You have a couple of options: > > * Write another version of OpenFile called OpenTextFile or whatever > * Modify OpenFile to try getOutputStream first, then getWriter > * Put a special flag in the request, and have OpenFile detect that flag > ~ to determine whether getWriter or getOutputStream should be called > > If you want to use Writers instead of Streams, you should probably open > your file using a Reader instead of a Stream as well. > > Hope that helps, > - -chris > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.8 (MingW32) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org > > iEYEARECAAYFAkfw8D4ACgkQ9CaO5/Lv0PCzxwCfYMDYRCHCjLxo5bCmq+wiuvMG > 0JAAn3+hBtaGqJx6Oucn/ufDBos+G6bi > =pp7j > -----END PGP SIGNATURE----- > > --------------------------------------------------------------------- > To start a new topic, e-mail: hking@example.net > To unsubscribe, e-mail: hking@example.net > For additional commands, e-mail: hking@example.net > > -- Kimberly Begley ------=_Part_1566_15316225.1207031323332-- From usershking@example.net Tue Apr 01 07:14:46 2008 Return-Path: <usershking@example.net> Delivered-To: hking@example.net Received: (qmail 21534 invoked from network); 1 Apr 2008 07:14:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 Apr 2008 07:14:46 -0000 Received: (qmail 83471 invoked by uid 500); 1 Apr 2008 07:14:35 -0000 Delivered-To: hking@example.net Received: (qmail 83191 invoked by uid 500); 1 Apr 2008 07:14:34 -0000 Mailing-List: contact hking@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:hking@example.net> List-Unsubscribe: <mailto:hking@example.net> List-Post: <mailto:hking@example.net> List-Id: <users.tomcat.apache.org> Reply-To: "Tomcat Users List" <hking@example.net> Delivered-To: mailing list hking@example.net Received: (qmail 83180 invoked by uid 99); 1 Apr 2008 07:14:34 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Apr 2008 00:14:34 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of hking@example.net designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO mail.gmx.net) (83.161.120.155) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 01 Apr 2008 07:13:43 +0000 Received: (qmail invoked by alias); 01 Apr 2008 07:14:03 -0000 Received: from p54B54801.dip0.t-ipconnect.de (EHLO platz17) [83.161.120.155] by mail.gmx.net (mp013) with SMTP; 01 Apr 2008 09:14:03 +0200 X-Authenticated: #1706803 X-Provags-ID: V01U2FsdGVkX19gXX4BFmBgYeyFyl8wVXmPG1i2AnG0r4dfBLLCuS ++18rd5+C86EMi Message-ID: <hking@example.net> From: =?iso-8859-1?Q?Andre_H=FCbner?= <hking@example.net> To: <hking@example.net> Subject: parsing of .jsp not functional Date: Tue, 1 Apr 2008 09:14:01 +0200 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.3138 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 X-Y-GMX-Trusted: 0 X-Virus-Checked: Checked by ClamAV on apache.org Hi List, i have a Problem with parsing .jsp Files using Apache/mod_jk My Setup: Apache 2.2.8 mod_jk 1.2.26 Tomcat 5.5.26 on Suse Linux 10.1 Tomcat/Apache is up and running, on TomcatPort i can parse .jsp files domain.com:8080/file.jsp is working but domain.com/file.jsp is not and i dont know how. This is my mod_jk.conf LoadModule jk_module /usr/lib/apache/mod_jk.so JkWorkersFile "/usr/share/tomcat5/conf/workers.properties" JkLogFile "/usr/share/tomcat5/logs/mod_jk.log" JkLogLevel info JKMount /*.jsp ajp13 JKMount /*.srv ajp13 JKMount /admin/* ajp13 JKMount /manager/* ajp13 This is my workers.properties: workers.tomcat_home=/usr/share/tomcat5/ workers.java_home=/usr/lib/jvm/java ps=/ worker.list=ajp13, ajp14 worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 worker.ajp13.lbfactor=1 #worker.ajp14.port=8010 #worker.ajp14.host=localhost #worker.ajp14.type=ajp14 #worker.ajp14.secretkey=secret #worker.ajp14.credentials=myveryrandomentropy #worker.ajp14.lbfactor=1 worker.loadbalancer.type=lb worker.loadbalancer.balanced_workers=ajp13 worker.inprocess.type=jni worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)tomcat.jar worker.inprocess.cmd_line=start worker.inprocess.jvm_lib=$(workers.java_home)$(ps)jre$(ps)bin$(ps)classic$(ps)jvm.dll worker.inprocess.stdout=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stdout worker.inprocess.stderr=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stderr System comes up with no errors. But i see sourcecode when requesting .jps Files over Apache. Unfortunately, i do not find the mistake. There are some warnings in mod_jk.log [Tue Apr 01 09:03:23.826 2008] [32636:3081734336] [warn] map_uri_to_worker888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4jk_uri_worker_map.c (608): Uri * is invalid. Uri must start with / [Tue Apr 01 09:04:07.877 2008] [14898:3081734336] [warn] map_uri_to_worker888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4jk_uri_worker_map.c (608): Uri * is invalid. Uri must start with / What could be wrong in my case? Is there any help? Thank you Andre --------------------------------------------------------------------- To start a new topic, e-mail: hking@example.net To unsubscribe, e-mail: hking@example.net For additional commands, e-mail: hking@example.net From usershking@example.net Tue Apr 01 10:48:54 2008 Return-Path: <usershking@example.net> Delivered-To: hking@example.net Received: (qmail 93446 invoked from network); 1 Apr 2008 10:48:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 Apr 2008 10:48:54 -0000 Received: (qmail 53875 invoked by uid 500); 1 Apr 2008 10:48:40 -0000 Delivered-To: hking@example.net Received: (qmail 53851 invoked by uid 500); 1 Apr 2008 10:48:40 -0000 Mailing-List: contact hking@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:hking@example.net> List-Unsubscribe: <mailto:hking@example.net> List-Post: <mailto:hking@example.net> List-Id: <users.tomcat.apache.org> Reply-To: "Tomcat Users List" <hking@example.net> Delivered-To: mailing list hking@example.net Received: (qmail 53840 invoked by uid 99); 1 Apr 2008 10:48:40 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Apr 2008 03:48:40 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [83.161.120.155] (HELO servers.realworks.nl) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Apr 2008 10:47:49 +0000 Received: from rwlinux2.colo.realworks.nl (rwlinux2.colo.realworks.nl [83.161.120.155]) by rwlinux32.colo.realworks.nl (Postfix) with ESMTP id 224B2FED5; Tue, 1 Apr 2008 12:47:58 +0200 (CEST) Received: from rwlinux2.colo.realworks.nl (localhost [83.161.120.155]) by rwlinux2.colo.realworks.nl (Postfix) with ESMTP id 01B9C77546; Tue, 1 Apr 2008 12:47:58 +0200 (CEST) Date: Tue, 1 Apr 2008 12:47:58 +0200 (CEST) From: Ronald Klop <hking@example.net> To: Tomcat Users List <hking@example.net> Cc: David Rees <hking@example.net> Message-ID: <30796653.86341207046878004.JavaMail.tomcat@localhost> In-Reply-To: <hking@example.net> References: <hking@example.net> <hking@example.net> <hking@example.net> <21058284.48401206959892221.JavaMail.tomcat@localhost> <hking@example.net> Subject: Re: Cluster Memory Leak - ClusterData and LinkObject classes MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_39755_9027262.1207046878002" X-Mailer: BaseNet/WebMail (2.3.0-PREVIEW-225-73955) X-Originating-Host: from theo-en-jan.xs4all.nl ([83.161.120.155]) by rwlinux2.colo.realworks.nl ([83.161.120.155]) with HTTP (Apache Tomcat/5.5.26); Tue, 01 Apr 2008 12:47:58 +0200 X-Priority: 3 (Normal) Importance: Normal X-Originating-User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:83.161.120.155) Gecko/20080229 Firefox/83.161.120.155 X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_39755_9027262.1207046878002 Content-Type: multipart/alternative; boundary="----=_Part_39754_3407492.1207046877949" ------=_Part_39754_3407492.1207046877949 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit On Mon Mar 31 21:13:25 CEST 2008 Tomcat Users List <hking@example.net> wrote: > On Mon, Mar 31, 2008 at 3:38 AM, Ronald Klop <hking@example.net> wrote: > > > > See my previous mail about send/receive buffers filling because Ack wasn't > > read by FastAsyncSender. > > The option waitForAck="true" did the trick for me. But for FastAsyncSender > > you should set sendAck="false" on the receiving side. > > Thanks for the information, Ronald. Can you clarify your settings by > by posting a minimal configuration? I looked for the option sendAck on > the Tomcat cluster page and couldn't find any reference to that > configuration parameter: > http://tomcat.apache.org/tomcat-5.5-doc/cluster-howto.html > > It looks like doing something like one of the two is a good idea for a > barebones setup to make sure that the acking behavior is consistent > since Tomcat doesn't seem to ensure that they are sane: > > <Cluster className="org.apache.catalina.cluster.tcp.SimpleTcpCluster" > receiver.sendAck="true" sender.waitForAck="true"/> > > <Cluster className="org.apache.catalina.cluster.tcp.SimpleTcpCluster" > receiver.sendAck="false" sender.waitForAck="false"/> > > I'm a bit confused as to why this issue only affects one of my > clusters (out of 3 production clusters with identical setups) and not > more people are seeing it. Are most people specifying their Ack > settings? Or do most people not see enough traffic between restarts to > trigger this issue? Granted, the one that's affected also happens to > handle the most traffic by far. I'll have to do more testing on my > test cluster to verify (I've already turned on waitForAck everywhere > in production), hopefully I can reproduce it. > > Anyone have information on how using Acks in the cluster affects performance? > > -Dave > Hello Dave, I attached my server.xml file. I hope the mailinglist doesn't filter it. I think a lot of people don't send enough sessions between the nodes to see this or they use sticky sessions. The problem is in the Acks not being read by Tomcat. The network receive buffer fills. Only after the receive buffer is full the send buffer on the other node (send acks) is filling. And only after that send buffer is full the node stops sending acks and reading sessions, but blocks in Socket.write(ack_buffer). After this node is not reading new session data from the network anymore and only after that moment you will experience failures in your application. An Ack is 3 bytes, so you need to sync a lot of sessions, before the receive buffer and send buffer fill up. My receive buffers are about 90KB and send buffers are 32 KB. (90KB + 32KB) / 3 bytes = 41643 acks before the syncing stops. I see (at this moment) on average 1.5 session messages per second. So it takes me 30000 seconds = 8 hours before my clustering stops. But I could see the receive buffer filling up with 3 bytes a time also in a lab environment. (Use netstat for example to see this.) Why I was seeing this problems only since two weeks is a mistery to me too. Ronald. ------=_Part_39754_3407492.1207046877949 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit <p>On Mon Mar 31 21:13:25 CEST 2008 Tomcat Users List &lt;hking@example.net&gt; wrote:</p> <blockquote style="border-left: 2px solid rgb(0, 0, 0); padding-right: 0px; padding-left: 5px; margin-left: 5px; margin-right: 0px;">On Mon, Mar 31, 2008 at 3:38 AM, Ronald Klop &lt;hking@example.net&gt; wrote:<br /> &gt;<br /> &gt; See my previous mail about send/receive buffers filling because Ack wasn't<br /> &gt; read by FastAsyncSender.<br /> &gt; The option waitForAck="true" did the trick for me. But for FastAsyncSender<br /> &gt; you should set sendAck="false" on the receiving side.<br /> <br /> Thanks for the information, Ronald. Can you clarify your settings by<br /> by posting a minimal configuration? I looked for the option sendAck on<br /> the Tomcat cluster page and couldn't find any reference to that<br /> configuration parameter:<br /> http://tomcat.apache.org/tomcat-5.5-doc/cluster-howto.html<br /> <br /> It looks like doing something like one of the two is a good idea for a<br /> barebones setup to make sure that the acking behavior is consistent<br /> since Tomcat doesn't seem to ensure that they are sane:<br /> <br /> &lt;Cluster className="org.apache.catalina.cluster.tcp.SimpleTcpCluster"<br /> receiver.sendAck="true" sender.waitForAck="true"/&gt;<br /> <br /> &lt;Cluster className="org.apache.catalina.cluster.tcp.SimpleTcpCluster"<br /> receiver.sendAck="false" sender.waitForAck="false"/&gt;<br /> <br /> I'm a bit confused as to why this issue only affects one of my<br /> clusters (out of 3 production clusters with identical setups) and not<br /> more people are seeing it. Are most people specifying their Ack<br /> settings? Or do most people not see enough traffic between restarts to<br /> trigger this issue? Granted, the one that's affected also happens to<br /> handle the most traffic by far. I'll have to do more testing on my<br /> test cluster to verify (I've already turned on waitForAck everywhere<br /> in production), hopefully I can reproduce it.<br /> <br /> Anyone have information on how using Acks in the cluster affects performance?<br /> <br /> -Dave<br /> <br /> </blockquote><br /> Hello Dave,<br /> <br /> I attached my server.xml file. I hope the mailinglist doesn't filter it.<br /> <br /> I think a lot of people don't send enough sessions between the nodes to see this or they use sticky sessions.<br /> The problem is in the Acks not being read by Tomcat. The network receive buffer fills. Only after the receive buffer is full the send buffer on the other node (send acks) is filling. And only after that send buffer is full the node stops sending acks and reading sessions, but blocks in Socket.write(ack_buffer). After this node is not reading new session data from the network anymore and only after that moment you will experience failures in your application.<br /> <br /> An Ack is 3 bytes, so you need to sync a lot of sessions, before the receive buffer and send buffer fill up.<br /> My receive buffers are about 90KB and send buffers are 32 KB.<br /> (90KB + 32KB) / 3 bytes = 41643 acks before the syncing stops.<br /> <br /> I see (at this moment) on average 1.5 session messages per second. So it takes me 30000 seconds = 8 hours before my clustering stops.<br /> <br /> But I could see the receive buffer filling up with 3 bytes a time also in a lab environment. (Use netstat for example to see this.)<br /> <br /> <br /> Why I was seeing this problems only since two weeks is a mistery to me too.<br /> <br /> Ronald.<br /> <br /> <br type="_moz" /> ------=_Part_39754_3407492.1207046877949-- ------=_Part_39755_9027262.1207046878002 Content-Type: text/xml; charset=us-ascii; name=server.xml Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=server.xml <Server port="8005" shutdown="SHUTDOWN" debug="0"> <Listener className="org.apache.catalina.mbeans.ServerLifecycleListener" /> <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" /> <Listener className="org.apache.catalina.storeconfig.StoreConfigLifecycleListener"/> <GlobalNamingResources> <!-- Editable user database that can also be used by UserDatabaseRealm to authenticate users --> <Resource name="UserDatabase" auth="Container" type="org.apache.catalina.UserDatabase" description="User database that can be updated and saved" factory="org.apache.catalina.users.MemoryUserDatabaseFactory" pathname="conf/tomcat-users.xml" /> </GlobalNamingResources> <!-- Define the Tomcat Stand-Alone Service --> <Service name="Catalina"> <!-- Define a non-SSL HTTP/1.1 Connector on port 8080 --> <Connector port="8080" maxHttpHeaderSize="8192" maxThreads="300" minSpareThreads="25" maxSpareThreads="75" enableLookups="false" redirectPort="8443" acceptCount="1024" connectionTimeout="20000" disableUploadTimeout="true" compression="on" compressableMimeTypes="text/html,text/xml,text/plain,text/javascript,text/css"/> <!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 --> <!-- <Connector port="8009" enableLookups="false" redirectPort="8443" debug="0" protocol="AJP/1.3" /> --> <Engine name="Catalina" defaultHost="localhost"> <Realm className="org.apache.catalina.realm.UserDatabaseRealm" resourceName="UserDatabase"/> <Cluster className="org.apache.catalina.cluster.tcp.SimpleTcpCluster" manager.className="org.apache.catalina.cluster.session.DeltaManager" manager.stateTransferTimeout="60" manager.sendAllSessions="false" manager.sendAllSessionsSize="500" manager.sendAllSessionsWaitTime="20" receiver.sendAck="false" sender.waitForAck="false"/> <Host name="localhost" appBase="/usr/local/crm-CRM23/deployed" unpackWARs="true" autoDeploy="false" reloadable="false" usePooling="false" xmlValidation="false" xmlNamespaceAware="true"> </Host> </Engine> </Service> </Server> ------=_Part_39755_9027262.1207046878002 Content-Type: text/plain; charset=us-ascii --------------------------------------------------------------------- To start a new topic, e-mail: hking@example.net To unsubscribe, e-mail: hking@example.net For additional commands, e-mail: hking@example.net ------=_Part_39755_9027262.1207046878002-- From usershking@example.net Tue Apr 01 11:04:19 2008 Return-Path: <usershking@example.net> Delivered-To: hking@example.net Received: (qmail 98193 invoked from network); 1 Apr 2008 11:04:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 Apr 2008 11:04:19 -0000 Received: (qmail 75646 invoked by uid 500); 1 Apr 2008 11:04:06 -0000 Delivered-To: hking@example.net Received: (qmail 75625 invoked by uid 500); 1 Apr 2008 11:04:06 -0000 Mailing-List: contact hking@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:hking@example.net> List-Unsubscribe: <mailto:hking@example.net> List-Post: <mailto:hking@example.net> List-Id: <users.tomcat.apache.org> Reply-To: "Tomcat Users List" <hking@example.net> Delivered-To: mailing list hking@example.net Received: (qmail 75611 invoked by uid 99); 1 Apr 2008 11:04:06 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Apr 2008 04:04:06 -0700 X-ASF-Spam-Status: No, hits=3.2 required=10.0 tests=HTML_MESSAGE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [83.161.120.155] (HELO mx-n2.bisping.de) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Apr 2008 11:03:25 +0000 Received: from mail.herrlich-ramuschkat.de ([83.161.120.155] helo=zeus.herrlich-ramuschkat.de) by mx-n2.bisping.de with esmtp (Exim 4.50) id 1JgeH6-0001vL-Qp for hking@example.net; Tue, 01 Apr 2008 13:03:33 +0200 Received: from zeus.Herrlich-Ramuschkat.de ([83.161.120.155]) by zeus.herrlich-ramuschkat.de (SonicWALL 83.161.120.15597) with ESMTP; Tue, 01 Apr 2008 13:03:32 +0200 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C893E8.0621AA36" Subject: Tomcat on AMD64 System X-MimeOLE: Produced By Microsoft Exchange V6.5 Date: Tue, 1 Apr 2008 13:03:32 +0200 Message-ID: <hking@example.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Tomcat on AMD64 System thread-index: AciT59LjxByehxMfT+eqquhVzpS3+wAAC0DQ From: "Alexander Diedler" <hking@example.net> To: <hking@example.net> X-Mlf-Version: 83.161.120.15597 X-Mlf-UniqueId: o200804011103320062328 X-Virus-Checked: Checked by ClamAV on apache.org ------_=_NextPart_001_01C893E8.0621AA36 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello @ll, It is very stupid. I get not ran a Tomcat 6.0.16 Server on a Windows = 2003 Standard Edition x64 Edition with Java 1.5 AMD64 Edition. I found = may workarounds (replace the Tomcat5.exe but I have a Tomcat 6 = Version!!, Recompile the Files uhhhh!!!!).=20 Some points are very unclear: - After JRE and JDK Installation the Command java -version = doesn=B4t work. On a "normal" 32 Bit Server then will be shown the = Version without manually editing the PATH Variable in System Settings. - The Tomcat Installer doesn=B4t found automatically the fitted = JRE... on all other Installations I have done on W32 Systems everything = was found without manually work. - The Tomcat server doesn=B4t start and in Logfile is a message = like "This 32Bit Application does not ran on 64 Bit" Has anybody a very clear and easy Step-by-Step Manual to Install Tomcat = 6.x on a W2K3 Server x64? =20 Greetings Alexander =20 =20 ------_=_NextPart_001_01C893E8.0621AA36-- From usershking@example.net Tue Apr 01 11:04:37 2008 Return-Path: <usershking@example.net> Delivered-To: hking@example.net Received: (qmail 98289 invoked from network); 1 Apr 2008 11:04:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 Apr 2008 11:04:37 -0000 Received: (qmail 78235 invoked by uid 500); 1 Apr 2008 11:04:18 -0000 Delivered-To: hking@example.net Received: (qmail 78202 invoked by uid 500); 1 Apr 2008 11:04:18 -0000 Mailing-List: contact hking@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:hking@example.net> List-Unsubscribe: <mailto:hking@example.net> List-Post: <mailto:hking@example.net> List-Id: <users.tomcat.apache.org> Reply-To: "Tomcat Users List" <hking@example.net> Delivered-To: mailing list hking@example.net Received: (qmail 78179 invoked by uid 99); 1 Apr 2008 11:04:18 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Apr 2008 04:04:18 -0700 X-ASF-Spam-Status: No, hits=3.2 required=10.0 tests=HTML_MESSAGE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [83.161.120.155] (HELO mx-n2.bisping.de) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Apr 2008 11:03:37 +0000 Received: from mail.herrlich-ramuschkat.de ([83.161.120.155] helo=zeus.herrlich-ramuschkat.de) by mx-n2.bisping.de with esmtp (Exim 4.50) id 1JgeHM-000204-HO for hking@example.net; Tue, 01 Apr 2008 13:03:48 +0200 Received: from zeus.Herrlich-Ramuschkat.de ([83.161.120.155]) by zeus.herrlich-ramuschkat.de (SonicWALL 83.161.120.15597) with ESMTP; Tue, 01 Apr 2008 13:03:48 +0200 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C893E8.0F8023F4" Subject: Slow Tomcat - IIS ISAPI Filter X-MimeOLE: Produced By Microsoft Exchange V6.5 Date: Tue, 1 Apr 2008 13:03:47 +0200 Message-ID: <hking@example.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Slow Tomcat - IIS ISAPI Filter thread-index: AciT5vekl9N3LLCITSuqkBgT5cZiUAAARMQw From: "Alexander Diedler" <hking@example.net> To: <hking@example.net> X-Mlf-Version: 83.161.120.15597 X-Mlf-UniqueId: o200804011103480062334 X-Virus-Checked: Checked by ClamAV on apache.org ------_=_NextPart_001_01C893E8.0F8023F4 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hello @ll >From outside the Server, all the Requests to the Tomcat Website very, very slow (Build time 8-15 seconds for 50 kb Textsites!!), on the Server themselves (Remote Desktop) the Sites was build lower than 1 Second. I have a Hosting Server with Windows 2003 Server x64 Edition and a Tomcat 6.0.16 and ISAPI (isapi_redirect-1.2.26.dll). I connect the IIS to the Tomcat and everything seems to be good. Is there any "break" which I have to open? =20 Greetings Alex ------_=_NextPart_001_01C893E8.0F8023F4-- From usershking@example.net Tue Apr 01 11:28:49 2008 Return-Path: <usershking@example.net> Delivered-To: hking@example.net Received: (qmail 8211 invoked from network); 1 Apr 2008 11:28:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 Apr 2008 11:28:49 -0000 Received: (qmail 11804 invoked by uid 500); 1 Apr 2008 11:28:35 -0000 Delivered-To: hking@example.net Received: (qmail 11775 invoked by uid 500); 1 Apr 2008 11:28:35 -0000 Mailing-List: contact hking@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:hking@example.net> List-Unsubscribe: <mailto:hking@example.net> List-Post: <mailto:hking@example.net> List-Id: <users.tomcat.apache.org> Reply-To: "Tomcat Users List" <hking@example.net> Delivered-To: mailing list hking@example.net Received: (qmail 11764 invoked by uid 99); 1 Apr 2008 11:28:35 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Apr 2008 04:28:35 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [83.161.120.155] (HELO mail.sonae.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Apr 2008 11:27:45 +0000 Received: from lx3exc002.optimus.pt (83.161.120.155) by lx3exchub002.optimus.pt (83.161.120.155) with Microsoft SMTP Server (TLS) id 83.161.120.155; Tue, 1 Apr 2008 12:28:06 +0100 Received: from lx2exc002.optimus.pt (83.161.120.155) by lx3exc002.optimus.pt (83.161.120.155) with Microsoft SMTP Server (TLS) id 83.161.120.155; Tue, 1 Apr 2008 12:28:05 +0100 Received: from lx2exc002.optimus.pt ([83.161.120.155]) by lx2exc002.optimus.pt ([83.161.120.155]) with mapi; Tue, 1 Apr 2008 12:28:05 +0100 From: Nuno Manuel Martins <hking@example.net> To: "hking@example.net" <hking@example.net> Date: Tue, 1 Apr 2008 12:28:03 +0100 Subject: status worker Thread-Topic: status worker Thread-Index: AciT63MLqivqeTYmS9yD7mEW5Vy6pw== Message-ID: <hking@example.net> Accept-Language: en-US, pt-PT Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US, pt-PT Content-Type: multipart/alternative; boundary="_000_FEFF3850618765459036502FCAF4BE2F41BE0E91FClx2exc002opti_" MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org --_000_FEFF3850618765459036502FCAF4BE2F41BE0E91FClx2exc002opti_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hello, I am new to tomcat in general and I am trying to setup jk_mod (using 1.2.25= ) and I have already successfully installed it and put workers serving dyna= mic content from the tomcat server with load balancing. Now I wanted to setup the status worker to get some statistics. I am using = the default configuration for it but probably something basic is missing: worker.properties file: worker.list=3Dlb1 , lb2 , jkstatus [...] jkstatus.host=3Drh02 jkstatus.port=3D10001 jkstatus.username=3Dmanager jkstatus.password=3Dtomcat jkstatus.url=3Dhttp://${jkstatus.host}:${jkstatus.port}/jkstatus jkstatus.testlb=3Dlb1 jkstatus.testworker=3Dworker42 uriworkermap.properties file: /jkmanager=3Djkstatus Apache httpd.conf file: JkWorkersFile /usr/local/apache2/conf/workers.properties JkMountFile /usr/local/apache2/conf/uriworkermap.properties Include /usr/local/apache2/conf/tomcat-55.conf Include /usr/local/apache2/conf/tomcat-50.conf Apache httpd is on host rh01 and Tomcat server is on host rh02. When I try = to access http://rh01/jkmanager it just says it can't find the document... = can someone say what am I missing? The documentation doesn't provide much t= roubleshoot :( Regards, Nuno --_000_FEFF3850618765459036502FCAF4BE2F41BE0E91FClx2exc002opti_-- From usershking@example.net Tue Apr 01 12:20:28 2008 Return-Path: <usershking@example.net> Delivered-To: hking@example.net Received: (qmail 29900 invoked from network); 1 Apr 2008 12:20:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 Apr 2008 12:20:28 -0000 Received: (qmail 68858 invoked by uid 500); 1 Apr 2008 12:20:15 -0000 Delivered-To: hking@example.net Received: (qmail 68819 invoked by uid 500); 1 Apr 2008 12:20:15 -0000 Mailing-List: contact hking@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:hking@example.net> List-Unsubscribe: <mailto:hking@example.net> List-Post: <mailto:hking@example.net> List-Id: <users.tomcat.apache.org> Reply-To: "Tomcat Users List" <hking@example.net> Delivered-To: mailing list hking@example.net Received: (qmail 68802 invoked by uid 99); 1 Apr 2008 12:20:15 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Apr 2008 05:20:15 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [83.161.120.155] (HELO mailserver.kippdata.de) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Apr 2008 12:19:33 +0000 Received: from [83.161.120.155] (larix [83.161.120.155]) by mailserver.kippdata.de (8.13.5/8.13.5) with ESMTP id m31CJg56002890 for <hking@example.net>; Tue, 1 Apr 2008 14:19:42 +0200 (CEST) Message-ID: <hking@example.net> Date: Tue, 01 Apr 2008 14:19:42 +0200 From: Rainer Jung <hking@example.net> User-Agent: Thunderbird 83.161.120.155 (X11/20070802) MIME-Version: 1.0 To: Tomcat Users List <hking@example.net> Subject: Re: status worker References: <hking@example.net> In-Reply-To: <hking@example.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Nuno Manuel Martins wrote: > Hello, > > I am new to tomcat in general and I am trying to setup jk_mod (using 1.2.25) and I have already successfully installed it and put workers serving dynamic content from the tomcat server with load balancing. > > Now I wanted to setup the status worker to get some statistics. I am using the default configuration for it but probably something basic is missing: > > worker.properties file: > > worker.list=lb1 , lb2 , jkstatus > [...] > jkstatus.host=rh02 > jkstatus.port=10001 > jkstatus.username=manager > jkstatus.password=tomcat > jkstatus.url=http://${jkstatus.host}:${jkstatus.port}/jkstatus > jkstatus.testlb=lb1 > jkstatus.testworker=worker42 > > uriworkermap.properties file: > /jkmanager=jkstatus > > Apache httpd.conf file: > JkWorkersFile /usr/local/apache2/conf/workers.properties > JkMountFile /usr/local/apache2/conf/uriworkermap.properties > > Include /usr/local/apache2/conf/tomcat-55.conf > Include /usr/local/apache2/conf/tomcat-50.conf > > Apache httpd is on host rh01 and Tomcat server is on host rh02. When I try to access http://rh01/jkmanager it just says it can't find the document... can someone say what am I missing? The documentation doesn't provide much troubleshoot :( > > Regards, > Nuno Correct your workers.properties Remove all of the above lines of the form jkstatus.attribute=value because none of the attributes you are using makes much sense. Add: worker.jkstatus.type=status to let mod_jk know, when it tries to send a request to the worker with name jkstatus, that there is not host/port/Tomcat behind it, but instead it should generate its own status page. If it works, then you should add an authentication/authorization mechanism inside httpd to the URL /jkmanager (e.g. a Location directive and inside a required user/password; this can be done with usual httpd procedures, nothing mod_jk specific). Regards, Rainer --------------------------------------------------------------------- To start a new topic, e-mail: hking@example.net To unsubscribe, e-mail: hking@example.net For additional commands, e-mail: hking@example.net From usershking@example.net Tue Apr 01 12:22:50 2008 Return-Path: <usershking@example.net> Delivered-To: hking@example.net Received: (qmail 30474 invoked from network); 1 Apr 2008 12:22:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 Apr 2008 12:22:50 -0000 Received: (qmail 72386 invoked by uid 500); 1 Apr 2008 12:22:37 -0000 Delivered-To: hking@example.net Received: (qmail 72365 invoked by uid 500); 1 Apr 2008 12:22:37 -0000 Mailing-List: contact hking@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:hking@example.net> List-Unsubscribe: <mailto:hking@example.net> List-Post: <mailto:hking@example.net> List-Id: <users.tomcat.apache.org> Reply-To: "Tomcat Users List" <hking@example.net> Delivered-To: mailing list hking@example.net Received: (qmail 72354 invoked by uid 99); 1 Apr 2008 12:22:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Apr 2008 05:22:37 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of hking@example.net designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO rn-out-0910.google.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Apr 2008 12:21:56 +0000 Received: by rn-out-0910.google.com with SMTP id j40so1005230rnf.4 for <hking@example.net>; Tue, 01 Apr 2008 05:21:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=xni7KHHbd67b0Xe5XLQdJbxIt4+cXw92GFEb0KiKRMU=; b=DKX+je6PRN4jiMd2oapKpKh8QBv4lYSwNQkKPxWTX6MXRJ7qZGJvgBwzclOJ0OMps/0AVpSDzZv74MD3Wx86uXuMat8/Ut+TDwdVPQWTu3qsNas8owI6RlJjhF8ZxwKuh2NrvzNvivRA8r8BrojpJC82yfC3cRK9htudctjVVG8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=N3DYKospMJ83ljZVRJLmW7x1Q/8wsZKGKE6EwoBi9oRDhSpN1iXnU2WwBnMjXLCIoUiMdvPA7MdaPV/fZKZjBdi/GUT48/MO2BHrK/EErQSzXBpyqKlK+RVLLBNHvQqihy7RWPpEealLImMF6YpM/RCOQ3gOHzDCFLAgP4w/ziE= Received: by 83.161.120.155 with SMTP id m1mr12239792wab.77.1207052519071; Tue, 01 Apr 2008 05:21:59 -0700 (PDT) Received: by 83.161.120.155 with HTTP; Tue, 1 Apr 2008 05:21:59 -0700 (PDT) Message-ID: <hking@example.net> Date: Tue, 1 Apr 2008 14:21:59 +0200 From: "Liyi Meng" <hking@example.net> To: hking@example.net Subject: JAAS authentication goes OK, but 403 occurs on requesting resources In-Reply-To: <hking@example.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <hking@example.net> X-Virus-Checked: Checked by ClamAV on apache.org Hi all, I am trying JAAS in tomcat, but hit on a really frustrating problem right now. When login, authentication goes OK, but when requesting a resource, I always get 403 access denied! I try to print out httprequest.getRemoteUser in servlet, the username is correct there, however httprequest.isUserInRoles() always returns false :( I am wondering if I have dose something wrong in storing the Roles. Below is the code how I populate User and Role then save in Subject public boolean commit() throws LoginException { if (succeeded == false) { return false; } else { // add a Principal (authenticated identity) // to the Subject principals = new Principal[2]; principals[0] = new WebUser(username); principals[1] = new WebRole("manager"); for(int i= 0 ; i < principals.length ; i++) { if (!subject.getPrincipals().contains(principals[i])) subject.getPrincipals().add(principals[i]); } if (debug) { Set<Principal> all = subject.getPrincipals(); Iterator<Principal> i = all.iterator(); while(i.hasNext()) { System.out.println(+ i.next().toString()); } } commitSucceeded = true; return true; } } The debug shows that both user and role are stored in subject. But Why tomcat is not recognized the role?! If you ever see this kind of problem, please help! I'll greatly appreciate! --------------------------------------------------------------------- To start a new topic, e-mail: hking@example.net To unsubscribe, e-mail: hking@example.net For additional commands, e-mail: hking@example.net From usershking@example.net Tue Apr 01 12:54:08 2008 Return-Path: <usershking@example.net> Delivered-To: hking@example.net Received: (qmail 43995 invoked from network); 1 Apr 2008 12:54:08 -0000 Received: from hermes.apache.org (HELO
{'source': 'Apache Software Foundation Public Mail Archives'}