From users-return-267750-archive-asf-public=cust-asf.ponee.io@tomcat.apache.org Fri Jun 21 11:39:34 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id 732C118064F for ; Fri, 21 Jun 2019 13:39:34 +0200 (CEST) Received: (qmail 7934 invoked by uid 500); 21 Jun 2019 11:39:31 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 7917 invoked by uid 99); 21 Jun 2019 11:39:31 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Jun 2019 11:39:31 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 3A3E6180F7D for ; Fri, 21 Jun 2019 11:39:29 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.8 X-Spam-Level: * X-Spam-Status: No, score=1.8 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id GTdqsnWI9rlB for ; Fri, 21 Jun 2019 11:39:26 +0000 (UTC) Received: from mail-oi1-f173.google.com (mail-oi1-f173.google.com [209.85.167.173]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id E99D760CF3 for ; Fri, 21 Jun 2019 11:39:25 +0000 (UTC) Received: by mail-oi1-f173.google.com with SMTP id a127so4435448oii.2 for ; Fri, 21 Jun 2019 04:39:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=mAXBtgJbxU3Zz4GKXqqEyPkxIMvpfAx0uzJ1QCf9kvA=; b=R8NwjO1yLn16O5D4YjQlIlkP3Mzxq/wcHQWNSunVIrRKB/wtfHR2wg0FNclcAXngQj JLb9/1p86nm9pzr6PhZEgySFfJ0MXf4maPBlTJeSXUV6/7gjfqMkCgdvWpEQS3vhUqHL ffZCWSthCpa8XS+feIJONOCs9UBXZ7P+ssI/ecD7C+b8PKMVta4wKrdFdl5RBK3QSvBe NTClfIsBx8rXiav1GmxReTLihcqQK2OWPSx9GAkQB0V2SbnQqsiMmKbqVcVgBTeQHPfK b/zQNY7S8lBvc2WzHWfzv/3aykvm3itsBC9qohI00p6Ys8dhbJOhX0iOBE3wF6DDeVxq sjiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=mAXBtgJbxU3Zz4GKXqqEyPkxIMvpfAx0uzJ1QCf9kvA=; b=D4ZB3/t7teB8XMFAuGlyMSrX6+cL2J7B3aznuENyk0ReK4cwqKXtGJ3X/+GVufk/4f 31NXNlQ3OIj8yRMu3GbuIS9Ki1T5RfgYOFbWdEdC+hIeHonDkBvmMvD1f9MSSg8xqSNV 06Exqd/KkR1X5dnu5EsPHfi+MCb/C0w+s70uiEwvYkIElYCu8R3vfxQ/YdFVmw06feBw 0zl/u9gWkP5QfhKG0sHl+QQWgzn6748fN2dSWs5zda9SbijhDTwwIte8yEQjDM6ODvRT YvQXlkKGEhbbLLWLR3rImaS2NzkUs2PDufkQQYaRm6KZwikzl9cXAbcYjJHctbmaLK5G Hr6w== X-Gm-Message-State: APjAAAWJqAyyVvoXudaWV0RE8IvXhcZaEyvQTOze+TWHmkfH99a4xotf zbglmpSN8TFBt21I2KE2rD/eMeCzlQtaK3JrsczhlgYQBiafRQ== X-Google-Smtp-Source: APXvYqw/w+laDozBS7pxOSm5BlNhG2V/8Od5qYGLOXWU979UemLLRGskCl/KQrDi6aYb8nSFkk6qUv3gRixWLSDKqac= X-Received: by 2002:aca:abd8:: with SMTP id u207mr2443203oie.136.1561117165164; Fri, 21 Jun 2019 04:39:25 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Leonid Rozenblyum Date: Fri, 21 Jun 2019 14:39:14 +0300 Message-ID: Subject: Re: Tomcat 9 distributable tag from global conf/web.xml and DeltaManager not working To: Tomcat Users List Content-Type: multipart/alternative; boundary="000000000000151bf3058bd3ea1e" --000000000000151bf3058bd3ea1e Content-Type: text/plain; charset="UTF-8" Hi Mark! Thanks for the explanation. So now it's mandatory for us to mark every web application (and also ensure no dependencies in classpath are actual web fragments without distributable accidentally) About our upgrade: We've upgraded Tomcat Tomcat 8.0.30 -> Tomcat 9.0.16 (we are planning also the next update to Tomcat 9.0.21 to mitigate a https issue but that's another story) In 8.0.30 just a in conf/web.xml has been enabled and that caused DeltaManager working (was able to check by catalina logs and by JMX manager and by the actual fact that session replication was working). On Fri, Jun 21, 2019 at 12:29 PM Mark Thomas wrote: > On 21/06/2019 09:54, Leonid Rozenblyum wrote: > > Hello. After recent Tomcat upgrade from 8.0 to 9.0 DeltaManager stopped > > initializing. > > StandardManager is used instead in cluster environment. > > Could you be more specific about version numbers please. > > > our global conf/web.xml contains as before. > > That is the default for conf/web.xml so it should not be necessary to > set it. > > > I found a possible workaround: to copy the tag to the > > web.xml in the web applications itself. > > That is expected. Web applications need to be explicitly marked as > distributable. > > > However shouldn't it be inherited from the global conf/web.xml? > > No. For a web application to be distributable: > > - WEB-INF/web.xml needs to be marked as distributable > - any web-fragment.xml files present in the web app need to be marked as > distributable > > Internally, Tomcat creates additional web-fragment.xml files for JAR > files that do not have one. These are marked as distributable by default > to ensure they don't prevent the web app from being distributable. > > Internally, the global, host and tomcat specific web.xml files are also > treated as fragments. They too are marked as distributable by default > for the same reason. > > Tomcat creates these fragments internally as it allows us to re-use the > web.xml merge code. > > > Is it a known behavior change? > > The process has been essentially the same from the early 8.0.x releases > since that is where web-fragment.xml files were introduced. > > Mark > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > For additional commands, e-mail: users-help@tomcat.apache.org > > --000000000000151bf3058bd3ea1e--