I'm trying to automate the installation & upgrade process for the oXygen License Servlet using Ansible, because this is the standard procedure for documentation and disaster recovery at our company. This includes downloading and deploying a fresh WAR to Apache Tomcat 9 on Debian 10. During the upgrade deployment, the Tomcat server needs to be restarted and the Servlet loses all of the license information (as expected).
The page https://www.oxygenxml.com/doc/versions/ ... _server_wa says:
I've found databases in "/var/lib/tomcat9/work/Catalina/localhost/oXygenLicenseServlet/db/", but guessing from their filenames, they only contain log information. Also, there's a licence file at "/var/lib/tomcat9/work/Catalina/localhost/oXygenLicenseServlet/license.txt", but it contains a Machine signature that changes during WAR deployment. However, eeploying a new WAR seems to change the Machine Signature for the license server, so this file cannot be reused either.By default, the license server stores the statistics database and other data in the Java Servlet Container's temporary directory. If you are not using Apache Tomcat, this directory may be deleted when the server is stopped or restarted. However, you can set the oxygen.license.server.work.dir system property to specify a different path for the directory where the database is stored.
My main questions are:
- Where exactly do I set the "oxygen.license.server.work.dir" parameter? Can you give me a canonical filepath?
- How can I make the Machine Signature persistent? Alternatively, where do I get the Machine signature so I can make the lisence into a template that can be used during deployment?
- Which files need to be backed up before upgrading to a new version of the License Servlet?
Any help is very much appreciated. If you need any more details, I'll do my best to provide them. Thank you and all the best,