I am upgrading a Spring/Angular application from Tomcat 7.0.59 to 7.0.99. I am using an embedded Tomcat server and running the app from the command line ("tomcat7:run-war").
The problem is that default welcome files are being added to the context (from Tomcat.initWebappDefaults()). The Tomcat code is adding a defaultWebXmlListener in Tomcat.addWebapp, which adds a bunch of stuff, including "index.html", "index.htm", and "index.jsp". I want index.html and index.htm to be removed, but embedded Tomcat is forcing them in. My application's web.xml is being found, but the welcome files are being appended to the list, not replacing.
When I run tomcat 7.0.59 from the command line, it works fine and doesn't add the extra welcome files.
When I run tomcat 7.0.99 from inside IntelliJ using an external server, it works fine and doesn't add the extra welcome files.