<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Package: tomcat9</p>
    <p>Version: 9.0.31-1~deb10u1</p>
    <p>Hello,</p>
    <p>I use Jenkins application with the tomcat manager in order to
      deploy war files (applications) on Tomcat9.</p>
    <p>My tomcat9 is configured in virtualhost mode (related to the
      official tomcat9 virtualhost documentation :
      <a class="moz-txt-link-freetext" href="https://tomcat.apache.org/tomcat-9.0-doc/virtual-hosting-howto.html">https://tomcat.apache.org/tomcat-9.0-doc/virtual-hosting-howto.html</a>).<br>
    </p>
    <p>So each virtualhost in server.xml got one webapps directory under
      catalina_home (/var/lib/tomcat9).<br>
    </p>
    <p>But tomcat9 cannot deploy war files (applications) because the
      unix user "tomcat" cannot have access read-write under
      /var/lib/tomcat9.<br>
    </p>
    <p>I have found the solution with adding this line :</p>
    <p>ReadWritePaths=/var/lib/tomcat9/</p>
    <p>under this line<br>
    </p>
    <p>ReadWritePaths=/etc/tomcat9/Catalina/<br>
    </p>
    <p>in the systemctl file service of tomcat9
      /usr/lib/systemd/system/tomcat9.service<br>
    </p>
    <p>and systemctl daemon-reload<br>
    </p>
    <p>But, when an update of debian occured on tomcat9 package, i lost
      my modification.</p>
    <p>Can you fix this bug?</p>
    <p>Thanks.</p>
    <p>Mathieu HETRU<br>
    </p>
    <div class="moz-signature">-- <br>
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <font size="1" face="verdana,arial,sans-serif" color="#000000">
      </font>
      <br>
      <a href="" lang="fr">
        <img src="cid:part1.47797759.48E94F3A@univ-lille.fr"
          alt="Université de Lille" width="150" height="50" border="0"></a>
      <br>
      <br>
      <font size="1" face="verdana,arial,sans-serif" color="#ae2573">
        <b>Mathieu HETRU</b></font>
      <br>
      <font size="1" face="verdana,arial,sans-serif" color="#000000">
        Responsable du bureau missions transversales<br>
        <br>
        Université de Lille - Campus Cité Scientifique<br>
        Direction des Systèmes d'Information<br>
        Service Intégration / Exploitation<br>
        Cellule missions transversales<br>
      </font>
      <br>
      <font size="1" face="verdana,arial,sans-serif" color="#000000">
        Bureau 47 - Bâtiment A3<br>
        Domaine universitaire de la Cité Scientifique<br>
        Avenue Carl Von Limé<br>
        BP 90179 59653 Villeneuve d'Ascq<br>
      </font><br>
      <font size="1px" face="verdana,arial,sans-serif" color="#ae2573">
        Tél. :</font><font size="1" face="verdana,arial,sans-serif"
        color="#000000">+33 (0)3 62 26 83 81 (numéro interne : 68381)</font><br>
      <font size="1" face="verdana,arial,sans-serif" color="#000000"><br>
        <font size="1" face="verdana,arial,sans-serif" color="#ae2573">
          <a href="mailto:mathieu.hetru@univ-lille.fr">mathieu.hetru@univ-lille.fr</a></font>
        <font size="1" face="verdana,arial,sans-serif" color="#ae2573">
          <b>|</b></font>
        <font size="1" face="verdana,arial,sans-serif" color="#ae2573">
          <a href="http://www.univ-lille.fr"> www.univ-lille.fr</a></font>
      </font></div>
  </body>
</html>