Le 1/12/2016 à 09:36, Emmanuel Bourg a écrit :
> I observed that even when copyXML is false, Tomcat creates an empty
> directory per virtualhost under /etc/tomcat8/Catalina (for example
> /etc/tomcat8/Catalina/www.example.org). When I made
> /etc/tomcat8/Catalina read-only Tomcat didn't complain, no error was
> reported in the logs.
Actually Tomcat did log an error message:
Unable to create directory for deployment: /etc/tomcat8/Catalina/localhost
But there is no other impact, the server works fine.
The message can be disabled by setting the createDirs attribute
of the Host element to false (it's true by default).
"createDirs: If set to true, Tomcat will attempt to create
the directories defined by the attributes appBase and xmlBase
during the startup phase. The default value is true. If set
to true, and directory creation fails, an error message will
be printed out but will not halt the startup sequence."