On 07/06/2011 12:37, Keiichi Fujino wrote: > Hi All. > > Tomcat7.0.15 can not replicate session if web application defines > <distributable/> in WEB-INF/web.xml. > Tomcat7.0.14 can replicate session if web application defines > <distributable/> in WEB-INF/web.xml. > The behavior of this default was changed by rev1130618. > The cause is conf/web.xml is not distributable.
That is enough to stop the 7.0.15 release in my view. > To enable session replication by default, > I thought two plans. > > PlanA: > Add WebXml#setDistributable(true) to ContextConfig#webConfig(). > > Index: java/org/apache/catalina/startup/ContextConfig.java > =================================================================== > --- java/org/apache/catalina/startup/ContextConfig.java (revision > 1132530) > +++ java/org/apache/catalina/startup/ContextConfig.java (working copy) > @@ -1195,6 +1195,7 @@ > */ > WebXml webXmlDefaultFragment = createWebXml(); > webXmlDefaultFragment.setOverridable(true); > + webXmlDefaultFragment.setDistributable(true); > > // Parse global web.xml if present > InputSource globalWebXml = getGlobalWebXmlSource(); <snip/> > I intend to commit planA. > Any objections or other ideas? None here. Mark --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org