Upload a Java Application to Plesk Apache Tomcat

Leave your reply

Introduction

Learn how to upload a Java application to a server with Plesk, so that it can be run from Apache Tomcat. We will upload an example Java application through the Plesk interface.

For any server with Plesk, applications like Tomcat should always be upgraded and managed through the Plesk interface.

Requirements

  • A server with Plesk and Apache Tomcat installed

For step-by-step instructions on installing Tomcat on Plesk, see our article Install Tomcat on a Server with Plesk.

This tutorial uses the Power User view. You can change the Plesk view by clicking Change View at the bottom of the column on the left.

Firewall Access

If you have a firewall, you will need to allow access to port 9080.

For more information about using a firewall on a Cloud Server, consult our documentation on the topic.

Upload the .war File

For this tutorial we will be using this sample Java application from the Apache Software Foundation. Be sure to save the file with its original .war file extension.

Log in to the Plesk Admin panel, then click Websites & Domains.

Upload a Java application to Tomcat on Plesk

Scroll down to the section for the website where you wish to host the application. Click Java Applications for that website.

Upload a Java application to Tomcat on Plesk

Click + Install Java application.

Upload a Java application to Tomcat on Plesk

Select and upload the application's .war file.

Upload a Java application to Tomcat on Plesk

The file will be uploaded. You will be returned to the previous page.

To enable the Java application, activate the check box, then click Switch On.

Upload a Java application to Tomcat on Plesk

After the Java application is switched on, you can click the file path to view the application in a browser.

Upload a Java application to Tomcat on Plesk

You will see the sample application.

Upload a Java application to Tomcat on Plesk

Start, Stop, or Restart the Application

To manage the application, log in to the Plesk Admin panel, then click Websites & Domains.

Upload a Java application to Tomcat on Plesk

Scroll down to the section for the website where you wish to host the application. Click Java Applications for that website.

Upload a Java application to Tomcat on Plesk

Click the appropriate icon to start, stop, or restart the Java application.

Upload a Java application to Tomcat on Plesk