🐈Update the Tomcat Configuration

Set the user identity that the tomcat server will assume to "root"

$ vi /usr/lib/systemd/system/tomcat.service

Replace the line that starts with "User" with User=root, then save and exit with :x

$ vi /usr/share/tomcat/conf/server.xml

Add the following lines between the <Engine> and </Engine> tags (preferrably at the end and right before </Engine> tag.

<Host
    name="<your-domain-name>"
    autoDeploy="false"
    liveDeploy="false"
    appBase="/srv/mft/bnd/webapp"
    unpackWARs="false">
  <Valve className="org.apache.catalina.valves.AccessLogValve"
      fileDateFormat="yyyy-MM-dd"
      pattern="%h %l %u %t &quot;%r&quot; %s %b"
      prefix="mftbnd_log"
      suffix=".txt"/>
 </Host>

Save and exit with :x

$ vi /usr/share/tomcat/conf/catalina.properties 

Add the following line at the end:

com.entevia.sddi.config.dbDriver=com.mysql.cj.jdbc.Driver

Save and exit with :x

Last updated