The following steps are applicable for both Windows and Linux operating systems:
-
Shutdown the Tomcat service.
-
Take a backup of the current Tomcat installation by renaming the existing Tomcat folder.
-
Download the latest Tomcat Update and unzip the contents into the same folder which contains the previous Tomcat installation.
-
Copy existing library files into the new Tomcat ./lib folder.
Note: The following are potential file names contained in the Tomcat ./lib folder that need to be copied over:
-
jakarta.mail-[version].jar
-
mysql-connector-j-[version].jar
-
xercesimpl.jar
-
xml-apis.jar
-
xmlparserv.jar
-
q35e1daddriver.jar
-
mssql-jdbc-[version].jre8.jar
-
ojdbc8.jar
-
Copy over the server.xml file from ./conf in the old Tomcat instance to the ./conf folder in the new Tomcat instance, overwriting the downloaded configuration.
-
Clear out the ./webapps folder in the new Tomcat instance and then copy over the .war files and ROOT file from the old Tomcat ./webapps folder into the new instance.
-
Append the catalina.properties file with the following lines:
-
javax.xml.parsers.SAXParserFactory=com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl
-
javax.xml.parsers.SAXParser=com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl
-
oracle.xml.parser.v2.SAXParser=com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl
-
-
Delete the Cantara ./cache folder contained in ./agent or ./access.
-
Change the service execution path if necessary.
-
Restart service and ensure Tomcat and Cantara launch successfully.