tomcatserverwarplesk-onyx

How to deploy .war files in Plesk Onyx 17.8 despite no longer supported TomCat?


Up to and including version 17.5 Plesk Onyx came with a Tomcat installation, which is no longer supported from version 17.8. Thus no .war files can be deployed and executed anymore.

A downgrade recommended by Plesk is not expedient in my eyes, because of the near end of life and security concerns. How can I run Java code on a Plesk-managed server?


Solution

  • 1. Idea

    Use a Tomcat Docker container instead and deploy your .war file in a mapped Docker volume.

    2. Solution

    3. Explanation

    The first volume mapping provides a directory on the host system (your server) which is synchronized with the webapps directory within the Tomcat container. Copying your .war file into it will deploy it at the Tomcat container. The second volume mapping provides the Tomcat container internal log files to your host system.