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 <distributable /> 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 <distributable /> 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-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to