Hi guys, in https://bz.apache.org/bugzilla/show_bug.cgi?id=58867 there is this diff:
- if (!docDir.exists()) { - File warFile = new File(docBase + ".war"); - if (warFile.exists()) { - URL war = - new URL("jar:" + warFile.toURI().toURL() + "!/"); + File warFile = new File(docBase + ".war"); + URL war = null; + if (warFile.exists()) { + war = new URL("jar:" + warFile.toURI().toURL() + "!/"); + } + if (docDir.exists()) { + if (war != null && unpackWARs) { + // Check if WAR needs to be re-expanded (e.g. if it has + // changed). Note: HostConfig.deployWar() takes care of + // ensuring that the correct XML file is used. + // This will be a NO-OP if the WAR is unchanged. + ExpandWar.expand(host, war, pathName); + } + } else { so if you were deploying a StandardContext with a docDir set to a correct path and if the war was next to this path then all was working smoothly ie the manually exploded folder was deployed. Now (8.0.32) the war is re-expanded in webapps (by default). Of course a work around is to set unpackWARs to false but it is a regression in term of behavior which is quite nasty IMO. Was it really intended or is it a side effect of the fix? Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> | LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber <http://www.tomitribe.com>