<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:old.nabble.com,2006:forum-303</id>
	<title>Nabble - Tomcat</title>
	<updated>2009-11-25T03:06:48Z</updated>
	<link rel="self" type="application/atom+xml" href="http://old.nabble.com/Tomcat-f303.xml" />
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Tomcat-f303.html" />
	<subtitle type="html">Tomcat is the servlet container that is used in the official Reference Implementation for the Java Servlet and JavaServer Pages technologies. Tomcat home is &lt;a href=&quot;http://jakarta.apache.org/tomcat/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;.</subtitle>
	
<entry>
	<id>tag:old.nabble.com,2006:post-26510908</id>
	<title>Re: Tomcat Https loadbalancing??</title>
	<published>2009-11-25T03:06:48Z</published>
	<updated>2009-11-25T03:06:48Z</updated>
	<author>
		<name>David Cassidy</name>
	</author>
	<content type="html">&lt;br&gt;&lt;br&gt;On 25/11/09 10:36, Peter Crowther wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; 2009/11/25 jkv&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26510908&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;j.kumaravel@...&lt;/a&gt;&amp;gt;:
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; I got one small doubt in the last point that you said.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; In this environment, you only want your &amp;quot;public&amp;quot; certificate on httpd.
&lt;br&gt;&amp;gt;&amp;gt; Tomcat will not be doing anything that uses it, so don't put a copy
&lt;br&gt;&amp;gt;&amp;gt; on those machines.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; this means that I will not enable SSL in my tomcat.. I will comment
&lt;br&gt;&amp;gt;&amp;gt; &amp;lt;!--&amp;lt;Connector port=&amp;quot;443&amp;quot; protocol=&amp;quot;HTTP/1.1&amp;quot; SSLEnabled=&amp;quot;true&amp;quot;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;....&amp;gt; &amp;nbsp;--&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; tag totally from server.xml file in tomcat and have just one connetor
&lt;br&gt;&amp;gt;&amp;gt; element i.e.,
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;lt;Connector port=&amp;quot;8009&amp;quot; protocol=&amp;quot;AJP/1.3&amp;quot; redirectPort=&amp;quot;443&amp;quot; /&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt; Certainly you only need the AJP connector, as Tomcat will never be
&lt;br&gt;&amp;gt; handling http or https requests.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;
&lt;/div&gt;If you want your tomcat to ever know that its getting a secure request
&lt;br&gt;you'll need 2 ajp connectors - one as the default is &amp;quot;not secure&amp;quot;
&lt;br&gt;the other needs to say &amp;quot;i'm secure&amp;quot; otherwise when you do a 
&lt;br&gt;transport-guarantee in your web.xml
&lt;br&gt;your client will be in an infinite loop
&lt;br&gt;as tomcat never sees a &amp;quot;secure&amp;quot; request....
&lt;br&gt;&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;&amp;gt; Thanks for the reply, that really helped a lot and we can also conclude we
&lt;br&gt;&amp;gt;&amp;gt; cannot have a secure horizontal loadbalancing with Apache and Tomcat!
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt; Depends what you mean by &amp;quot;secure&amp;quot;, as the level of security is
&lt;br&gt;&amp;gt; relative, not absolute. &amp;nbsp;There are more moving parts to secure, but
&lt;br&gt;&amp;gt; it's possible to secure all of them to a reasonable standard.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; No system is *ever* 100% secure from attack, even if it's 100 metres
&lt;br&gt;&amp;gt; underground, powered by its own generator, no network,
&lt;br&gt;&amp;gt; Faraday-shielded, has a division of armed guards protecting its bunker
&lt;br&gt;&amp;gt; and has self-destruct systems built in. &amp;nbsp;It just depends how much the
&lt;br&gt;&amp;gt; attacker wants your data, and therefore what resource (s)he is willing
&lt;br&gt;&amp;gt; to commit to acquiring them.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; - Peter
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26510908&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26510908&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;
&lt;/div&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26510908&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26510908&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Tomcat---User-f342.html&quot; embed=&quot;fixTarget[342]&quot; target=&quot;_top&quot; &gt;Tomcat - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Tomcat-Https-loadbalancing---tp26509573p26510908.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26510871</id>
	<title>Re: Tomcat Https loadbalancing??</title>
	<published>2009-11-25T03:03:04Z</published>
	<updated>2009-11-25T03:03:04Z</updated>
	<author>
		<name>David Cassidy</name>
	</author>
	<content type="html">Pid,
&lt;br&gt;&lt;br&gt;there is no need to have a commercial grade cert between your httpd and 
&lt;br&gt;tomcat
&lt;br&gt;as thats in essence a private comms channel between your 2 servers the 
&lt;br&gt;client won't know / see / care
&lt;br&gt;&lt;br&gt;Use a self sign - as long as httpd has your cert all should be well
&lt;br&gt;&lt;br&gt;D
&lt;br&gt;&lt;br&gt;On 25/11/09 10:32, Pid wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On 25/11/2009 10:28, jkv wrote:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Thanks David,
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I would imagine that with mod_proxy you could load balance https 
&lt;br&gt;&amp;gt;&amp;gt; requests
&lt;br&gt;&amp;gt;&amp;gt; so that the https request goes to httpd then its load balanced between
&lt;br&gt;&amp;gt;&amp;gt; https requests to
&lt;br&gt;&amp;gt;&amp;gt; multiple tomcats. What you'll loose over the ajp protocol i'm sure
&lt;br&gt;&amp;gt;&amp;gt; someone will let us know
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; That sounds good but when https request hits Apache the certificate 
&lt;br&gt;&amp;gt;&amp;gt; will be
&lt;br&gt;&amp;gt;&amp;gt; issued by the server to the client, now when this is again sent as https
&lt;br&gt;&amp;gt;&amp;gt; request to tomcat, which will again try issuing a certificate (I 
&lt;br&gt;&amp;gt;&amp;gt; guess as
&lt;br&gt;&amp;gt;&amp;gt; this is a protocol standard), I dont know whether will this affect the
&lt;br&gt;&amp;gt;&amp;gt; client -&amp;gt; &amp;nbsp;getting two certificates for a single https request??
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Has any body done this before???
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; David Cassidy wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Hey
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Yes if you want httpd to load balance https requests you do need it to
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; handle the https connection - and hence it needs the keys, certs etc
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Sadly the ajp protocol is in fact insecure
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; if you have the httpd and tomcat on separate boxes you do have a
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; security issue
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; as the connection is transporting data in the clear.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; I would imagine that with mod_proxy you could load balance https 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; requests
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; so that the https request goes to httpd then its load balanced between
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; https requests to
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; multiple tomcats. What you'll loose over the ajp protocol i'm sure
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; someone will let us know
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Note: you'll probably need more cert licenses, if they're commercial 
&lt;br&gt;&amp;gt; ones, if you're deploying the cert on multiple Tomcats rather than on 
&lt;br&gt;&amp;gt; one HTTPD.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; p
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; On 25/11/09 09:18, jkv wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Hello,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; We are using Tomcat 6.0 and running HTTPS (enabled SSL). The number of
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; requests has grown up and we have decided to do go for clustering and
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; loadbalancing. We have decided to go for Apache and mod_proxy/mod_jk
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; loadbalacing. My certificate resides in Tomcat.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; In order to loadbalance HTTPS request using Apache and 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; mod_proxy/mod_jk,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; should I configure Apache to handle HTTPS and tell it about my
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; certificate
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; details?
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; While loadbalancing I understand that http/https request to Apache is
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; converted to ajp and tunneled to Tomcat, so is ajp protocol secure?
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; should I
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; enable SSL in tomcat to handle this request?
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Should I have two copies of my certificate files if Apache and Tomcat
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; reside
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; on two different physical machines(Horizontal Clustering)?
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; I searched the forums and they are too advanced for my question. I am
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; really
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; new to clustering and load balancing and any help is deeply 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; appreciated.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Thanks in advance.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Regards
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; jkv
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26510871&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26510871&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;/div&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Tomcat---User-f342.html&quot; embed=&quot;fixTarget[342]&quot; target=&quot;_top&quot; &gt;Tomcat - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Tomcat-Https-loadbalancing---tp26509573p26510871.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26510815</id>
	<title>Re: Tomcat Https loadbalancing??</title>
	<published>2009-11-25T02:57:44Z</published>
	<updated>2009-11-25T02:57:44Z</updated>
	<author>
		<name>Cyrille Le Clerc-3</name>
	</author>
	<content type="html">&amp;nbsp; &amp;nbsp;Hello,
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;As Ronald said, we made some drawings on a &amp;nbsp;detailed document
&lt;br&gt;&amp;quot;Tomcat, SSL, secure communications and X-Forwarded-Proto&amp;quot; (1) that
&lt;br&gt;explains solutions to handle HTTPS at the Tomcat, Apache Httpd and
&lt;br&gt;Load Balancer layers. The document is written in french but the google
&lt;br&gt;translation is quite good (2).
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;My preference is to use a level 7 load balancer in front of Apache
&lt;br&gt;httpd servers with mod_proxy_http+mod_proxy_balancer and then Tomcat
&lt;br&gt;servers. Of course, this topology is not always the best one but is
&lt;br&gt;very often relevant.
&lt;br&gt;&lt;br&gt;&amp;nbsp; Hope this helps,
&lt;br&gt;&lt;br&gt;&amp;nbsp; Cyrille
&lt;br&gt;&lt;br&gt;--
&lt;br&gt;Cyrille Le Clerc
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26510815&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;cleclerc@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://blog.xebia.fr&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://blog.xebia.fr&lt;/a&gt;&lt;br&gt;&lt;br&gt;(1) &lt;a href=&quot;http://blog.xebia.fr/2009/11/13/tomcat-ssl-communications-securisees-et-x-forwarded-proto/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://blog.xebia.fr/2009/11/13/tomcat-ssl-communications-securisees-et-x-forwarded-proto/&lt;/a&gt;&lt;br&gt;(2) &lt;a href=&quot;http://translate.google.com/translate?js=y&amp;prev=_t&amp;hl=en&amp;ie=UTF-8&amp;u=http%3A%2F%2Fblog.xebia.fr%2F2009%2F11%2F13%2Ftomcat-ssl-communications-securisees-et-x-forwarded-proto%2F&amp;sl=fr&amp;tl=en&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://translate.google.com/translate?js=y&amp;prev=_t&amp;hl=en&amp;ie=UTF-8&amp;u=http%3A%2F%2Fblog.xebia.fr%2F2009%2F11%2F13%2Ftomcat-ssl-communications-securisees-et-x-forwarded-proto%2F&amp;sl=fr&amp;tl=en&lt;/a&gt;&lt;br&gt;&lt;br&gt;On Wed, Nov 25, 2009 at 11:45 AM, Ronald Klop
&lt;br&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26510815&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ronald-mailinglist@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Always make a drawing.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; client -&amp;gt; https -&amp;gt; tcp-loadbalancer -&amp;gt; still same https connection-&amp;gt;
&lt;br&gt;&amp;gt; multiple tomcats
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; client -&amp;gt; https -&amp;gt; http-loadbalancer (Apache, proxy) -&amp;gt; new ajp/http(s)
&lt;br&gt;&amp;gt; connection-&amp;gt; multiple tomcats
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Normally the loadbalancer and tomcats are in the same private network. It is
&lt;br&gt;&amp;gt; your choice if that is secure enough. In the end the data is unencrypted in
&lt;br&gt;&amp;gt; the database I guess, so normally you trust your own network.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Ronald.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Op woensdag, 25 november 2009 10:18 schreef jkv &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26510815&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;j.kumaravel@...&lt;/a&gt;&amp;gt;:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Hello,
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; We are using Tomcat 6.0 and running HTTPS (enabled SSL). The number of
&lt;br&gt;&amp;gt;&amp;gt; requests has grown up and we have decided to do go for clustering and
&lt;br&gt;&amp;gt;&amp;gt; loadbalancing. We have decided to go for Apache and mod_proxy/mod_jk
&lt;br&gt;&amp;gt;&amp;gt; loadbalacing. My certificate resides in Tomcat.
&lt;br&gt;&amp;gt;&amp;gt; In order to loadbalance HTTPS request using Apache and mod_proxy/mod_jk,
&lt;br&gt;&amp;gt;&amp;gt; should I configure Apache to handle HTTPS and tell it about my certificate
&lt;br&gt;&amp;gt;&amp;gt; details?
&lt;br&gt;&amp;gt;&amp;gt; While loadbalancing I understand that http/https request to Apache is
&lt;br&gt;&amp;gt;&amp;gt; converted to ajp and tunneled to Tomcat, so is ajp protocol secure? should
&lt;br&gt;&amp;gt;&amp;gt; I
&lt;br&gt;&amp;gt;&amp;gt; enable SSL in tomcat to handle this request?
&lt;br&gt;&amp;gt;&amp;gt; Should I have two copies of my certificate files if Apache and Tomcat
&lt;br&gt;&amp;gt;&amp;gt; reside
&lt;br&gt;&amp;gt;&amp;gt; on two different physical machines(Horizontal Clustering)?
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I searched the forums and they are too advanced for my question. I am
&lt;br&gt;&amp;gt;&amp;gt; really
&lt;br&gt;&amp;gt;&amp;gt; new to clustering and load balancing and any help is deeply appreciated.
&lt;br&gt;&amp;gt;&amp;gt; Thanks in advance.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Regards
&lt;br&gt;&amp;gt;&amp;gt; jkv
&lt;br&gt;&amp;gt;&amp;gt; --
&lt;br&gt;&amp;gt;&amp;gt; View this message in context:
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/Tomcat-Https-loadbalancing---tp26509573p26509573.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://old.nabble.com/Tomcat-Https-loadbalancing---tp26509573p26509573.html&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt; Sent from the Tomcat - User mailing list archive at Nabble.com.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26510815&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26510815&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26510815&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26510815&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Tomcat---User-f342.html&quot; embed=&quot;fixTarget[342]&quot; target=&quot;_top&quot; &gt;Tomcat - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Tomcat-Https-loadbalancing---tp26509573p26510815.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26510669</id>
	<title>Re: Tomcat Https loadbalancing??</title>
	<published>2009-11-25T02:45:30Z</published>
	<updated>2009-11-25T02:45:30Z</updated>
	<author>
		<name>Ronald Klop</name>
	</author>
	<content type="html">Always make a drawing.
&lt;br&gt;&lt;br&gt;client -&amp;gt; https -&amp;gt; tcp-loadbalancer -&amp;gt; still same https connection-&amp;gt; multiple tomcats
&lt;br&gt;&lt;br&gt;client -&amp;gt; https -&amp;gt; http-loadbalancer (Apache, proxy) -&amp;gt; new ajp/http(s) connection-&amp;gt; multiple tomcats
&lt;br&gt;&lt;br&gt;Normally the loadbalancer and tomcats are in the same private network. It is your choice if that is secure enough. In the end the data is unencrypted in the database I guess, so normally you trust your own network.
&lt;br&gt;&lt;br&gt;Ronald.
&lt;br&gt;&lt;br&gt;&lt;br&gt;Op woensdag, 25 november 2009 10:18 schreef jkv &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26510669&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;j.kumaravel@...&lt;/a&gt;&amp;gt;:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Hello,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; We are using Tomcat 6.0 and running HTTPS (enabled SSL). The number of
&lt;br&gt;&amp;gt; requests has grown up and we have decided to do go for clustering and
&lt;br&gt;&amp;gt; loadbalancing. We have decided to go for Apache and mod_proxy/mod_jk
&lt;br&gt;&amp;gt; loadbalacing. My certificate resides in Tomcat. 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; In order to loadbalance HTTPS request using Apache and mod_proxy/mod_jk,
&lt;br&gt;&amp;gt; should I configure Apache to handle HTTPS and tell it about my certificate
&lt;br&gt;&amp;gt; details? 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; While loadbalancing I understand that http/https request to Apache is
&lt;br&gt;&amp;gt; converted to ajp and tunneled to Tomcat, so is ajp protocol secure? should I
&lt;br&gt;&amp;gt; enable SSL in tomcat to handle this request? 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Should I have two copies of my certificate files if Apache and Tomcat reside
&lt;br&gt;&amp;gt; on two different physical machines(Horizontal Clustering)?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I searched the forums and they are too advanced for my question. I am really
&lt;br&gt;&amp;gt; new to clustering and load balancing and any help is deeply appreciated.
&lt;br&gt;&amp;gt; Thanks in advance.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Regards
&lt;br&gt;&amp;gt; jkv
&lt;br&gt;&amp;gt; -- 
&lt;br&gt;&amp;gt; View this message in context: &lt;a href=&quot;http://old.nabble.com/Tomcat-Https-loadbalancing---tp26509573p26509573.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://old.nabble.com/Tomcat-Https-loadbalancing---tp26509573p26509573.html&lt;/a&gt;&lt;br&gt;&amp;gt; Sent from the Tomcat - User mailing list archive at Nabble.com.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26510669&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26510669&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Tomcat---User-f342.html&quot; embed=&quot;fixTarget[342]&quot; target=&quot;_top&quot; &gt;Tomcat - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Tomcat-Https-loadbalancing---tp26509573p26510669.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26510576</id>
	<title>Re: Tomcat Https loadbalancing??</title>
	<published>2009-11-25T02:36:41Z</published>
	<updated>2009-11-25T02:36:41Z</updated>
	<author>
		<name>Peter Crowther</name>
	</author>
	<content type="html">2009/11/25 jkv &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26510576&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;j.kumaravel@...&lt;/a&gt;&amp;gt;:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; I got one small doubt in the last point that you said.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; In this environment, you only want your &amp;quot;public&amp;quot; certificate on httpd.
&lt;br&gt;&amp;gt; Tomcat will not be doing anything that uses it, so don't put a copy
&lt;br&gt;&amp;gt; on those machines.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; this means that I will not enable SSL in my tomcat.. I will comment
&lt;br&gt;&amp;gt; &amp;lt;!-- &amp;lt;Connector port=&amp;quot;443&amp;quot; protocol=&amp;quot;HTTP/1.1&amp;quot; SSLEnabled=&amp;quot;true&amp;quot;
&lt;br&gt;&amp;gt;               ....&amp;gt; --&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; tag totally from server.xml file in tomcat and have just one connetor
&lt;br&gt;&amp;gt; element i.e.,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;Connector port=&amp;quot;8009&amp;quot; protocol=&amp;quot;AJP/1.3&amp;quot; redirectPort=&amp;quot;443&amp;quot; /&amp;gt;
&lt;/div&gt;&lt;br&gt;Certainly you only need the AJP connector, as Tomcat will never be
&lt;br&gt;handling http or https requests.
&lt;br&gt;&lt;br&gt;&amp;gt; Thanks for the reply, that really helped a lot and we can also conclude we
&lt;br&gt;&amp;gt; cannot have a secure horizontal loadbalancing with Apache and Tomcat!
&lt;br&gt;&lt;br&gt;Depends what you mean by &amp;quot;secure&amp;quot;, as the level of security is
&lt;br&gt;relative, not absolute. &amp;nbsp;There are more moving parts to secure, but
&lt;br&gt;it's possible to secure all of them to a reasonable standard.
&lt;br&gt;&lt;br&gt;No system is *ever* 100% secure from attack, even if it's 100 metres
&lt;br&gt;underground, powered by its own generator, no network,
&lt;br&gt;Faraday-shielded, has a division of armed guards protecting its bunker
&lt;br&gt;and has self-destruct systems built in. &amp;nbsp;It just depends how much the
&lt;br&gt;attacker wants your data, and therefore what resource (s)he is willing
&lt;br&gt;to commit to acquiring them.
&lt;br&gt;&lt;br&gt;- Peter
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26510576&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26510576&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Tomcat---User-f342.html&quot; embed=&quot;fixTarget[342]&quot; target=&quot;_top&quot; &gt;Tomcat - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Tomcat-Https-loadbalancing---tp26509573p26510576.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26510534</id>
	<title>Re: Tomcat Https loadbalancing??</title>
	<published>2009-11-25T02:32:47Z</published>
	<updated>2009-11-25T02:32:47Z</updated>
	<author>
		<name>Pid Ster</name>
	</author>
	<content type="html">On 25/11/2009 10:28, jkv wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks David,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I would imagine that with mod_proxy you could load balance https requests
&lt;br&gt;&amp;gt; so that the https request goes to httpd then its load balanced between
&lt;br&gt;&amp;gt; https requests to
&lt;br&gt;&amp;gt; multiple tomcats. What you'll loose over the ajp protocol i'm sure
&lt;br&gt;&amp;gt; someone will let us know
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; That sounds good but when https request hits Apache the certificate will be
&lt;br&gt;&amp;gt; issued by the server to the client, now when this is again sent as https
&lt;br&gt;&amp;gt; request to tomcat, which will again try issuing a certificate (I guess as
&lt;br&gt;&amp;gt; this is a protocol standard), I dont know whether will this affect the
&lt;br&gt;&amp;gt; client -&amp;gt; &amp;nbsp;getting two certificates for a single https request??
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Has any body done this before???
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; David Cassidy wrote:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Hey
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Yes if you want httpd to load balance https requests you do need it to
&lt;br&gt;&amp;gt;&amp;gt; handle the https connection - and hence it needs the keys, certs etc
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Sadly the ajp protocol is in fact insecure
&lt;br&gt;&amp;gt;&amp;gt; if you have the httpd and tomcat on separate boxes you do have a
&lt;br&gt;&amp;gt;&amp;gt; security issue
&lt;br&gt;&amp;gt;&amp;gt; as the connection is transporting data in the clear.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I would imagine that with mod_proxy you could load balance https requests
&lt;br&gt;&amp;gt;&amp;gt; so that the https request goes to httpd then its load balanced between
&lt;br&gt;&amp;gt;&amp;gt; https requests to
&lt;br&gt;&amp;gt;&amp;gt; multiple tomcats. What you'll loose over the ajp protocol i'm sure
&lt;br&gt;&amp;gt;&amp;gt; someone will let us know
&lt;/div&gt;&lt;br&gt;Note: you'll probably need more cert licenses, if they're commercial 
&lt;br&gt;ones, if you're deploying the cert on multiple Tomcats rather than on 
&lt;br&gt;one HTTPD.
&lt;br&gt;&lt;br&gt;&lt;br&gt;p
&lt;br&gt;&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;&amp;gt; On 25/11/09 09:18, jkv wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Hello,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; We are using Tomcat 6.0 and running HTTPS (enabled SSL). The number of
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; requests has grown up and we have decided to do go for clustering and
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; loadbalancing. We have decided to go for Apache and mod_proxy/mod_jk
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; loadbalacing. My certificate resides in Tomcat.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; In order to loadbalance HTTPS request using Apache and mod_proxy/mod_jk,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; should I configure Apache to handle HTTPS and tell it about my
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; certificate
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; details?
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; While loadbalancing I understand that http/https request to Apache is
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; converted to ajp and tunneled to Tomcat, so is ajp protocol secure?
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; should I
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; enable SSL in tomcat to handle this request?
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Should I have two copies of my certificate files if Apache and Tomcat
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; reside
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; on two different physical machines(Horizontal Clustering)?
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; I searched the forums and they are too advanced for my question. I am
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; really
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; new to clustering and load balancing and any help is deeply appreciated.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Thanks in advance.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Regards
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; jkv
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26510534&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26510534&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Tomcat---User-f342.html&quot; embed=&quot;fixTarget[342]&quot; target=&quot;_top&quot; &gt;Tomcat - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Tomcat-Https-loadbalancing---tp26509573p26510534.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26510512</id>
	<title>Re: Advise on configuring SSL</title>
	<published>2009-11-25T02:31:05Z</published>
	<updated>2009-11-25T02:31:05Z</updated>
	<author>
		<name>Pid Ster</name>
	</author>
	<content type="html">On 25/11/2009 08:43, CBy wrote:
&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; In my current working environment, Tomcat 6.0.18 is behind Apache. I
&lt;br&gt;&amp;gt; don't know why they chose this setup, because Apache only acts as a
&lt;br&gt;&amp;gt; proxy, it doesn't host anything. I do have experience in setting up SSL
&lt;br&gt;&amp;gt; for stand-alone Tomcat, but have no experience with Apache whatsoever.
&lt;br&gt;&amp;gt; Since I do have administrative rights for Tomcat, but not for Apache, I
&lt;br&gt;&amp;gt; was thinking of letting Tomcat handle SSL. Is that sensible or is it
&lt;br&gt;&amp;gt; better to configure this with Apache in this case?
&lt;br&gt;&lt;br&gt;Neither setup is very complicated, and both are well documented on their 
&lt;br&gt;respective websites.
&lt;br&gt;&lt;br&gt;N.B. If you are using APR in Tomcat, SSL setup is slightly different.
&lt;br&gt;&lt;br&gt;&lt;br&gt;Side note: If HTTPD isn't doing anything extra at all, there's not much 
&lt;br&gt;point in having it. &amp;nbsp;It's just slowing your response times down - 
&lt;br&gt;there's plenty of regular discussion about this on the list, available 
&lt;br&gt;in the archives.
&lt;br&gt;&lt;br&gt;&lt;br&gt;p
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;gt; CBy
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26510512&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26510512&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26510512&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26510512&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Tomcat---User-f342.html&quot; embed=&quot;fixTarget[342]&quot; target=&quot;_top&quot; &gt;Tomcat - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Advise-on-configuring-SSL-tp26509182p26510512.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26510458</id>
	<title>Re: Tomcat Https loadbalancing??</title>
	<published>2009-11-25T02:28:09Z</published>
	<updated>2009-11-25T02:28:09Z</updated>
	<author>
		<name>jkv</name>
	</author>
	<content type="html">Thanks David,
&lt;br&gt;&lt;br&gt;I would imagine that with mod_proxy you could load balance https requests
&lt;br&gt;so that the https request goes to httpd then its load balanced between 
&lt;br&gt;https requests to
&lt;br&gt;multiple tomcats. What you'll loose over the ajp protocol i'm sure 
&lt;br&gt;someone will let us know
&lt;br&gt;&lt;br&gt;That sounds good but when https request hits Apache the certificate will be issued by the server to the client, now when this is again sent as https request to tomcat, which will again try issuing a certificate (I guess as this is a protocol standard), I dont know whether will this affect the client -&amp;gt; getting two certificates for a single https request?? 
&lt;br&gt;&lt;br&gt;Has any body done this before???
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;David Cassidy wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message shrinkable-quote&quot;&gt;Hey
&lt;br&gt;&lt;br&gt;Yes if you want httpd to load balance https requests you do need it to
&lt;br&gt;handle the https connection - and hence it needs the keys, certs etc
&lt;br&gt;&lt;br&gt;Sadly the ajp protocol is in fact insecure
&lt;br&gt;if you have the httpd and tomcat on separate boxes you do have a 
&lt;br&gt;security issue
&lt;br&gt;as the connection is transporting data in the clear.
&lt;br&gt;&lt;br&gt;I would imagine that with mod_proxy you could load balance https requests
&lt;br&gt;so that the https request goes to httpd then its load balanced between 
&lt;br&gt;https requests to
&lt;br&gt;multiple tomcats. What you'll loose over the ajp protocol i'm sure 
&lt;br&gt;someone will let us know
&lt;br&gt;&lt;br&gt;Hope this helps
&lt;br&gt;&lt;br&gt;D
&lt;br&gt;&lt;br&gt;&lt;br&gt;On 25/11/09 09:18, jkv wrote:
&lt;br&gt;&amp;gt; Hello,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; We are using Tomcat 6.0 and running HTTPS (enabled SSL). The number of
&lt;br&gt;&amp;gt; requests has grown up and we have decided to do go for clustering and
&lt;br&gt;&amp;gt; loadbalancing. We have decided to go for Apache and mod_proxy/mod_jk
&lt;br&gt;&amp;gt; loadbalacing. My certificate resides in Tomcat.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; In order to loadbalance HTTPS request using Apache and mod_proxy/mod_jk,
&lt;br&gt;&amp;gt; should I configure Apache to handle HTTPS and tell it about my certificate
&lt;br&gt;&amp;gt; details?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; While loadbalancing I understand that http/https request to Apache is
&lt;br&gt;&amp;gt; converted to ajp and tunneled to Tomcat, so is ajp protocol secure? should I
&lt;br&gt;&amp;gt; enable SSL in tomcat to handle this request?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Should I have two copies of my certificate files if Apache and Tomcat reside
&lt;br&gt;&amp;gt; on two different physical machines(Horizontal Clustering)?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I searched the forums and they are too advanced for my question. I am really
&lt;br&gt;&amp;gt; new to clustering and load balancing and any help is deeply appreciated.
&lt;br&gt;&amp;gt; Thanks in advance.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Regards
&lt;br&gt;&amp;gt; jkv
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;
&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Tomcat---User-f342.html&quot; embed=&quot;fixTarget[342]&quot; target=&quot;_top&quot; &gt;Tomcat - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Tomcat-Https-loadbalancing---tp26509573p26510458.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26510463</id>
	<title>Re: Tomcat Https loadbalancing??</title>
	<published>2009-11-25T02:27:49Z</published>
	<updated>2009-11-25T02:27:49Z</updated>
	<author>
		<name>Pid Ster</name>
	</author>
	<content type="html">On 25/11/2009 10:18, jkv wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks Peter,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; That really helps me a lot.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I got one small doubt in the last point that you said.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; In this environment, you only want your &amp;quot;public&amp;quot; certificate on httpd.
&lt;br&gt;&amp;gt; Tomcat will not be doing anything that uses it, so don't put a copy
&lt;br&gt;&amp;gt; on those machines.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; this means that I will not enable SSL in my tomcat.. I will comment
&lt;br&gt;&amp;gt; &amp;lt;!--&amp;lt;Connector port=&amp;quot;443&amp;quot; protocol=&amp;quot;HTTP/1.1&amp;quot; SSLEnabled=&amp;quot;true&amp;quot;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ....&amp;gt; &amp;nbsp;--&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; tag totally from server.xml file in tomcat and have just one connetor
&lt;br&gt;&amp;gt; element i.e.,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;Connector port=&amp;quot;8009&amp;quot; protocol=&amp;quot;AJP/1.3&amp;quot; redirectPort=&amp;quot;443&amp;quot; /&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I think I will have to remove the redirectPort=&amp;quot;443&amp;quot; attribute also?? as its
&lt;br&gt;&amp;gt; been handled for me by Apache.
&lt;/div&gt;&lt;br&gt;The redirectPort setting should stay, but HTTPD will still handle the 
&lt;br&gt;connection. &amp;nbsp; (If you remove the setting it'll probably just default to 
&lt;br&gt;a 443 anyway.)
&lt;br&gt;&lt;br&gt;It is used by Tomcat when a web.xml contains a &amp;lt;transport-guarantee&amp;gt; is 
&lt;br&gt;set to CONFIDENTIAL, to redirect &amp; upgrade the connection.
&lt;br&gt;&lt;br&gt;&lt;br&gt;p
&lt;br&gt;&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Thanks for the reply, that really helped a lot and we can also conclude we
&lt;br&gt;&amp;gt; cannot have a secure horizontal loadbalancing with Apache and Tomcat!
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Regards
&lt;br&gt;&amp;gt; JKV
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Peter Crowther wrote:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; 2009/11/25 jkv&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26510463&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;j.kumaravel@...&lt;/a&gt;&amp;gt;:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; We are using Tomcat 6.0 and running HTTPS (enabled SSL). The number of
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; requests has grown up and we have decided to do go for clustering and
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; loadbalancing. We have decided to go for Apache and mod_proxy/mod_jk
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; loadbalacing. My certificate resides in Tomcat.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; In order to loadbalance HTTPS request using Apache and mod_proxy/mod_jk,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; should I configure Apache to handle HTTPS and tell it about my
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; certificate
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; details?
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Yes. &amp;nbsp;Apache has to terminate the SSL connection when you're load
&lt;br&gt;&amp;gt;&amp;gt; balancing.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; While loadbalancing I understand that http/https request to Apache is
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; converted to ajp and tunneled to Tomcat, so is ajp protocol secure?
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; should I
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; enable SSL in tomcat to handle this request?
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; The AJP protocol is not secure. &amp;nbsp;It is only used between httpd and
&lt;br&gt;&amp;gt;&amp;gt; Tomcat. &amp;nbsp;You should perform some suitable threat modelling of your
&lt;br&gt;&amp;gt;&amp;gt; system. &amp;nbsp;If you think the threat from an attacker being able to sniff
&lt;br&gt;&amp;gt;&amp;gt; packets on the path between httpd and Tomcat is sufficiently low,
&lt;br&gt;&amp;gt;&amp;gt; leave it unencrypted. &amp;nbsp;If you think the threat is too high, encrypt it
&lt;br&gt;&amp;gt;&amp;gt; using some kind of secure tunnel between httpd and Tomcat, such as a
&lt;br&gt;&amp;gt;&amp;gt; VPN connection.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; My guess is that if someone's able to sniff packets on the link
&lt;br&gt;&amp;gt;&amp;gt; between httpd and Tomcat, you already have a big security issue.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Should I have two copies of my certificate files if Apache and Tomcat
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; reside
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; on two different physical machines(Horizontal Clustering)?
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; In this environment, you only want your &amp;quot;public&amp;quot; certificate on httpd.
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; Tomcat will not be doing anything that uses it, so don't put a copy
&lt;br&gt;&amp;gt;&amp;gt; on those machines.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Hope this helps,
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; - Peter
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26510463&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26510463&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26510463&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26510463&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Tomcat---User-f342.html&quot; embed=&quot;fixTarget[342]&quot; target=&quot;_top&quot; &gt;Tomcat - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Tomcat-Https-loadbalancing---tp26509573p26510463.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26510331</id>
	<title>Re: Tomcat Https loadbalancing??</title>
	<published>2009-11-25T02:18:11Z</published>
	<updated>2009-11-25T02:18:11Z</updated>
	<author>
		<name>jkv</name>
	</author>
	<content type="html">Thanks Peter,
&lt;br&gt;&lt;br&gt;That really helps me a lot.
&lt;br&gt;&lt;br&gt;I got one small doubt in the last point that you said.
&lt;br&gt;&lt;br&gt;In this environment, you only want your &amp;quot;public&amp;quot; certificate on httpd.
&lt;br&gt;Tomcat will not be doing anything that uses it, so don't put a copy
&lt;br&gt;on those machines.
&lt;br&gt;&lt;br&gt;this means that I will not enable SSL in my tomcat.. I will comment 
&lt;br&gt;&amp;lt;!-- &amp;lt;Connector port=&amp;quot;443&amp;quot; protocol=&amp;quot;HTTP/1.1&amp;quot; SSLEnabled=&amp;quot;true&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;....&amp;gt; --&amp;gt;
&lt;br&gt;&lt;br&gt;tag totally from server.xml file in tomcat and have just one connetor element i.e.,
&lt;br&gt;&lt;br&gt;&amp;lt;Connector port=&amp;quot;8009&amp;quot; protocol=&amp;quot;AJP/1.3&amp;quot; redirectPort=&amp;quot;443&amp;quot; /&amp;gt;
&lt;br&gt;&lt;br&gt;I think I will have to remove the redirectPort=&amp;quot;443&amp;quot; attribute also?? as its been handled for me by Apache.
&lt;br&gt;&lt;br&gt;Thanks for the reply, that really helped a lot and we can also conclude we cannot have a secure horizontal loadbalancing with Apache and Tomcat! 
&lt;br&gt;&lt;br&gt;Regards
&lt;br&gt;JKV
&lt;br&gt;&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;Peter Crowther wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message shrinkable-quote&quot;&gt;2009/11/25 jkv &amp;lt;j.kumaravel@gmail.com&amp;gt;:
&lt;br&gt;&amp;gt; We are using Tomcat 6.0 and running HTTPS (enabled SSL). The number of
&lt;br&gt;&amp;gt; requests has grown up and we have decided to do go for clustering and
&lt;br&gt;&amp;gt; loadbalancing. We have decided to go for Apache and mod_proxy/mod_jk
&lt;br&gt;&amp;gt; loadbalacing. My certificate resides in Tomcat.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; In order to loadbalance HTTPS request using Apache and mod_proxy/mod_jk,
&lt;br&gt;&amp;gt; should I configure Apache to handle HTTPS and tell it about my certificate
&lt;br&gt;&amp;gt; details?
&lt;br&gt;&lt;br&gt;Yes. &amp;nbsp;Apache has to terminate the SSL connection when you're load balancing.
&lt;br&gt;&lt;br&gt;&amp;gt; While loadbalancing I understand that http/https request to Apache is
&lt;br&gt;&amp;gt; converted to ajp and tunneled to Tomcat, so is ajp protocol secure? should I
&lt;br&gt;&amp;gt; enable SSL in tomcat to handle this request?
&lt;br&gt;&lt;br&gt;The AJP protocol is not secure. &amp;nbsp;It is only used between httpd and
&lt;br&gt;Tomcat. &amp;nbsp;You should perform some suitable threat modelling of your
&lt;br&gt;system. &amp;nbsp;If you think the threat from an attacker being able to sniff
&lt;br&gt;packets on the path between httpd and Tomcat is sufficiently low,
&lt;br&gt;leave it unencrypted. &amp;nbsp;If you think the threat is too high, encrypt it
&lt;br&gt;using some kind of secure tunnel between httpd and Tomcat, such as a
&lt;br&gt;VPN connection.
&lt;br&gt;&lt;br&gt;My guess is that if someone's able to sniff packets on the link
&lt;br&gt;between httpd and Tomcat, you already have a big security issue.
&lt;br&gt;&lt;br&gt;&amp;gt; Should I have two copies of my certificate files if Apache and Tomcat reside
&lt;br&gt;&amp;gt; on two different physical machines(Horizontal Clustering)?
&lt;br&gt;&lt;br&gt;In this environment, you only want your &amp;quot;public&amp;quot; certificate on httpd.
&lt;br&gt;&amp;nbsp;Tomcat will not be doing anything that uses it, so don't put a copy
&lt;br&gt;on those machines.
&lt;br&gt;&lt;br&gt;Hope this helps,
&lt;br&gt;&lt;br&gt;- Peter
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
&lt;br&gt;For additional commands, e-mail: users-help@tomcat.apache.org
&lt;br&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Tomcat---User-f342.html&quot; embed=&quot;fixTarget[342]&quot; target=&quot;_top&quot; &gt;Tomcat - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Tomcat-Https-loadbalancing---tp26509573p26510331.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26510246</id>
	<title>Re: ArrayIndexOutOfBoundsException</title>
	<published>2009-11-25T02:10:18Z</published>
	<updated>2009-11-25T02:10:18Z</updated>
	<author>
		<name>Pid Ster</name>
	</author>
	<content type="html">On 25/11/2009 08:17, &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26510246&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;geoffrey@...&lt;/a&gt; wrote:
&lt;br&gt;&amp;gt; I changed the size to 4K, 50K and 1 byte without any luck.
&lt;br&gt;&lt;br&gt;What about adding a byte counter to catch when the exception occurs?
&lt;br&gt;&lt;br&gt;&lt;br&gt;p
&lt;br&gt;&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Best Regards
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Geoffrey
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Phone Norway: &amp;nbsp;+47 45 86 53 83
&lt;br&gt;&amp;gt; Fileflow Technologies AS
&lt;br&gt;&amp;gt; Ole Deviks vei 35, 0668 Oslo, Norway
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; -------------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On 25 Nov 2009, at 00:28, Pid wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; On 24/11/2009 20:03, Konstantin Kolinko wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 2009/11/24&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26510246&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;geoffrey@...&lt;/a&gt;&amp;gt;:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; There is a different amount of data sent each time before it crashes. I also tried byte by byte and gets the same error but it seems that it is less often.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; So it is random... I wonder what can trigger it.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; What connectors are you using? Is it HTTP, or AJP? What is your
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; configuration as a whole?
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; There was the following bugreport recently:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;https://issues.apache.org/bugzilla/show_bug.cgi?id=48105&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/bugzilla/show_bug.cgi?id=48105&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; The reporter of issue 48105 wrote that he saw exceptions in 6.0.18,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; .20 as well, but no stack traces were provided, so it is unconfirmed.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I don't think we got to the bottom of why that was happening. &amp;nbsp;I was hoping the problem would be in the same method, but it's not in exactly the same location for both.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; The append(byte[], int, int) method is implicated in both, and in both cases an 8k byte buffer was in use in the app code.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; @Geoffrey - can you try using a smaller (say 4k) byte buffer instead, and adding some code to count how many bytes have been sent when the error occurs?
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; p
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26510246&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26510246&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26510246&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26510246&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26510246&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26510246&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Tomcat---User-f342.html&quot; embed=&quot;fixTarget[342]&quot; target=&quot;_top&quot; &gt;Tomcat - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/ArrayIndexOutOfBoundsException-tp26499524p26510246.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26510079</id>
	<title>Re: Tomcat Https loadbalancing??</title>
	<published>2009-11-25T01:57:08Z</published>
	<updated>2009-11-25T01:57:08Z</updated>
	<author>
		<name>Peter Crowther</name>
	</author>
	<content type="html">2009/11/25 jkv &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26510079&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;j.kumaravel@...&lt;/a&gt;&amp;gt;:
&lt;br&gt;&amp;gt; We are using Tomcat 6.0 and running HTTPS (enabled SSL). The number of
&lt;br&gt;&amp;gt; requests has grown up and we have decided to do go for clustering and
&lt;br&gt;&amp;gt; loadbalancing. We have decided to go for Apache and mod_proxy/mod_jk
&lt;br&gt;&amp;gt; loadbalacing. My certificate resides in Tomcat.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; In order to loadbalance HTTPS request using Apache and mod_proxy/mod_jk,
&lt;br&gt;&amp;gt; should I configure Apache to handle HTTPS and tell it about my certificate
&lt;br&gt;&amp;gt; details?
&lt;br&gt;&lt;br&gt;Yes. &amp;nbsp;Apache has to terminate the SSL connection when you're load balancing.
&lt;br&gt;&lt;br&gt;&amp;gt; While loadbalancing I understand that http/https request to Apache is
&lt;br&gt;&amp;gt; converted to ajp and tunneled to Tomcat, so is ajp protocol secure? should I
&lt;br&gt;&amp;gt; enable SSL in tomcat to handle this request?
&lt;br&gt;&lt;br&gt;The AJP protocol is not secure. &amp;nbsp;It is only used between httpd and
&lt;br&gt;Tomcat. &amp;nbsp;You should perform some suitable threat modelling of your
&lt;br&gt;system. &amp;nbsp;If you think the threat from an attacker being able to sniff
&lt;br&gt;packets on the path between httpd and Tomcat is sufficiently low,
&lt;br&gt;leave it unencrypted. &amp;nbsp;If you think the threat is too high, encrypt it
&lt;br&gt;using some kind of secure tunnel between httpd and Tomcat, such as a
&lt;br&gt;VPN connection.
&lt;br&gt;&lt;br&gt;My guess is that if someone's able to sniff packets on the link
&lt;br&gt;between httpd and Tomcat, you already have a big security issue.
&lt;br&gt;&lt;br&gt;&amp;gt; Should I have two copies of my certificate files if Apache and Tomcat reside
&lt;br&gt;&amp;gt; on two different physical machines(Horizontal Clustering)?
&lt;br&gt;&lt;br&gt;In this environment, you only want your &amp;quot;public&amp;quot; certificate on httpd.
&lt;br&gt;&amp;nbsp;Tomcat will not be doing anything that uses it, so don't put a copy
&lt;br&gt;on those machines.
&lt;br&gt;&lt;br&gt;Hope this helps,
&lt;br&gt;&lt;br&gt;- Peter
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26510079&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26510079&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Tomcat---User-f342.html&quot; embed=&quot;fixTarget[342]&quot; target=&quot;_top&quot; &gt;Tomcat - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Tomcat-Https-loadbalancing---tp26509573p26510079.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26510054</id>
	<title>Re: Tomcat Https loadbalancing??</title>
	<published>2009-11-25T01:54:47Z</published>
	<updated>2009-11-25T01:54:47Z</updated>
	<author>
		<name>David Cassidy</name>
	</author>
	<content type="html">Hey
&lt;br&gt;&lt;br&gt;Yes if you want httpd to load balance https requests you do need it to
&lt;br&gt;handle the https connection - and hence it needs the keys, certs etc
&lt;br&gt;&lt;br&gt;Sadly the ajp protocol is in fact insecure
&lt;br&gt;if you have the httpd and tomcat on separate boxes you do have a 
&lt;br&gt;security issue
&lt;br&gt;as the connection is transporting data in the clear.
&lt;br&gt;&lt;br&gt;I would imagine that with mod_proxy you could load balance https requests
&lt;br&gt;so that the https request goes to httpd then its load balanced between 
&lt;br&gt;https requests to
&lt;br&gt;multiple tomcats. What you'll loose over the ajp protocol i'm sure 
&lt;br&gt;someone will let us know
&lt;br&gt;&lt;br&gt;Hope this helps
&lt;br&gt;&lt;br&gt;D
&lt;br&gt;&lt;br&gt;&lt;br&gt;On 25/11/09 09:18, jkv wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hello,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; We are using Tomcat 6.0 and running HTTPS (enabled SSL). The number of
&lt;br&gt;&amp;gt; requests has grown up and we have decided to do go for clustering and
&lt;br&gt;&amp;gt; loadbalancing. We have decided to go for Apache and mod_proxy/mod_jk
&lt;br&gt;&amp;gt; loadbalacing. My certificate resides in Tomcat.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; In order to loadbalance HTTPS request using Apache and mod_proxy/mod_jk,
&lt;br&gt;&amp;gt; should I configure Apache to handle HTTPS and tell it about my certificate
&lt;br&gt;&amp;gt; details?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; While loadbalancing I understand that http/https request to Apache is
&lt;br&gt;&amp;gt; converted to ajp and tunneled to Tomcat, so is ajp protocol secure? should I
&lt;br&gt;&amp;gt; enable SSL in tomcat to handle this request?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Should I have two copies of my certificate files if Apache and Tomcat reside
&lt;br&gt;&amp;gt; on two different physical machines(Horizontal Clustering)?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I searched the forums and they are too advanced for my question. I am really
&lt;br&gt;&amp;gt; new to clustering and load balancing and any help is deeply appreciated.
&lt;br&gt;&amp;gt; Thanks in advance.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Regards
&lt;br&gt;&amp;gt; jkv
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&lt;/div&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Tomcat---User-f342.html&quot; embed=&quot;fixTarget[342]&quot; target=&quot;_top&quot; &gt;Tomcat - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Tomcat-Https-loadbalancing---tp26509573p26510054.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26509860</id>
	<title>Re: Advise on configuring SSL</title>
	<published>2009-11-25T01:40:52Z</published>
	<updated>2009-11-25T01:40:52Z</updated>
	<author>
		<name>Cyrille Le Clerc-3</name>
	</author>
	<content type="html">&amp;nbsp; &amp;nbsp;Hello CBy,
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;My preference to handle SSL at the Apache Httpd level is to insert
&lt;br&gt;a header &amp;quot;x-forwarded-proto=http|https&amp;quot; in Apache with mod_header, to
&lt;br&gt;transmit the request in clear http to tomcat and then to intercept
&lt;br&gt;this &amp;quot;x-forwarded-proto&amp;quot; header in Tomcat with the RemoteIpValve.
&lt;br&gt;&amp;nbsp; &amp;nbsp;This valve will be integrated in Tomcat's distribution in version
&lt;br&gt;6.0.21 and is currently available on a Google Code Project (1).
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;Another solution is to introduce a second HTTP connector in Tomcat
&lt;br&gt;with the attributes secure=true and scheme=https. Even if this
&lt;br&gt;connector uses HTTP instead of HTTPS, the connector attributes will
&lt;br&gt;set request.isSecure() to true and request.getScheme() to https.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;I have written a very detailed document &amp;quot;Tomcat, SSL, secure
&lt;br&gt;communications and X-Forwarded-Proto&amp;quot; (2) that explains solutions to
&lt;br&gt;handle HTTPS at the Tomcat, Apache Httpd and Load Balancer layers. The
&lt;br&gt;document is written in french but the google translation is quite good
&lt;br&gt;(3).
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;Hope this helps,
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;Cyrille
&lt;br&gt;&lt;br&gt;--
&lt;br&gt;Cyrille Le Clerc
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26509860&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;cleclerc@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://blog.xebia.fr&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://blog.xebia.fr&lt;/a&gt;&lt;br&gt;&lt;br&gt;(1) &lt;a href=&quot;http://code.google.com/p/xebia-france/wiki/RemoteIpValve&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://code.google.com/p/xebia-france/wiki/RemoteIpValve&lt;/a&gt;&lt;br&gt;(2) &lt;a href=&quot;http://blog.xebia.fr/2009/11/13/tomcat-ssl-communications-securisees-et-x-forwarded-proto/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://blog.xebia.fr/2009/11/13/tomcat-ssl-communications-securisees-et-x-forwarded-proto/&lt;/a&gt;&lt;br&gt;(3) &lt;a href=&quot;http://translate.google.com/translate?js=y&amp;prev=_t&amp;hl=en&amp;ie=UTF-8&amp;u=http%3A%2F%2Fblog.xebia.fr%2F2009%2F11%2F13%2Ftomcat-ssl-communications-securisees-et-x-forwarded-proto%2F&amp;sl=fr&amp;tl=en&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://translate.google.com/translate?js=y&amp;prev=_t&amp;hl=en&amp;ie=UTF-8&amp;u=http%3A%2F%2Fblog.xebia.fr%2F2009%2F11%2F13%2Ftomcat-ssl-communications-securisees-et-x-forwarded-proto%2F&amp;sl=fr&amp;tl=en&lt;/a&gt;&lt;br&gt;&lt;br&gt;On Wed, Nov 25, 2009 at 9:43 AM, CBy &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26509860&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;tomcat@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; In my current working environment, Tomcat 6.0.18 is behind Apache. I don't
&lt;br&gt;&amp;gt; know why they chose this setup, because Apache only acts as a proxy, it
&lt;br&gt;&amp;gt; doesn't host anything. I do have experience in setting up SSL for
&lt;br&gt;&amp;gt; stand-alone Tomcat, but have no experience with Apache whatsoever. Since I
&lt;br&gt;&amp;gt; do have administrative rights for Tomcat, but not for Apache, I was thinking
&lt;br&gt;&amp;gt; of letting Tomcat handle SSL. Is that sensible or is it better to configure
&lt;br&gt;&amp;gt; this with Apache in this case?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; CBy
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26509860&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26509860&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26509860&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26509860&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Tomcat---User-f342.html&quot; embed=&quot;fixTarget[342]&quot; target=&quot;_top&quot; &gt;Tomcat - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Advise-on-configuring-SSL-tp26509182p26509860.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26509767</id>
	<title>Re: Redirecting a port to a webapp</title>
	<published>2009-11-25T01:32:49Z</published>
	<updated>2009-11-25T01:32:49Z</updated>
	<author>
		<name>Pid Ster</name>
	</author>
	<content type="html">On 25/11/2009 07:24, Looijmans, Mike wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;&amp;gt; I think so too. &amp;nbsp;My personal doubt is still about how Tomcat
&lt;br&gt;&amp;gt;&amp;gt; would try map a request that comes in as &amp;quot;/xxxx&amp;quot;, &amp;quot;xxxx&amp;quot;
&lt;br&gt;&amp;gt;&amp;gt; being variable and being NOT &amp;quot;myapp&amp;quot;. &amp;nbsp;Since it does not find
&lt;br&gt;&amp;gt;&amp;gt; a match with &amp;quot;/myapp&amp;quot;, and since obviously there cannot be an
&lt;br&gt;&amp;gt;&amp;gt; infinity of &amp;quot;/webapps/xxxx&amp;quot; apps pre-configured, would it
&lt;br&gt;&amp;gt;&amp;gt; then pass it to the &amp;quot;default app&amp;quot; (/ROOT) ?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I tried this route, and the results are quite remarkable.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; When I deploy the webapp as ROOT.war, it gets to serve all requests that
&lt;br&gt;&amp;gt; don't match anything else. So if the webapps dir looks like this:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; /ROOT.war
&lt;br&gt;&amp;gt; /SomeApp/*
&lt;br&gt;&amp;gt; /OtherApp.war
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; When I send a request for /SomeApp/something, it goes to the webapp in
&lt;br&gt;&amp;gt; that folder, likewise a request for /OtherApp/something ends up in the
&lt;br&gt;&amp;gt; OtherApp servlet.
&lt;br&gt;&amp;gt; A request for /foo or /bar, which does not match anything in the folder,
&lt;br&gt;&amp;gt; gets sent to the ROOT.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; With this mechanism, I could program the ROOT as (in pseudocode):
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; if port == 666:
&lt;br&gt;&amp;gt; 	handle(pathinfo)
&lt;br&gt;&amp;gt; else if pathinfo.startwith('/MyApp'):
&lt;br&gt;&amp;gt; 	handle(pathinfo.split('/',2)[1])
&lt;/div&gt;&lt;br&gt;Don't forget, if /MyApp actually exists the ROOT app won't see such a 
&lt;br&gt;request.
&lt;br&gt;&lt;br&gt;&lt;br&gt;p
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;gt; else:
&lt;br&gt;&amp;gt; 	error(404)
&lt;br&gt;&amp;nbsp;&amp;gt;
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; This message and attachment(s) are intended solely for use by the addressee and may contain information that is privileged, confidential or otherwise exempt from disclosure under applicable law.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; If you are not the intended recipient or agent thereof responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; If you have received this communication in error, please notify the sender immediately by telephone and with a 'reply' message.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thank you for your co-operation.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26509767&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26509767&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26509767&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26509767&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Tomcat---User-f342.html&quot; embed=&quot;fixTarget[342]&quot; target=&quot;_top&quot; &gt;Tomcat - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Redirecting-a-port-to-a-webapp-tp26475356p26509767.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26509660</id>
	<title>RE: AD Authentication</title>
	<published>2009-11-25T01:24:14Z</published>
	<updated>2009-11-25T01:24:14Z</updated>
	<author>
		<name>Samuel Penn</name>
	</author>
	<content type="html">On Tue, 24 Nov 2009 13:04:34 -0600, &amp;quot;Caldarale, Charles R&amp;quot;
&lt;br&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26509660&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Chuck.Caldarale@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;&amp;gt; From: Samuel Penn [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26509660&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;sam@...&lt;/a&gt;]
&lt;br&gt;&amp;gt;&amp;gt; Subject: AD Authentication
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; &amp;lt;Realm className=&amp;quot;org.apache.catalina.realm.JNDIRealm&amp;quot; debug=&amp;quot;99&amp;quot;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;connectionURL=&amp;quot;ldap://172.17.10.100:389&amp;quot;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;connectionName=&amp;quot;cn=SvcUser,cn=users,dc=myorg,dc=local&amp;quot;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;connectionPassword=&amp;quot;********&amp;quot;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;userBase=&amp;quot;ou=staff,dc=myorg,dc=local&amp;quot;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;userPattern=&amp;quot;sAMAccountName={0}&amp;quot;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;roleBase=&amp;quot;cn=users,dc=myorg,dc=local&amp;quot;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;roleName=&amp;quot;cn&amp;quot;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;roleSearch=&amp;quot;(member={0})&amp;quot;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;roleSubtree=&amp;quot;false&amp;quot;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;userSubtree=&amp;quot;true&amp;quot;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;authentication=&amp;quot;simple&amp;quot;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;referrals=&amp;quot;follow&amp;quot;
&lt;br&gt;&amp;gt;&amp;gt; /&amp;gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; The doc says that userPattern can be used *instead of* userSearch,
&lt;br&gt;&amp;gt; userSubtree, and userBase; no mention is made of what happens when you
&lt;br&gt;&amp;gt; specify all of them, but it wouldn't surprise me that things get
&lt;/div&gt;confused.
&lt;br&gt;&lt;br&gt;I think I've amalgamated several examples from the docs as time has gone
&lt;br&gt;on. With just userPattern, I get no errors, a failed login and no useful
&lt;br&gt;messages at all to say why it's failing.
&lt;br&gt;&lt;br&gt;Which may be better, but I can't tell at this stage.
&lt;br&gt;&lt;br&gt;&amp;gt; Also, it seems odd that the roleName attribute is part of the roleBase -
&lt;br&gt;&amp;gt; that doesn't seem to make any sense.
&lt;br&gt;&lt;br&gt;The roles are of the format:
&lt;br&gt;&lt;br&gt;cn=ECM Team, cn=Users,DC=MyOrg,DC=local
&lt;br&gt;&lt;br&gt;So my understanding is that it's looking for a cn within another cn. I
&lt;br&gt;can't
&lt;br&gt;comment on whether this is valid, but it's what is setup in our directory.
&lt;br&gt;&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; I note that I get a warning message about the debug=&amp;quot;99&amp;quot; property,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; The debug attribute hasn't been used in quite some time, but the doc lags
&lt;br&gt;&amp;gt; behind.
&lt;br&gt;&lt;br&gt;I take it I need to configure debug through log4j now then?
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26509660&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26509660&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Tomcat---User-f342.html&quot; embed=&quot;fixTarget[342]&quot; target=&quot;_top&quot; &gt;Tomcat - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/AD-Authentication-tp26500336p26509660.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26509573</id>
	<title>Tomcat Https loadbalancing??</title>
	<published>2009-11-25T01:18:07Z</published>
	<updated>2009-11-25T01:18:07Z</updated>
	<author>
		<name>jkv</name>
	</author>
	<content type="html">Hello,
&lt;br&gt;&lt;br&gt;We are using Tomcat 6.0 and running HTTPS (enabled SSL). The number of requests has grown up and we have decided to do go for clustering and loadbalancing. We have decided to go for Apache and mod_proxy/mod_jk loadbalacing. My certificate resides in Tomcat. 
&lt;br&gt;&lt;br&gt;In order to loadbalance HTTPS request using Apache and mod_proxy/mod_jk, should I configure Apache to handle HTTPS and tell it about my certificate details? 
&lt;br&gt;&lt;br&gt;While loadbalancing I understand that http/https request to Apache is converted to ajp and tunneled to Tomcat, so is ajp protocol secure? should I enable SSL in tomcat to handle this request? 
&lt;br&gt;&lt;br&gt;Should I have two copies of my certificate files if Apache and Tomcat reside on two different physical machines(Horizontal Clustering)?
&lt;br&gt;&lt;br&gt;I searched the forums and they are too advanced for my question. I am really new to clustering and load balancing and any help is deeply appreciated. Thanks in advance.
&lt;br&gt;&lt;br&gt;Regards
&lt;br&gt;jkv&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Tomcat---User-f342.html&quot; embed=&quot;fixTarget[342]&quot; target=&quot;_top&quot; &gt;Tomcat - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Tomcat-Https-loadbalancing---tp26509573p26509573.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26509465</id>
	<title>Re: AD Authentication</title>
	<published>2009-11-25T01:09:16Z</published>
	<updated>2009-11-25T01:09:16Z</updated>
	<author>
		<name>Samuel Penn</name>
	</author>
	<content type="html">On Tue, 24 Nov 2009 19:50:59 +0100, &amp;quot;André Warnier&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26509465&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;aw@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; Samuel Penn wrote:
&lt;br&gt;&amp;gt;&amp;gt; Hi all,
&lt;br&gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; I'm trying to get Tomcat to authenticate against Active Directory, but
&lt;br&gt;&amp;gt;&amp;gt; failing
&lt;br&gt;&amp;gt; ...
&lt;br&gt;&amp;gt; Not directly related to what your current issue is, but just as 
&lt;br&gt;&amp;gt; information : &lt;a href=&quot;http://www.ioplex.com/jespa.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.ioplex.com/jespa.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;I've seen that, though it has a license cost associated with it which
&lt;br&gt;rules it out as an immediate option.
&lt;br&gt;&lt;br&gt;&amp;gt; I have found that in the practice, there is a certain amount of 
&lt;br&gt;&amp;gt; confusion at the interface between the Java/Open Source world, and the 
&lt;br&gt;&amp;gt; corporate Windows-centric world.
&lt;br&gt;&amp;gt; When a Unix/Linux/Open Source developer type asks the corporate 
&lt;br&gt;&amp;gt; MS-Windows sysadmin type what the &amp;quot;network user authentication method&amp;quot; 
&lt;br&gt;&amp;gt; is, very often the answer will be &amp;quot;Active Directory&amp;quot;.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; In fact, it isn't.
&lt;br&gt;&lt;br&gt;Yeah, I'm vaguely aware of that if pushed, though now to a slightly
&lt;br&gt;higher level of detail thanks to your explanation.
&lt;br&gt;&lt;br&gt;&amp;gt; There used to be an open source similar solution available, made by the 
&lt;br&gt;&amp;gt; same people who make jCIFS (at samba.org). &amp;nbsp;It was called the &amp;quot;jCIFS 
&lt;br&gt;&amp;gt; HTTP NTLM authentication filter&amp;quot; or similar. &amp;nbsp;But that software is no 
&lt;br&gt;&amp;gt; longer developed or maintained, and does not work with recent revisions 
&lt;br&gt;&amp;gt; of the Windows NTLM protocol (v2, as standard since Vista and beyond).
&lt;br&gt;&amp;gt; Jespa works with all NTLM versions.
&lt;br&gt;&lt;br&gt;I've looked at that (that's where I saw the link to Jespa), and I've
&lt;br&gt;actually implemented it and got it working. The issue was it doesn't seem
&lt;br&gt;to allow checking of groups. I may go down the jCIFS route, and limit
&lt;br&gt;access rights on a per-user (rather than the preferred per-group) basis.
&lt;br&gt;My explorations of LDAP was to see if this gave me group level checking
&lt;br&gt;without having to worry about licensing.
&lt;br&gt;&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;&lt;br&gt;Sam.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26509465&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26509465&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Tomcat---User-f342.html&quot; embed=&quot;fixTarget[342]&quot; target=&quot;_top&quot; &gt;Tomcat - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/AD-Authentication-tp26500336p26509465.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26509284</id>
	<title>Re: ArrayIndexOutOfBoundsException</title>
	<published>2009-11-25T00:53:42Z</published>
	<updated>2009-11-25T00:53:42Z</updated>
	<author>
		<name>Ronald Klop</name>
	</author>
	<content type="html">You can compile Tomcat yourself and insert some debug statements at the location of the exception.
&lt;br&gt;&lt;br&gt;Ronald.
&lt;br&gt;&lt;br&gt;&lt;br&gt;Op dinsdag, 24 november 2009 18:17 schreef &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26509284&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;geoffrey@...&lt;/a&gt;:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; The bytesRead returns the size of the buffer (8KB) every time. I also debug and I can't find anything wrong. Input and OutputStream are not null, bytesRead is the correct size and the buffer is also filled.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Any other ideas?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Best Regards
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Geoffrey
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; On 24 Nov 2009, at 18:13, Ronald Klop wrote:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; Try insert some debug statements just before the out.write.
&lt;br&gt;&amp;gt; &amp;gt; System.out.println(&amp;quot;bytesRead: &amp;quot; + bytesRead) would be interesting.
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; In fact this is kind of my-first-debugging and you don't even mention you did try it.
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; Ronald.
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; Op dinsdag, 24 november 2009 17:57 schreef &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26509284&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;geoffrey@...&lt;/a&gt;:
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; Hi everyone.
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; I'm stuck with a problem I don't understand. We have a tomcat server and after redeploying our war file, we get this error:
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; java.lang.ArrayIndexOutOfBoundsException
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; at org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java:346)
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; at org.apache.coyote.http11.InternalOutputBuffer$OutputStreamOutputBuffer.doWrite(InternalOutputBuffer.java:764)
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; at org.apache.coyote.http11.filters.IdentityOutputFilter.doWrite(IdentityOutputFilter.java:118)
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; at org.apache.coyote.http11.InternalOutputBuffer.doWrite(InternalOutputBuffer.java:573)
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; at org.apache.coyote.Response.doWrite(Response.java:560)
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; at org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:353)
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; at org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java:325)
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; at org.apache.catalina.connector.OutputBuffer.writeBytes(OutputBuffer.java:381)
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; at org.apache.catalina.connector.OutputBuffer.write(OutputBuffer.java:370)
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; at org.apache.catalina.connector.CoyoteOutputStream.write(CoyoteOutputStream.java:89)
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; at com.fileflow.downloader.Downloader.doGet(Downloader.java:123)
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; at java.lang.Thread.run(Thread.java:619)
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; Notice that there are no number on the first line and it is usually the case.
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; The code that is &amp;quot;responsible is:
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; private ServletOutputStream out;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; private InputStream in;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; ...
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; in = new FileInputStream(tmp);
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; ...
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; out = response.getOutputStream();
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; byte[] buf = new byte[8 * 1024]; // 8K buffer
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; int bytesRead;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; while((bytesRead = in.read(buf)) &amp;gt; 0) {
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; out.write(buf, 0, bytesRead);
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; }
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; The updated code didn't change anything in that Servlet so I really have no clue what happened. It happens on tomcat 6.0.18 and 6.0.20. Java is 1.6.0_11.
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; Thanks for any help.
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; Best Regards
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; Geoffrey
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Tomcat---User-f342.html&quot; embed=&quot;fixTarget[342]&quot; target=&quot;_top&quot; &gt;Tomcat - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/ArrayIndexOutOfBoundsException-tp26499524p26509284.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26509182</id>
	<title>Advise on configuring SSL</title>
	<published>2009-11-25T00:43:27Z</published>
	<updated>2009-11-25T00:43:27Z</updated>
	<author>
		<name>CBy-2</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;In my current working environment, Tomcat 6.0.18 is behind Apache. I 
&lt;br&gt;don't know why they chose this setup, because Apache only acts as a 
&lt;br&gt;proxy, it doesn't host anything. I do have experience in setting up SSL 
&lt;br&gt;for stand-alone Tomcat, but have no experience with Apache whatsoever. 
&lt;br&gt;Since I do have administrative rights for Tomcat, but not for Apache, I 
&lt;br&gt;was thinking of letting Tomcat handle SSL. Is that sensible or is it 
&lt;br&gt;better to configure this with Apache in this case?
&lt;br&gt;&lt;br&gt;CBy
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26509182&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26509182&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Tomcat---User-f342.html&quot; embed=&quot;fixTarget[342]&quot; target=&quot;_top&quot; &gt;Tomcat - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Advise-on-configuring-SSL-tp26509182p26509182.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26509058</id>
	<title>DO NOT REPLY [Bug 45255] support disable jsessionid from url against session fixation attacks</title>
	<published>2009-11-25T00:31:48Z</published>
	<updated>2009-11-25T00:31:48Z</updated>
	<author>
		<name>Bugzilla from bugzilla@apache.org</name>
	</author>
	<content type="html">&lt;a href=&quot;https://issues.apache.org/bugzilla/show_bug.cgi?id=45255&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/bugzilla/show_bug.cgi?id=45255&lt;/a&gt;&lt;br&gt;&lt;br&gt;Maxim Valyanskiy &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26509058&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;max.valjanski@...&lt;/a&gt;&amp;gt; changed:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;What &amp;nbsp; &amp;nbsp;|Removed &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |Added
&lt;br&gt;----------------------------------------------------------------------------
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;CC| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26509058&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;max.valjanski@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Configure bugmail: &lt;a href=&quot;https://issues.apache.org/bugzilla/userprefs.cgi?tab=email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/bugzilla/userprefs.cgi?tab=email&lt;/a&gt;&lt;br&gt;------- You are receiving this mail because: -------
&lt;br&gt;You are the assignee for the bug.
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26509058&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26509058&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Tomcat---Dev-f341.html&quot; embed=&quot;fixTarget[341]&quot; target=&quot;_top&quot; &gt;Tomcat - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/DO-NOT-REPLY--Bug-45255--New%3A-support-disable-jsessionid-from-url-against-session-fixation-attacks-tp18064829p26509058.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26509016</id>
	<title>Re: ArrayIndexOutOfBoundsException</title>
	<published>2009-11-25T00:26:50Z</published>
	<updated>2009-11-25T00:26:50Z</updated>
	<author>
		<name>Geoffrey Rekier-2</name>
	</author>
	<content type="html">&lt;br&gt;On 25 Nov 2009, at 04:14, Konstantin Kolinko wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; 2009/11/24 &amp;nbsp;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26509016&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;geoffrey@...&lt;/a&gt;&amp;gt;:
&lt;br&gt;&amp;gt;&amp;gt; HTTP connector. I'll attach the conf folder from tomcat.
&lt;br&gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; Best Regards
&lt;br&gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; Geoffrey
&lt;br&gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; Phone Norway: &amp;nbsp;+47 45 86 53 83
&lt;br&gt;&amp;gt;&amp;gt; Fileflow Technologies AS
&lt;br&gt;&amp;gt;&amp;gt; Ole Deviks vei 35, 0668 Oslo, Norway
&lt;br&gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; -------------------------------------
&lt;br&gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; On 24 Nov 2009, at 21:03, Konstantin Kolinko wrote:
&lt;br&gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 2009/11/24 &amp;nbsp;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26509016&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;geoffrey@...&lt;/a&gt;&amp;gt;:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; There is a different amount of data sent each time before it crashes. I also tried byte by byte and gets the same error but it seems that it is less often.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; So it is random... I wonder what can trigger it.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; What connectors are you using? Is it HTTP, or AJP? What is your
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; configuration as a whole?
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; There was the following bugreport recently:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;https://issues.apache.org/bugzilla/show_bug.cgi?id=48105&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/bugzilla/show_bug.cgi?id=48105&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; The reporter of issue 48105 wrote that he saw exceptions in 6.0.18,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; .20 as well, but no stack traces were provided, so it is unconfirmed.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Thank you.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Could it be that there are several threads that have access to the
&lt;br&gt;&amp;gt; same Response object? (That is illegal).
&lt;br&gt;&amp;gt; You can try setting the ...RECYCLE_FACADES property to &amp;quot;true&amp;quot;, see the
&lt;br&gt;&amp;gt; full name of it and description in
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://tomcat.apache.org/tomcat-6.0-doc/config/systemprops.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://tomcat.apache.org/tomcat-6.0-doc/config/systemprops.html&lt;/a&gt;&lt;br&gt;&amp;gt; You can add it to the end of the catalina.properties file.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I do not see what else can cause randomness in writing out a response.
&lt;br&gt;&amp;gt; Different length of headers? I see that you have
&lt;br&gt;&amp;gt; maxHttpHeaderSize=&amp;quot;50000&amp;quot;
&lt;/div&gt;&lt;/div&gt;&amp;nbsp;The maxHttpHeaderSize=&amp;quot;50000&amp;quot; was added to try to solve the problem (I saw it somewhere when googling) but did nothing to help
&lt;br&gt;&lt;br&gt;&amp;gt; Are you using Tomcat-Native (tcnative-1.dll, libtcnative-1.so)?
&lt;br&gt;&lt;br&gt;I do not use native library (not that I'm aware of) and I can't find .so file when searching.
&lt;br&gt;&lt;br&gt;&amp;gt; I see that you have an AprLifecycleListener in your server.xml. Does
&lt;br&gt;&amp;gt; it print a warning that tomcat-native is not present when Tomcat is
&lt;br&gt;&amp;gt; started? &amp;nbsp;
&lt;br&gt;&lt;br&gt;There are no errors on startup.
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; You can comment it out to disable Tomcat-Native and to
&lt;br&gt;&amp;gt; disable that warning message if you are not going to use it.
&lt;br&gt;&amp;gt; See
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://tomcat.apache.org/tomcat-6.0-doc/config/listeners.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://tomcat.apache.org/tomcat-6.0-doc/config/listeners.html&lt;/a&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Best regards,
&lt;br&gt;&amp;gt; Konstantin Kolinko
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26509016&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26509016&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;/div&gt;&lt;br /&gt; &lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;smime.p7s&lt;/strong&gt; (5K) &lt;a href=&quot;http://old.nabble.com/attachment/26509016/0/smime.p7s&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Tomcat---User-f342.html&quot; embed=&quot;fixTarget[342]&quot; target=&quot;_top&quot; &gt;Tomcat - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/ArrayIndexOutOfBoundsException-tp26499524p26509016.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26508930</id>
	<title>Re: ArrayIndexOutOfBoundsException</title>
	<published>2009-11-25T00:17:00Z</published>
	<updated>2009-11-25T00:17:00Z</updated>
	<author>
		<name>Geoffrey Rekier-2</name>
	</author>
	<content type="html">I changed the size to 4K, 50K and 1 byte without any luck.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Best Regards
&lt;br&gt;&lt;br&gt;Geoffrey
&lt;br&gt;&lt;br&gt;Phone Norway: &amp;nbsp;+47 45 86 53 83
&lt;br&gt;Fileflow Technologies AS
&lt;br&gt;Ole Deviks vei 35, 0668 Oslo, Norway
&lt;br&gt;&lt;br&gt;-------------------------------------
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;On 25 Nov 2009, at 00:28, Pid wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On 24/11/2009 20:03, Konstantin Kolinko wrote:
&lt;br&gt;&amp;gt;&amp;gt; 2009/11/24&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26508930&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;geoffrey@...&lt;/a&gt;&amp;gt;:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; There is a different amount of data sent each time before it crashes. I also tried byte by byte and gets the same error but it seems that it is less often.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; So it is random... I wonder what can trigger it.
&lt;br&gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; What connectors are you using? Is it HTTP, or AJP? What is your
&lt;br&gt;&amp;gt;&amp;gt; configuration as a whole?
&lt;br&gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; There was the following bugreport recently:
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;https://issues.apache.org/bugzilla/show_bug.cgi?id=48105&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/bugzilla/show_bug.cgi?id=48105&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; The reporter of issue 48105 wrote that he saw exceptions in 6.0.18,
&lt;br&gt;&amp;gt;&amp;gt; .20 as well, but no stack traces were provided, so it is unconfirmed.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I don't think we got to the bottom of why that was happening. &amp;nbsp;I was hoping the problem would be in the same method, but it's not in exactly the same location for both.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; The append(byte[], int, int) method is implicated in both, and in both cases an 8k byte buffer was in use in the app code.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; @Geoffrey - can you try using a smaller (say 4k) byte buffer instead, and adding some code to count how many bytes have been sent when the error occurs?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; p
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26508930&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26508930&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26508930&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26508930&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;/div&gt;&lt;br /&gt; &lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;smime.p7s&lt;/strong&gt; (5K) &lt;a href=&quot;http://old.nabble.com/attachment/26508930/0/smime.p7s&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Tomcat---User-f342.html&quot; embed=&quot;fixTarget[342]&quot; target=&quot;_top&quot; &gt;Tomcat - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/ArrayIndexOutOfBoundsException-tp26499524p26508930.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26508516</id>
	<title>RE: Redirecting a port to a webapp</title>
	<published>2009-11-24T23:24:11Z</published>
	<updated>2009-11-24T23:24:11Z</updated>
	<author>
		<name>Looijmans, Mike-2</name>
	</author>
	<content type="html">&amp;gt; I think so too. &amp;nbsp;My personal doubt is still about how Tomcat 
&lt;br&gt;&amp;gt; would try map a request that comes in as &amp;quot;/xxxx&amp;quot;, &amp;quot;xxxx&amp;quot; 
&lt;br&gt;&amp;gt; being variable and being NOT &amp;quot;myapp&amp;quot;. &amp;nbsp;Since it does not find 
&lt;br&gt;&amp;gt; a match with &amp;quot;/myapp&amp;quot;, and since obviously there cannot be an 
&lt;br&gt;&amp;gt; infinity of &amp;quot;/webapps/xxxx&amp;quot; apps pre-configured, would it 
&lt;br&gt;&amp;gt; then pass it to the &amp;quot;default app&amp;quot; (/ROOT) ?
&lt;br&gt;&lt;br&gt;I tried this route, and the results are quite remarkable.
&lt;br&gt;&lt;br&gt;When I deploy the webapp as ROOT.war, it gets to serve all requests that
&lt;br&gt;don't match anything else. So if the webapps dir looks like this:
&lt;br&gt;&lt;br&gt;/ROOT.war
&lt;br&gt;/SomeApp/*
&lt;br&gt;/OtherApp.war
&lt;br&gt;&lt;br&gt;When I send a request for /SomeApp/something, it goes to the webapp in
&lt;br&gt;that folder, likewise a request for /OtherApp/something ends up in the
&lt;br&gt;OtherApp servlet.
&lt;br&gt;A request for /foo or /bar, which does not match anything in the folder,
&lt;br&gt;gets sent to the ROOT.
&lt;br&gt;&lt;br&gt;With this mechanism, I could program the ROOT as (in pseudocode):
&lt;br&gt;&lt;br&gt;if port == 666:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; handle(pathinfo)
&lt;br&gt;else if pathinfo.startwith('/MyApp'):
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; handle(pathinfo.split('/',2)[1])
&lt;br&gt;else:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; error(404)
&lt;br&gt;&lt;br&gt;&lt;br&gt;This message and attachment(s) are intended solely for use by the addressee and may contain information that is privileged, confidential or otherwise exempt from disclosure under applicable law.
&lt;br&gt;&lt;br&gt;If you are not the intended recipient or agent thereof responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited.
&lt;br&gt;&lt;br&gt;If you have received this communication in error, please notify the sender immediately by telephone and with a 'reply' message.
&lt;br&gt;&lt;br&gt;Thank you for your co-operation.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26508516&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26508516&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Tomcat---User-f342.html&quot; embed=&quot;fixTarget[342]&quot; target=&quot;_top&quot; &gt;Tomcat - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Redirecting-a-port-to-a-webapp-tp26475356p26508516.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26507191</id>
	<title>Re: Tomcat in Embedded mode</title>
	<published>2009-11-24T19:53:48Z</published>
	<updated>2009-11-24T19:53:48Z</updated>
	<author>
		<name>Bill Barker</name>
	</author>
	<content type="html">&lt;br&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26507191&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ivelin.velkov@...&lt;/a&gt;&amp;gt; wrote in message 
&lt;br&gt;news:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26507191&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;887c111b0911241208v65192e8fp20e0730fb09ffd74@...&lt;/a&gt;...
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi guys,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I spent my day into struggling with Tomcat 6 and I just wanted to ask you
&lt;br&gt;&amp;gt; for some ideas and whether what I'm doing seems right to you.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; So, I'm trying to port a legacy application which is using Tomcat 5.0.28 
&lt;br&gt;&amp;gt; to
&lt;br&gt;&amp;gt; Tomcat 6.0.20.
&lt;br&gt;&amp;gt; While most of the Tomcat 5.0.28 properties are read from the server.xml,
&lt;br&gt;&amp;gt; some of the Connector properties(keyStore, keyPass, protocols, connector
&lt;br&gt;&amp;gt; address, port ...) are retrieved from other configuration files which are 
&lt;br&gt;&amp;gt; in
&lt;br&gt;&amp;gt; fact related to the application.
&lt;br&gt;&amp;gt; Using Tomcat 5.0.28 this is implemented by providing a custom 
&lt;br&gt;&amp;gt; implementation
&lt;br&gt;&amp;gt; for the CoyoteConnector and CoyoteServerSocketFactory.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Obviously, I can't do this with Tomcat6.
&lt;br&gt;&amp;gt; What I intend to do is write a class that extends the Catalina class (so
&lt;br&gt;&amp;gt; that the Digester can read my server.xml file) and then just overwrite the
&lt;br&gt;&amp;gt; addConnector method in order to overwrite the Connector properties &amp;quot;on the
&lt;br&gt;&amp;gt; fly&amp;quot; and the load method ( so that I can push my implementation in the
&lt;br&gt;&amp;gt; digester).
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;If all you want is to customize the Connector, then it is much easier to 
&lt;br&gt;simply put into server.xml:
&lt;br&gt;&amp;nbsp; &amp;lt;Connector protocol=&amp;quot;com.myfirm.mypackage.MyHttp11ProtocolHandler&amp;quot; ... /&amp;gt;
&lt;br&gt;Then, if I understand what you want, something like:
&lt;br&gt;&amp;nbsp; &amp;nbsp;public void init() throws Exception {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;fixupSettings(); // your method to make configuration changes
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;super.init(); &amp;nbsp; &amp;nbsp; &amp;nbsp;// let Tomcat handle the rest
&lt;br&gt;&amp;nbsp; &amp;nbsp;}
&lt;br&gt;should work for you.
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Then in order to use the Bootstrap (to load classes), I'll have to extend 
&lt;br&gt;&amp;gt; it
&lt;br&gt;&amp;gt; so that I can change the Catalina implementation with my own.
&lt;br&gt;&amp;gt; Then for starting tomcat I'll use my bootstrap.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Please, have in mind that I really don't like this hacky approach. 
&lt;br&gt;&amp;gt; However,
&lt;br&gt;&amp;gt; I can't do much to change it since I'm not the one who tells the
&lt;br&gt;&amp;gt; requirements.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; So, what do you think? Some easier way to achieve this?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt; Ivelin
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26507191&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26507191&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Tomcat---User-f342.html&quot; embed=&quot;fixTarget[342]&quot; target=&quot;_top&quot; &gt;Tomcat - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Tomcat-in-Embedded-mode-tp26502446p26507191.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26506963</id>
	<title>Re: ArrayIndexOutOfBoundsException</title>
	<published>2009-11-24T19:14:19Z</published>
	<updated>2009-11-24T19:14:19Z</updated>
	<author>
		<name>Konstantin Kolinko</name>
	</author>
	<content type="html">2009/11/24 &amp;nbsp;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26506963&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;geoffrey@...&lt;/a&gt;&amp;gt;:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; HTTP connector. I'll attach the conf folder from tomcat.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Best Regards
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Geoffrey
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Phone Norway:  +47 45 86 53 83
&lt;br&gt;&amp;gt; Fileflow Technologies AS
&lt;br&gt;&amp;gt; Ole Deviks vei 35, 0668 Oslo, Norway
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; -------------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On 24 Nov 2009, at 21:03, Konstantin Kolinko wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; 2009/11/24  &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26506963&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;geoffrey@...&lt;/a&gt;&amp;gt;:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; There is a different amount of data sent each time before it crashes. I also tried byte by byte and gets the same error but it seems that it is less often.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; So it is random... I wonder what can trigger it.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; What connectors are you using? Is it HTTP, or AJP? What is your
&lt;br&gt;&amp;gt;&amp;gt; configuration as a whole?
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; There was the following bugreport recently:
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;https://issues.apache.org/bugzilla/show_bug.cgi?id=48105&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/bugzilla/show_bug.cgi?id=48105&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; The reporter of issue 48105 wrote that he saw exceptions in 6.0.18,
&lt;br&gt;&amp;gt;&amp;gt; .20 as well, but no stack traces were provided, so it is unconfirmed.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;Thank you.
&lt;br&gt;&lt;br&gt;Could it be that there are several threads that have access to the
&lt;br&gt;same Response object? (That is illegal).
&lt;br&gt;You can try setting the ...RECYCLE_FACADES property to &amp;quot;true&amp;quot;, see the
&lt;br&gt;full name of it and description in
&lt;br&gt;&lt;a href=&quot;http://tomcat.apache.org/tomcat-6.0-doc/config/systemprops.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://tomcat.apache.org/tomcat-6.0-doc/config/systemprops.html&lt;/a&gt;&lt;br&gt;You can add it to the end of the catalina.properties file.
&lt;br&gt;&lt;br&gt;I do not see what else can cause randomness in writing out a response.
&lt;br&gt;Different length of headers? I see that you have
&lt;br&gt;maxHttpHeaderSize=&amp;quot;50000&amp;quot;
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Are you using Tomcat-Native (tcnative-1.dll, libtcnative-1.so)?
&lt;br&gt;I see that you have an AprLifecycleListener in your server.xml. Does
&lt;br&gt;it print a warning that tomcat-native is not present when Tomcat is
&lt;br&gt;started? &amp;nbsp;You can comment it out to disable Tomcat-Native and to
&lt;br&gt;disable that warning message if you are not going to use it.
&lt;br&gt;See
&lt;br&gt;&lt;a href=&quot;http://tomcat.apache.org/tomcat-6.0-doc/config/listeners.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://tomcat.apache.org/tomcat-6.0-doc/config/listeners.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Best regards,
&lt;br&gt;Konstantin Kolinko
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26506963&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26506963&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Tomcat---User-f342.html&quot; embed=&quot;fixTarget[342]&quot; target=&quot;_top&quot; &gt;Tomcat - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/ArrayIndexOutOfBoundsException-tp26499524p26506963.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26506197</id>
	<title>[Tomcat Wiki] Update of &quot;Tomcat/Books&quot; by alexkachanov</title>
	<published>2009-11-24T17:26:09Z</published>
	<updated>2009-11-24T17:26:09Z</updated>
	<author>
		<name>Apache Wiki</name>
	</author>
	<content type="html">Dear Wiki user,
&lt;br&gt;&lt;br&gt;You have subscribed to a wiki page or wiki category on &amp;quot;Tomcat Wiki&amp;quot; for change notification.
&lt;br&gt;&lt;br&gt;The &amp;quot;Tomcat/Books&amp;quot; page has been changed by alexkachanov.
&lt;br&gt;&lt;a href=&quot;http://wiki.apache.org/tomcat/Tomcat/Books?action=diff&amp;rev1=6&amp;rev2=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://wiki.apache.org/tomcat/Tomcat/Books?action=diff&amp;rev1=6&amp;rev2=7&lt;/a&gt;&lt;br&gt;&lt;br&gt;--------------------------------------------------
&lt;br&gt;&lt;br&gt;&amp;nbsp; = Tomcat Books =
&lt;br&gt;+ &amp;nbsp;* '''[[&lt;a href=&quot;http://www.amazon.com/exec/obidos/ASIN/1893115364&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.amazon.com/exec/obidos/ASIN/1893115364&lt;/a&gt;|Apache Jakarta-Tomcat]]''', by ''James Goodwill'', Apress, ISBN: 1893115364 (2001)
&lt;br&gt;+ &amp;nbsp;* '''[[&lt;a href=&quot;http://www.amazon.com/exec/obidos/ASIN/0672324393&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.amazon.com/exec/obidos/ASIN/0672324393&lt;/a&gt;|Tomcat Kick Start]]''', by ''M. Bond &amp; D. Law'', SAMS, ISBN: 0672324393 (2002)
&lt;br&gt;+ &amp;nbsp;* '''[[&lt;a href=&quot;http://www.amazon.com/Tomcat-Definitive-Guide-Jason-Brittain/dp/0596101066&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.amazon.com/Tomcat-Definitive-Guide-Jason-Brittain/dp/0596101066&lt;/a&gt;|Tomcat: The Definitive Guide, Second Edition]]''', by ''Jason Brittain &amp; Ian F. Darwin'', O'Reilly Press, ISBN: 0596101066 (2007)
&lt;br&gt;+ &amp;nbsp;* '''[[&lt;a href=&quot;http://www.amazon.com/exec/obidos/ASIN/0764559028&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.amazon.com/exec/obidos/ASIN/0764559028&lt;/a&gt;|Professional Apache Tomcat 5]]''', by ''Vivek Chopra, Amit Bakore, Jon Eaves, Ben Galbraith, Sing Li, and Chanoch Wiggers'', Wrox Press, ISBN: 0764559028 (2004)
&lt;br&gt;+ &amp;nbsp;* '''[[&lt;a href=&quot;http://www.amazon.com/exec/obidos/ASIN/0672326361&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.amazon.com/exec/obidos/ASIN/0672326361&lt;/a&gt;|Tomcat 5 Unleashed]]''', by ''Lajos Moczar'', Sams, ISBN: 0672326361 (2004)
&lt;br&gt;+ &amp;nbsp;* '''[[&lt;a href=&quot;http://www.amazon.com/exec/obidos/ASIN/1590593316&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.amazon.com/exec/obidos/ASIN/1590593316&lt;/a&gt;|Pro Jakarta Tomcat 5]]''', by ''Matthew Moodie'', Apress, ISBN: 1590593316 (2004)
&lt;br&gt;+ &amp;nbsp;* '''[[&lt;a href=&quot;http://www.amazon.com/exec/obidos/ASIN/097521280X&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.amazon.com/exec/obidos/ASIN/097521280X&lt;/a&gt;|How Tomcat Works]]''', by ''Budi Kurniawan, Paul Deck'', Brainysoftware.Com, ISBN: 097521280X (2004); there is also a [[&lt;a href=&quot;http://www.brainysoftware.com/index.php?show=tomcat&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.brainysoftware.com/index.php?show=tomcat&lt;/a&gt;|Home Page]] for this book
&lt;br&gt;+ &amp;nbsp;* '''[[&lt;a href=&quot;http://www.amazon.com/exec/obidos/ASIN/0471237647/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.amazon.com/exec/obidos/ASIN/0471237647/&lt;/a&gt;|Mastering Tomcat Development]]''', by ''Peter Harrison, Ian McFarland'', Wiley, ISBN: 0471237647 (2002)
&lt;br&gt;+ &amp;nbsp;* '''[[&lt;a href=&quot;http://www.amazon.com/exec/obidos/ASIN/0764526065&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.amazon.com/exec/obidos/ASIN/0764526065&lt;/a&gt;|Apache Tomcat Bible]]''', by ''Jon Eaves, Warner Godfrey, and Rupert Jones'', Wiley, ISBN: 0764526065 (2003)
&lt;br&gt;&amp;nbsp; 
&lt;br&gt;- 
&lt;br&gt;- &amp;nbsp;* '''[[&lt;a href=&quot;http://www.amazon.com/exec/obidos/ASIN/1893115364&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.amazon.com/exec/obidos/ASIN/1893115364&lt;/a&gt;|Apache Jakarta-Tomcat]]''', by ''James Goodwill'', Apress, ISBN: 1893115364
&lt;br&gt;- &amp;nbsp;* '''[[&lt;a href=&quot;http://www.amazon.com/exec/obidos/ASIN/0672324393&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.amazon.com/exec/obidos/ASIN/0672324393&lt;/a&gt;|Tomcat Kick Start]]''', by ''M. Bond &amp; D. Law'', SAMS, ISBN: 0672324393
&lt;br&gt;- &amp;nbsp;* '''[[&lt;a href=&quot;http://www.amazon.com/Tomcat-Definitive-Guide-Jason-Brittain/dp/0596101066&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.amazon.com/Tomcat-Definitive-Guide-Jason-Brittain/dp/0596101066&lt;/a&gt;|Tomcat: The Definitive Guide, Second Edition]]''', by ''Jason Brittain &amp; Ian F. Darwin'', O'Reilly Press, ISBN: 0596101066
&lt;br&gt;- &amp;nbsp;* '''[[&lt;a href=&quot;http://www.amazon.com/exec/obidos/ASIN/0764559028&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.amazon.com/exec/obidos/ASIN/0764559028&lt;/a&gt;|Professional Apache Tomcat 5]]''', by ''Vivek Chopra, Amit Bakore, Jon Eaves, Ben Galbraith, Sing Li, and Chanoch Wiggers'', Wrox Press, ISBN: 0764559028
&lt;br&gt;- &amp;nbsp;* '''[[&lt;a href=&quot;http://www.amazon.com/exec/obidos/ASIN/0672326361&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.amazon.com/exec/obidos/ASIN/0672326361&lt;/a&gt;|Tomcat 5 Unleashed]]''', by ''Lajos Moczar'', Sams, ISBN: 0672326361
&lt;br&gt;- &amp;nbsp;* '''[[&lt;a href=&quot;http://www.amazon.com/exec/obidos/ASIN/1590593316&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.amazon.com/exec/obidos/ASIN/1590593316&lt;/a&gt;|Pro Jakarta Tomcat 5]]''', by ''Matthew Moodie'', Apress, ISBN: 1590593316 
&lt;br&gt;- &amp;nbsp;* '''[[&lt;a href=&quot;http://www.amazon.com/exec/obidos/ASIN/097521280X&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.amazon.com/exec/obidos/ASIN/097521280X&lt;/a&gt;|How Tomcat Works]]''', by ''Budi Kurniawan, Paul Deck'', Brainysoftware.``Com, ISBN: 097521280X; there is also a [[&lt;a href=&quot;http://www.brainysoftware.com/index.php?show=tomcat&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.brainysoftware.com/index.php?show=tomcat&lt;/a&gt;|Home Page]] for this book
&lt;br&gt;- &amp;nbsp;* '''[[&lt;a href=&quot;http://www.amazon.com/exec/obidos/ASIN/0471237647/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.amazon.com/exec/obidos/ASIN/0471237647/&lt;/a&gt;|Mastering Tomcat Development]]''', by ''Peter Harrison, Ian Mc``Farland'', Wiley, ISBN: 0471237647 
&lt;br&gt;- &amp;nbsp;* '''[[&lt;a href=&quot;http://www.amazon.com/exec/obidos/ASIN/0764526065&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.amazon.com/exec/obidos/ASIN/0764526065&lt;/a&gt;|Apache Tomcat Bible]]''', by ''Jon Eaves, Warner Godfrey, and Rupert Jones'', Wiley, ISBN: 0764526065 
&lt;br&gt;- 
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26506197&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26506197&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Tomcat---Dev-f341.html&quot; embed=&quot;fixTarget[341]&quot; target=&quot;_top&quot; &gt;Tomcat - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-Tomcat-Wiki--Update-of-%22Tomcat-Books%22-by-alexkachanov-tp26506197p26506197.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26506111</id>
	<title>DO NOT REPLY [Bug 48258] Creating a session cookie with a specific default domain.</title>
	<published>2009-11-24T17:18:36Z</published>
	<updated>2009-11-24T17:18:36Z</updated>
	<author>
		<name>Bugzilla from bugzilla@apache.org</name>
	</author>
	<content type="html">&lt;a href=&quot;https://issues.apache.org/bugzilla/show_bug.cgi?id=48258&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/bugzilla/show_bug.cgi?id=48258&lt;/a&gt;&lt;br&gt;&lt;br&gt;--- Comment #3 from &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26506111&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;donn.aiken@...&lt;/a&gt; 2009-11-24 17:18:34 UTC ---
&lt;br&gt;Created an attachment (id=24607)
&lt;br&gt;&amp;nbsp;--&amp;gt; (&lt;a href=&quot;https://issues.apache.org/bugzilla/attachment.cgi?id=24607&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/bugzilla/attachment.cgi?id=24607&lt;/a&gt;)
&lt;br&gt;diffs using a context attribute to set the cookie domain
&lt;br&gt;&lt;br&gt;Mark -
&lt;br&gt;&lt;br&gt;I re-read your note and I think got the message this time. &amp;nbsp;If you feel this
&lt;br&gt;should be done at a different level than Context, please let me know.
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;&lt;br&gt;Donn
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Configure bugmail: &lt;a href=&quot;https://issues.apache.org/bugzilla/userprefs.cgi?tab=email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/bugzilla/userprefs.cgi?tab=email&lt;/a&gt;&lt;br&gt;------- You are receiving this mail because: -------
&lt;br&gt;You are the assignee for the bug.
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26506111&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26506111&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Tomcat---Dev-f341.html&quot; embed=&quot;fixTarget[341]&quot; target=&quot;_top&quot; &gt;Tomcat - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/DO-NOT-REPLY--Bug-48258--New%3A-Creating-a-session-cookie-with-a-specific-default-domain.-tp26459183p26506111.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26506043</id>
	<title>DO NOT REPLY [Bug 48267] Patch to fix generics in javax packages</title>
	<published>2009-11-24T17:11:18Z</published>
	<updated>2009-11-24T17:11:18Z</updated>
	<author>
		<name>Bugzilla from bugzilla@apache.org</name>
	</author>
	<content type="html">&lt;a href=&quot;https://issues.apache.org/bugzilla/show_bug.cgi?id=48267&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/bugzilla/show_bug.cgi?id=48267&lt;/a&gt;&lt;br&gt;&lt;br&gt;Sebb &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26506043&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;sebb@...&lt;/a&gt;&amp;gt; changed:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;What &amp;nbsp; &amp;nbsp;|Removed &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |Added
&lt;br&gt;----------------------------------------------------------------------------
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Status|RESOLVED &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|REOPENED
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Resolution|INVALID &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |
&lt;br&gt;&lt;br&gt;--- Comment #2 from Sebb &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26506043&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;sebb@...&lt;/a&gt;&amp;gt; 2009-11-24 17:11:18 UTC ---
&lt;br&gt;How about applying generics fixes just to internal code and private variables,
&lt;br&gt;and using @SuppressWarnings on the rest?
&lt;br&gt;&lt;br&gt;[Or just use @SuppressWarnings throughout]
&lt;br&gt;&lt;br&gt;If so, I can create a new patch.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Configure bugmail: &lt;a href=&quot;https://issues.apache.org/bugzilla/userprefs.cgi?tab=email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/bugzilla/userprefs.cgi?tab=email&lt;/a&gt;&lt;br&gt;------- You are receiving this mail because: -------
&lt;br&gt;You are the assignee for the bug.
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26506043&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26506043&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Tomcat---Dev-f341.html&quot; embed=&quot;fixTarget[341]&quot; target=&quot;_top&quot; &gt;Tomcat - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/DO-NOT-REPLY--Bug-48267--New%3A-Patch-to-fix-generics-in-javax-packages-tp26486106p26506043.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26505940</id>
	<title>DO NOT REPLY [Bug 48266] Patch to fix generics in catalina</title>
	<published>2009-11-24T17:00:09Z</published>
	<updated>2009-11-24T17:00:09Z</updated>
	<author>
		<name>Bugzilla from bugzilla@apache.org</name>
	</author>
	<content type="html">&lt;a href=&quot;https://issues.apache.org/bugzilla/show_bug.cgi?id=48266&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/bugzilla/show_bug.cgi?id=48266&lt;/a&gt;&lt;br&gt;&lt;br&gt;Mark Thomas &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26505940&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;markt@...&lt;/a&gt;&amp;gt; changed:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;What &amp;nbsp; &amp;nbsp;|Removed &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |Added
&lt;br&gt;----------------------------------------------------------------------------
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Status|NEW &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |RESOLVED
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Resolution| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|FIXED
&lt;br&gt;&lt;br&gt;--- Comment #1 from Mark Thomas &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26505940&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;markt@...&lt;/a&gt;&amp;gt; 2009-11-24 17:00:09 GMT ---
&lt;br&gt;Patch applied. Many thanks.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Configure bugmail: &lt;a href=&quot;https://issues.apache.org/bugzilla/userprefs.cgi?tab=email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/bugzilla/userprefs.cgi?tab=email&lt;/a&gt;&lt;br&gt;------- You are receiving this mail because: -------
&lt;br&gt;You are the assignee for the bug.
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26505940&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26505940&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Tomcat---Dev-f341.html&quot; embed=&quot;fixTarget[341]&quot; target=&quot;_top&quot; &gt;Tomcat - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/DO-NOT-REPLY--Bug-48266--New%3A-Patch-to-fix-generics-in-catalina-tp26486089p26505940.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26505941</id>
	<title>svn commit: r883943 - in /tomcat/trunk/java/org/apache/catalina: ant/jmx/ connector/ core/ ha/backend/ ha/session/ ha/tcp/ tribes/tipis/ tribes/transport/bio/</title>
	<published>2009-11-24T17:00:08Z</published>
	<updated>2009-11-24T17:00:08Z</updated>
	<author>
		<name>markt-2</name>
	</author>
	<content type="html">Author: markt
&lt;br&gt;Date: Wed Nov 25 01:00:07 2009
&lt;br&gt;New Revision: 883943
&lt;br&gt;&lt;br&gt;URL: &lt;a href=&quot;http://svn.apache.org/viewvc?rev=883943&amp;view=rev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://svn.apache.org/viewvc?rev=883943&amp;view=rev&lt;/a&gt;&lt;br&gt;Log:
&lt;br&gt;Fix &lt;a href=&quot;https://issues.apache.org/bugzilla/show_bug.cgi?id=48266&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/bugzilla/show_bug.cgi?id=48266&lt;/a&gt;&lt;br&gt;Generics and unused imports.
&lt;br&gt;Patch by sebb
&lt;br&gt;&lt;br&gt;Modified:
&lt;br&gt;&amp;nbsp; &amp;nbsp; tomcat/trunk/java/org/apache/catalina/ant/jmx/JMXAccessorTask.java
&lt;br&gt;&amp;nbsp; &amp;nbsp; tomcat/trunk/java/org/apache/catalina/connector/Request.java
&lt;br&gt;&amp;nbsp; &amp;nbsp; tomcat/trunk/java/org/apache/catalina/core/StandardPart.java
&lt;br&gt;&amp;nbsp; &amp;nbsp; tomcat/trunk/java/org/apache/catalina/ha/backend/CollectedInfo.java
&lt;br&gt;&amp;nbsp; &amp;nbsp; tomcat/trunk/java/org/apache/catalina/ha/session/BackupManager.java
&lt;br&gt;&amp;nbsp; &amp;nbsp; tomcat/trunk/java/org/apache/catalina/ha/tcp/ReplicationValve.java
&lt;br&gt;&amp;nbsp; &amp;nbsp; tomcat/trunk/java/org/apache/catalina/tribes/tipis/AbstractReplicatedMap.java
&lt;br&gt;&amp;nbsp; &amp;nbsp; tomcat/trunk/java/org/apache/catalina/tribes/transport/bio/MultipointBioSender.java
&lt;br&gt;&lt;br&gt;Modified: tomcat/trunk/java/org/apache/catalina/ant/jmx/JMXAccessorTask.java
&lt;br&gt;URL: &lt;a href=&quot;http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/ant/jmx/JMXAccessorTask.java?rev=883943&amp;r1=883942&amp;r2=883943&amp;view=diff&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/ant/jmx/JMXAccessorTask.java?rev=883943&amp;r1=883942&amp;r2=883943&amp;view=diff&lt;/a&gt;&lt;br&gt;==============================================================================
&lt;br&gt;--- tomcat/trunk/java/org/apache/catalina/ant/jmx/JMXAccessorTask.java (original)
&lt;br&gt;+++ tomcat/trunk/java/org/apache/catalina/ant/jmx/JMXAccessorTask.java Wed Nov 25 01:00:07 2009
&lt;br&gt;@@ -621,7 +621,7 @@
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;String key = iter.next();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Object value = data.get(key);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;OpenType&amp;lt;?&amp;gt; type = compositeType.getType(key);
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (type instanceof SimpleType) {
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (type instanceof SimpleType&amp;lt;?&amp;gt;) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;setProperty(propertyPrefix + &amp;quot;.&amp;quot; + key, value);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;} else {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;createProperty(propertyPrefix + &amp;quot;.&amp;quot; + key, value);
&lt;br&gt;@@ -637,7 +637,7 @@
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Object value = valuedata.get(&amp;quot;value&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;OpenType&amp;lt;?&amp;gt; type = valuedata.getCompositeType().getType(
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;quot;value&amp;quot;);
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (type instanceof SimpleType) {
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (type instanceof SimpleType&amp;lt;?&amp;gt;) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;setProperty(propertyPrefix + &amp;quot;.&amp;quot; + key1, value);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;} else {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;createProperty(propertyPrefix + &amp;quot;.&amp;quot; + key1, value);
&lt;br&gt;&lt;br&gt;Modified: tomcat/trunk/java/org/apache/catalina/connector/Request.java
&lt;br&gt;URL: &lt;a href=&quot;http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/connector/Request.java?rev=883943&amp;r1=883942&amp;r2=883943&amp;view=diff&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/connector/Request.java?rev=883943&amp;r1=883942&amp;r2=883943&amp;view=diff&lt;/a&gt;&lt;br&gt;==============================================================================
&lt;br&gt;--- tomcat/trunk/java/org/apache/catalina/connector/Request.java (original)
&lt;br&gt;+++ tomcat/trunk/java/org/apache/catalina/connector/Request.java Wed Nov 25 01:00:07 2009
&lt;br&gt;@@ -74,7 +74,6 @@
&lt;br&gt;&amp;nbsp;import org.apache.catalina.util.ParameterMap;
&lt;br&gt;&amp;nbsp;import org.apache.catalina.util.StringParser;
&lt;br&gt;&amp;nbsp;import org.apache.coyote.ActionCode;
&lt;br&gt;-import org.apache.jasper.compiler.ServletWriter;
&lt;br&gt;&amp;nbsp;import org.apache.tomcat.util.buf.B2CConverter;
&lt;br&gt;&amp;nbsp;import org.apache.tomcat.util.buf.ByteChunk;
&lt;br&gt;&amp;nbsp;import org.apache.tomcat.util.buf.MessageBytes;
&lt;br&gt;@@ -91,7 +90,6 @@
&lt;br&gt;&amp;nbsp;import org.apache.tomcat.util.http.fileupload.FileUploadBase.InvalidContentTypeException;
&lt;br&gt;&amp;nbsp;import org.apache.tomcat.util.http.mapper.MappingData;
&lt;br&gt;&amp;nbsp;import org.apache.tomcat.util.res.StringManager;
&lt;br&gt;-import org.apache.tools.ant.util.CollectionUtils;
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;/**
&lt;br&gt;&lt;br&gt;Modified: tomcat/trunk/java/org/apache/catalina/core/StandardPart.java
&lt;br&gt;URL: &lt;a href=&quot;http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/core/StandardPart.java?rev=883943&amp;r1=883942&amp;r2=883943&amp;view=diff&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/core/StandardPart.java?rev=883943&amp;r1=883942&amp;r2=883943&amp;view=diff&lt;/a&gt;&lt;br&gt;==============================================================================
&lt;br&gt;--- tomcat/trunk/java/org/apache/catalina/core/StandardPart.java (original)
&lt;br&gt;+++ tomcat/trunk/java/org/apache/catalina/core/StandardPart.java Wed Nov 25 01:00:07 2009
&lt;br&gt;@@ -26,7 +26,6 @@
&lt;br&gt;&amp;nbsp;import java.util.Iterator;
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;import javax.servlet.MultipartConfigElement;
&lt;br&gt;-import javax.servlet.ServletContext;
&lt;br&gt;&amp;nbsp;import javax.servlet.http.Part;
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;import org.apache.tomcat.util.http.fileupload.DiskFileItem;
&lt;br&gt;&lt;br&gt;Modified: tomcat/trunk/java/org/apache/catalina/ha/backend/CollectedInfo.java
&lt;br&gt;URL: &lt;a href=&quot;http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/ha/backend/CollectedInfo.java?rev=883943&amp;r1=883942&amp;r2=883943&amp;view=diff&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/ha/backend/CollectedInfo.java?rev=883943&amp;r1=883942&amp;r2=883943&amp;view=diff&lt;/a&gt;&lt;br&gt;==============================================================================
&lt;br&gt;--- tomcat/trunk/java/org/apache/catalina/ha/backend/CollectedInfo.java (original)
&lt;br&gt;+++ tomcat/trunk/java/org/apache/catalina/ha/backend/CollectedInfo.java Wed Nov 25 01:00:07 2009
&lt;br&gt;@@ -56,7 +56,7 @@
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;mBeanServer = Registry.getRegistry(null, null).getMBeanServer();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;String onStr = &amp;quot;*:type=ThreadPool,*&amp;quot;;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ObjectName objectName = new ObjectName(onStr);
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Set set = mBeanServer.queryMBeans(objectName, null);
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Set&amp;lt;ObjectInstance&amp;gt; set = mBeanServer.queryMBeans(objectName, null);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Iterator&amp;lt;ObjectInstance&amp;gt; iterator = set.iterator();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;while (iterator.hasNext()) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ObjectInstance oi = iterator.next();
&lt;br&gt;&lt;br&gt;Modified: tomcat/trunk/java/org/apache/catalina/ha/session/BackupManager.java
&lt;br&gt;URL: &lt;a href=&quot;http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/ha/session/BackupManager.java?rev=883943&amp;r1=883942&amp;r2=883943&amp;view=diff&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/ha/session/BackupManager.java?rev=883943&amp;r1=883942&amp;r2=883943&amp;view=diff&lt;/a&gt;&lt;br&gt;==============================================================================
&lt;br&gt;--- tomcat/trunk/java/org/apache/catalina/ha/session/BackupManager.java (original)
&lt;br&gt;+++ tomcat/trunk/java/org/apache/catalina/ha/session/BackupManager.java Wed Nov 25 01:00:07 2009
&lt;br&gt;@@ -308,6 +308,7 @@
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;public String listSessionIdsFull() {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;StringBuilder sb=new StringBuilder();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;LazyReplicatedMap map = (LazyReplicatedMap)sessions;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;@SuppressWarnings(&amp;quot;unchecked&amp;quot;) // sessions is of type Map&amp;lt;String, Session&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Iterator&amp;lt;String&amp;gt; keys = map.keySetFull().iterator();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;while (keys.hasNext()) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;sb.append(keys.next()).append(&amp;quot; &amp;quot;);
&lt;br&gt;&lt;br&gt;Modified: tomcat/trunk/java/org/apache/catalina/ha/tcp/ReplicationValve.java
&lt;br&gt;URL: &lt;a href=&quot;http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/ha/tcp/ReplicationValve.java?rev=883943&amp;r1=883942&amp;r2=883943&amp;view=diff&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/ha/tcp/ReplicationValve.java?rev=883943&amp;r1=883942&amp;r2=883943&amp;view=diff&lt;/a&gt;&lt;br&gt;==============================================================================
&lt;br&gt;--- tomcat/trunk/java/org/apache/catalina/ha/tcp/ReplicationValve.java (original)
&lt;br&gt;+++ tomcat/trunk/java/org/apache/catalina/ha/tcp/ReplicationValve.java Wed Nov 25 01:00:07 2009
&lt;br&gt;@@ -451,10 +451,9 @@
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; * @param containerCluster
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; */
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;protected void sendCrossContextSession(CatalinaCluster containerCluster) {
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Object sessions = crossContextSessions.get();
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if(sessions != null &amp;&amp; sessions instanceof List
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;&amp; ((List&amp;lt;Session&amp;gt;)sessions).size() &amp;gt;0) {
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;for(Iterator&amp;lt;Session&amp;gt; iter = ((List&amp;lt;Session&amp;gt;)sessions).iterator(); iter.hasNext() ;) { &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;List&amp;lt;DeltaSession&amp;gt; sessions = crossContextSessions.get();
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if(sessions != null &amp;&amp; sessions.size() &amp;gt;0) {
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;for(Iterator&amp;lt;DeltaSession&amp;gt; iter = sessions.iterator(); iter.hasNext() ;) { &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Session session = iter.next();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if(log.isDebugEnabled())
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;log.debug(sm.getString(&amp;quot;ReplicationValve.crossContext.sendDelta&amp;quot;, &amp;nbsp;
&lt;br&gt;@@ -479,10 +478,9 @@
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;((DeltaSession)contextSession).setPrimarySession(true);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if(isCrossContext) {
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Object sessions = crossContextSessions.get();
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if(sessions != null &amp;&amp; sessions instanceof List
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;&amp; ((List&amp;lt;Session&amp;gt;)sessions).size() &amp;gt;0) {
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Iterator&amp;lt;Session&amp;gt; iter = ((List&amp;lt;Session&amp;gt;)sessions).iterator();
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;List&amp;lt;DeltaSession&amp;gt; sessions = crossContextSessions.get();
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if(sessions != null &amp;&amp; sessions.size() &amp;gt;0) {
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Iterator&amp;lt;DeltaSession&amp;gt; iter = sessions.iterator();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;for(; iter.hasNext() ;) { &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Session session = iter.next();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;resetDeltaRequest(session);
&lt;br&gt;&lt;br&gt;Modified: tomcat/trunk/java/org/apache/catalina/tribes/tipis/AbstractReplicatedMap.java
&lt;br&gt;URL: &lt;a href=&quot;http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/tribes/tipis/AbstractReplicatedMap.java?rev=883943&amp;r1=883942&amp;r2=883943&amp;view=diff&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/tribes/tipis/AbstractReplicatedMap.java?rev=883943&amp;r1=883942&amp;r2=883943&amp;view=diff&lt;/a&gt;&lt;br&gt;==============================================================================
&lt;br&gt;--- tomcat/trunk/java/org/apache/catalina/tribes/tipis/AbstractReplicatedMap.java (original)
&lt;br&gt;+++ tomcat/trunk/java/org/apache/catalina/tribes/tipis/AbstractReplicatedMap.java Wed Nov 25 01:00:07 2009
&lt;br&gt;@@ -360,6 +360,7 @@
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;public Member[] getMapMembersExcl(Member[] exclude) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;synchronized (mapMembers) {
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;@SuppressWarnings(&amp;quot;unchecked&amp;quot;) // mapMembers has the correct type
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;HashMap&amp;lt;Member, Long&amp;gt; list = (HashMap&amp;lt;Member, Long&amp;gt;)mapMembers.clone();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;for (int i=0; i&amp;lt;exclude.length;i++) list.remove(exclude[i]);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return getMapMembers(list);
&lt;br&gt;@@ -438,9 +439,9 @@
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; * @param complete boolean
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; */
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;public void replicate(boolean complete) {
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Iterator i = super.entrySet().iterator();
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Iterator&amp;lt;Map.Entry&amp;lt;?,?&amp;gt;&amp;gt; i = super.entrySet().iterator();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;while (i.hasNext()) {
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Map.Entry e = (Map.Entry) i.next();
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Map.Entry&amp;lt;?,?&amp;gt; e = i.next();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;replicate(e.getKey(), complete);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;} //while
&lt;br&gt;&amp;nbsp;
&lt;br&gt;@@ -458,7 +459,7 @@
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;synchronized (stateMutex) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;msg = (MapMessage) resp[0].getMessage();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;msg.deserialize(getExternalLoaders());
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ArrayList list = (ArrayList) msg.getValue();
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ArrayList&amp;lt;?&amp;gt; list = (ArrayList&amp;lt;?&amp;gt;) msg.getValue();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;for (int i = 0; i &amp;lt; list.size(); i++) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;messageReceived( (Serializable) list.get(i), resp[0].getSource());
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;} //for
&lt;br&gt;@@ -511,9 +512,9 @@
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (mapmsg.getMsgType() == MapMessage.MSG_STATE || mapmsg.getMsgType() == MapMessage.MSG_STATE_COPY) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;synchronized (stateMutex) { //make sure we dont do two things at the same time
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ArrayList&amp;lt;MapMessage&amp;gt; list = new ArrayList&amp;lt;MapMessage&amp;gt;();
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Iterator i = super.entrySet().iterator();
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Iterator&amp;lt;Map.Entry&amp;lt;?,?&amp;gt;&amp;gt; i = super.entrySet().iterator();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;while (i.hasNext()) {
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Map.Entry e = (Map.Entry) i.next();
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Map.Entry&amp;lt;?,?&amp;gt; e = i.next();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;MapEntry entry = (MapEntry) super.get(e.getKey());
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if ( entry != null &amp;&amp; entry.isSerializable() ) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;boolean copy = (mapmsg.getMsgType() == MapMessage.MSG_STATE_COPY);
&lt;br&gt;@@ -671,9 +672,9 @@
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if ( memberAdded ) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;synchronized (stateMutex) {
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Iterator i = super.entrySet().iterator();
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Iterator&amp;lt;Map.Entry&amp;lt;?,?&amp;gt;&amp;gt; i = super.entrySet().iterator();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;while (i.hasNext()) {
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Map.Entry e = (Map.Entry) i.next();
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Map.Entry&amp;lt;?,?&amp;gt; e = i.next();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;MapEntry entry = (MapEntry) super.get(e.getKey());
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if ( entry == null ) continue;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (entry.isPrimary() &amp;&amp; (entry.getBackupNodes() == null || entry.getBackupNodes().length == 0)) {
&lt;br&gt;@@ -723,9 +724,9 @@
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Iterator i = super.entrySet().iterator();
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Iterator&amp;lt;Map.Entry&amp;lt;?,?&amp;gt;&amp;gt; i = super.entrySet().iterator();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;while (i.hasNext()) {
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Map.Entry e = (Map.Entry) i.next();
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Map.Entry&amp;lt;?,?&amp;gt; e = i.next();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;MapEntry entry = (MapEntry) super.get(e.getKey());
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (entry==null) continue;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (entry.isPrimary() &amp;&amp; inSet(member,entry.getBackupNodes())) {
&lt;br&gt;@@ -902,11 +903,11 @@
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;for ( int i=0; i&amp;lt;mbrs.length;i++ ) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;System.out.println(&amp;quot;Mbr[&amp;quot;+(i+1)+&amp;quot;=&amp;quot;+mbrs[i].getName());
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Iterator i = super.entrySet().iterator();
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Iterator&amp;lt;Map.Entry&amp;lt;?,?&amp;gt;&amp;gt; i = super.entrySet().iterator();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;int cnt = 0;
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;while (i.hasNext()) {
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Map.Entry e = (Map.Entry) i.next();
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Map.Entry&amp;lt;?,?&amp;gt; e = i.next();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;System.out.println( (++cnt) + &amp;quot;. &amp;quot; + super.get(e.getKey()));
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;System.out.println(&amp;quot;EndMap]\n\n&amp;quot;);
&lt;br&gt;@@ -961,9 +962,9 @@
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; */
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;@Override
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;public void putAll(Map m) {
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Iterator i = m.entrySet().iterator();
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Iterator&amp;lt;Map.Entry&amp;lt;?,?&amp;gt;&amp;gt; i = m.entrySet().iterator();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;while ( i.hasNext() ) {
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Map.Entry entry = (Map.Entry)i.next();
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Map.Entry&amp;lt;?,?&amp;gt; entry = i.next();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;put(entry.getKey(),entry.getValue());
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;@@ -989,9 +990,9 @@
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if ( value == null ) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return super.containsValue(value);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;} else {
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Iterator i = super.entrySet().iterator();
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Iterator&amp;lt;Map.Entry&amp;lt;?,?&amp;gt;&amp;gt; i = super.entrySet().iterator();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;while (i.hasNext()) {
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Map.Entry e = (Map.Entry) i.next();
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Map.Entry&amp;lt;?,?&amp;gt; e = i.next();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;MapEntry entry = (MapEntry) super.get(e.getKey());
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (entry!=null &amp;&amp; entry.isPrimary() &amp;&amp; value.equals(entry.getValue())) return true;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}//while
&lt;br&gt;@@ -1025,9 +1026,9 @@
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;@Override
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;public Set&amp;lt;MapEntry&amp;gt; entrySet() {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;LinkedHashSet&amp;lt;MapEntry&amp;gt; set = new LinkedHashSet&amp;lt;MapEntry&amp;gt;(super.size());
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Iterator i = super.entrySet().iterator();
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Iterator&amp;lt;Map.Entry&amp;lt;?,?&amp;gt;&amp;gt; i = super.entrySet().iterator();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;while ( i.hasNext() ) {
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Map.Entry e = (Map.Entry)i.next();
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Map.Entry&amp;lt;?,?&amp;gt; e = i.next();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Object key = e.getKey();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;MapEntry entry = (MapEntry)super.get(key);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if ( entry != null &amp;&amp; entry.isPrimary() ) {
&lt;br&gt;@@ -1042,9 +1043,9 @@
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//todo implement
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//should only return keys where this is active.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;LinkedHashSet&amp;lt;Object&amp;gt; set = new LinkedHashSet&amp;lt;Object&amp;gt;(super.size());
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Iterator i = super.entrySet().iterator();
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Iterator&amp;lt;Map.Entry&amp;lt;?,?&amp;gt;&amp;gt; i = super.entrySet().iterator();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;while ( i.hasNext() ) {
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Map.Entry e = (Map.Entry)i.next();
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Map.Entry&amp;lt;?,?&amp;gt; e = i.next();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Object key = e.getKey();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;MapEntry entry = (MapEntry)super.get(key);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if ( entry!=null &amp;&amp; entry.isPrimary() ) set.add(key);
&lt;br&gt;@@ -1059,9 +1060,9 @@
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//todo, implement a counter variable instead
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//only count active members in this node
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;int counter = 0;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Iterator it = super.entrySet().iterator();
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Iterator&amp;lt;Map.Entry&amp;lt;?,?&amp;gt;&amp;gt; it = super.entrySet().iterator();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;while (it!=null &amp;&amp; it.hasNext() ) {
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Map.Entry e = (Map.Entry) it.next();
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Map.Entry&amp;lt;?,?&amp;gt; e = it.next();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if ( e != null ) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;MapEntry entry = (MapEntry) super.get(e.getKey());
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (entry!=null &amp;&amp; entry.isPrimary() &amp;&amp; entry.getValue() != null) counter++;
&lt;br&gt;@@ -1078,9 +1079,9 @@
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;@Override
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;public Collection&amp;lt;Object&amp;gt; values() {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ArrayList&amp;lt;Object&amp;gt; values = new ArrayList&amp;lt;Object&amp;gt;();
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Iterator i = super.entrySet().iterator();
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Iterator&amp;lt;Map.Entry&amp;lt;?,?&amp;gt;&amp;gt; i = super.entrySet().iterator();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;while ( i.hasNext() ) {
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Map.Entry e = (Map.Entry)i.next();
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Map.Entry&amp;lt;?,?&amp;gt; e = i.next();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;MapEntry entry = (MapEntry)super.get(e.getKey());
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (entry!=null &amp;&amp; entry.isPrimary() &amp;&amp; entry.getValue()!=null) values.add(entry.getValue());
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&lt;br&gt;Modified: tomcat/trunk/java/org/apache/catalina/tribes/transport/bio/MultipointBioSender.java
&lt;br&gt;URL: &lt;a href=&quot;http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/tribes/transport/bio/MultipointBioSender.java?rev=883943&amp;r1=883942&amp;r2=883943&amp;view=diff&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/tribes/transport/bio/MultipointBioSender.java?rev=883943&amp;r1=883942&amp;r2=883943&amp;view=diff&lt;/a&gt;&lt;br&gt;==============================================================================
&lt;br&gt;--- tomcat/trunk/java/org/apache/catalina/tribes/transport/bio/MultipointBioSender.java (original)
&lt;br&gt;+++ tomcat/trunk/java/org/apache/catalina/tribes/transport/bio/MultipointBioSender.java Wed Nov 25 01:00:07 2009
&lt;br&gt;@@ -136,6 +136,7 @@
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;public boolean keepalive() {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//throw new UnsupportedOperationException(&amp;quot;Method ParallelBioSender.checkKeepAlive() not implemented&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;boolean result = false;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;@SuppressWarnings(&amp;quot;unchecked&amp;quot;) // bioSenders is of type HashMap&amp;lt;Member, BioSender&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Map.Entry&amp;lt;Member,BioSender&amp;gt;[] entries = bioSenders.entrySet().toArray(new Map.Entry[bioSenders.size()]);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;for ( int i=0; i&amp;lt;entries.length; i++ ) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;BioSender sender = entries[i].getValue();
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26505941&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26505941&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Tomcat---Dev-f341.html&quot; embed=&quot;fixTarget[341]&quot; target=&quot;_top&quot; &gt;Tomcat - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/svn-commit%3A-r883943---in--tomcat-trunk-java-org-apache-catalina%3A-ant-jmx--connector--core--ha-backend--ha-session--ha-tcp--tribes-tipis--tribes-transport-bio--tp26505941p26505941.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26505924</id>
	<title>RE: I Have Multiple Tomcat Instances, Now I Want Each to Run In a Different Time Zone</title>
	<published>2009-11-24T16:58:28Z</published>
	<updated>2009-11-24T16:58:28Z</updated>
	<author>
		<name>Robinson, Eric-2</name>
	</author>
	<content type="html">Never mind, got it. I was using JAVA_OPTS instead of CATALINA_OPTS. &amp;nbsp; 
&lt;br&gt;&lt;br&gt;--Eric
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Disclaimer - November 24, 2009 
&lt;br&gt;This email and any files transmitted with it are confidential and intended solely for Tomcat Users List. If you are not the named addressee you should not disseminate, distribute, copy or alter this email. Any views or opinions presented in this email are solely those of the author and might not represent those of . Warning: Although &amp;nbsp;has taken reasonable precautions to ensure no viruses are present in this email, the company cannot accept responsibility for any loss or damage arising from the use of this email or attachments. 
&lt;br&gt;This disclaimer was added by Policy Patrol: &lt;a href=&quot;http://www.policypatrol.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.policypatrol.com/&lt;/a&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26505924&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26505924&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Tomcat---User-f342.html&quot; embed=&quot;fixTarget[342]&quot; target=&quot;_top&quot; &gt;Tomcat - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/I-Have-Multiple-Tomcat-Instances%2C-Now-I-Want-Each-to-Run-In-a-Different-Time-Zone-tp26505728p26505924.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26505918</id>
	<title>DO NOT REPLY [Bug 48267] Patch to fix generics in javax packages</title>
	<published>2009-11-24T16:57:04Z</published>
	<updated>2009-11-24T16:57:04Z</updated>
	<author>
		<name>Bugzilla from bugzilla@apache.org</name>
	</author>
	<content type="html">&lt;a href=&quot;https://issues.apache.org/bugzilla/show_bug.cgi?id=48267&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/bugzilla/show_bug.cgi?id=48267&lt;/a&gt;&lt;br&gt;&lt;br&gt;Mark Thomas &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26505918&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;markt@...&lt;/a&gt;&amp;gt; changed:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;What &amp;nbsp; &amp;nbsp;|Removed &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |Added
&lt;br&gt;----------------------------------------------------------------------------
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Status|NEW &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |RESOLVED
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Resolution| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|INVALID
&lt;br&gt;&lt;br&gt;--- Comment #1 from Mark Thomas &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26505918&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;markt@...&lt;/a&gt;&amp;gt; 2009-11-24 16:57:04 GMT ---
&lt;br&gt;The javax.* packages have to match the specification APIs. We can't add
&lt;br&gt;generics if the API doesn't use them (as much as I'd like to).
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Configure bugmail: &lt;a href=&quot;https://issues.apache.org/bugzilla/userprefs.cgi?tab=email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/bugzilla/userprefs.cgi?tab=email&lt;/a&gt;&lt;br&gt;------- You are receiving this mail because: -------
&lt;br&gt;You are the assignee for the bug.
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26505918&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26505918&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Tomcat---Dev-f341.html&quot; embed=&quot;fixTarget[341]&quot; target=&quot;_top&quot; &gt;Tomcat - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/DO-NOT-REPLY--Bug-48267--New%3A-Patch-to-fix-generics-in-javax-packages-tp26486106p26505918.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26505862</id>
	<title>Re: I Have Multiple Tomcat Instances, Now I Want Each to Run In a Different Time Zone</title>
	<published>2009-11-24T16:49:55Z</published>
	<updated>2009-11-24T16:49:55Z</updated>
	<author>
		<name>awarnier</name>
	</author>
	<content type="html">Robinson, Eric wrote:
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; I want to run multiple instances of tomcat on the same server, one
&lt;br&gt;&amp;gt; instance for each time zone. I have all the separate tomcats running
&lt;br&gt;&amp;gt; fine, but they are all using the server's time zone. I've been Googling
&lt;br&gt;&amp;gt; and have not found an effective way to do it. Can someone please tell me
&lt;br&gt;&amp;gt; how? 
&lt;br&gt;&amp;gt; 
&lt;br&gt;Not really an expert, but 2 methods come to mind :
&lt;br&gt;&lt;br&gt;1) maybe the most serious :
&lt;br&gt;Each Tomcat runs in its own JVM. &amp;nbsp;There should be some JVM 
&lt;br&gt;system.properties which determine that kind of thing, which should be 
&lt;br&gt;settable with -D options on the java line that starts Tomcat.
&lt;br&gt;&lt;br&gt;Really, I don't really know this. But a previous issue of mine with a 
&lt;br&gt;webapp that was resetting the language for the whole JVM leads me to 
&lt;br&gt;believe this might work.
&lt;br&gt;&lt;br&gt;2) less serious :
&lt;br&gt;Install VMWare server. Configure as many virtual machines as you need 
&lt;br&gt;Tomcats. Give each its timezone and run a Tomcat in each.
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26505862&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26505862&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Tomcat---User-f342.html&quot; embed=&quot;fixTarget[342]&quot; target=&quot;_top&quot; &gt;Tomcat - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/I-Have-Multiple-Tomcat-Instances%2C-Now-I-Want-Each-to-Run-In-a-Different-Time-Zone-tp26505728p26505862.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26505728</id>
	<title>I Have Multiple Tomcat Instances, Now I Want Each to Run In a Different Time Zone</title>
	<published>2009-11-24T16:34:58Z</published>
	<updated>2009-11-24T16:34:58Z</updated>
	<author>
		<name>Robinson, Eric-2</name>
	</author>
	<content type="html">&amp;nbsp;
&lt;br&gt;I want to run multiple instances of tomcat on the same server, one
&lt;br&gt;instance for each time zone. I have all the separate tomcats running
&lt;br&gt;fine, but they are all using the server's time zone. I've been Googling
&lt;br&gt;and have not found an effective way to do it. Can someone please tell me
&lt;br&gt;how? 
&lt;br&gt;&lt;br&gt;--Eric
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Disclaimer - November 24, 2009 
&lt;br&gt;This email and any files transmitted with it are confidential and intended solely for Tomcat Users List. If you are not the named addressee you should not disseminate, distribute, copy or alter this email. Any views or opinions presented in this email are solely those of the author and might not represent those of . Warning: Although &amp;nbsp;has taken reasonable precautions to ensure no viruses are present in this email, the company cannot accept responsibility for any loss or damage arising from the use of this email or attachments. 
&lt;br&gt;This disclaimer was added by Policy Patrol: &lt;a href=&quot;http://www.policypatrol.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.policypatrol.com/&lt;/a&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26505728&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26505728&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Tomcat---User-f342.html&quot; embed=&quot;fixTarget[342]&quot; target=&quot;_top&quot; &gt;Tomcat - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/I-Have-Multiple-Tomcat-Instances%2C-Now-I-Want-Each-to-Run-In-a-Different-Time-Zone-tp26505728p26505728.html" />
</entry>

</feed>
