Submit a Ticket
Support Center » Knowledgebase » JSP - Tomcat » Deploying your Java application (WAR, etc)

Deploying your Java application (WAR, etc)

NOTE: This article applies only for our Private JVM tool available for all cPanel Private JVM Linux accounts (does not apply to our Shared JVM Business, or Shared JVM Mocha accounts). The private JVM is also available for our Java VPS + Java cloud packages.

There are several ways to deploy your Java application, the most convenient is deploying a WAR file (not supported under our Shared JVM packages).

IMPORTANT: Before you can deploy your application, please make sure that you have installed your Private JVM instance, and configured your desired Tomcat/JDK version. For more info, please review our complete JVM tutorial.

1. Deploying your application via WAR:

* You may deploy your war file through our Private JVM tool. Inside our private JVM tool under "Mapped Domains" go to Upload WAR and follow the instructions.

* You may deploy your war file through your Tomcat management application: Tomcat Manager or Psi Probe.

* You may deploy your war file via FTP. Inside our Private JVM applicationu nder "Mapped Domains" you can see your exact path (/home/yourusername/jvm/apache-tomcat-x.x.xx/domains/yourdomain.name/). Upload the WAR file in that folder.

IMPORTANT: If you want your application to work at http://domain.name you have to rename your .war to ROOT.war and then deploy it. Any other file name will result in your application accessible at http://domain.name/filename

2. Deploying the application files directly:

* You need to upload all of your files via FTP to the path specified in "Mapped Domains". The path needs to be something like: /home/yourusername/jvm/apache-tomcat-x.x.xx/domains/yourdomain.name/

--

Now that you have uploaded your application - you are ready to start the application server. All you need to do is just hit the 'Start' button inside your private JVM tool.

And finally you need to redirect all traffic from Apache Web server for the domain name you want to be handled by our Tomcat server. To do that please, navigate to "Mapped Domains" section and click on Enable/Disable check box.

NOTE: If you are currently using an account that does not come with our private JVM tool, you can easily upgrade to a Private JVM account using our upgrade form located at: http://mochahost.com/upgrade_form.php

 This answer was helpful  This answer was not helpful
 Back